Device Capability Not Found

D

Don Miller

I'm trying to use the <DeviceSpecific><Choice> construct in a mobile web
control which is consequently used in a web mobile form; the web mobile form
is in a sub-directory because the same site is used for desktop and mobile
content.

I'm trying to use an Evaluator Delegate type of device filter. The method is
in a separate .dll referenced in the web app. The declaration of the filter
is in the root web.config file (there's a separate web.config for the desktop
content and the mobile content in addition to the root web.config). The Type
is declared as "MobileDeviceFilters.MobileDevice, MobileDeviceFilters" and
the method is "IsPPC".

7 hours into this now, I still get "Can find neither a device capability
named "IsAPocketPC" nor a public non-static method on the page named
"isAPocketPC" that returns a system.boolean". The method is indeed public
static bool.

I've tried moving the filter declaration to the local web.config but that
didn't work.

What am I missing?

Thanks!
 
D

Don Miller

UPDATE: I've figured out (I think) that the error is due to the fully
qualified assembly name in the Type arg of the filter declaration in
web.config; I'm able to get compare filters to work just fine. I'm using a
..dll with the namespace MobileDeviceFilters and the class name MobileDevice,
so I'm using 'MobileDeviceFilters.MobileDevice, MobileDeviceFilters' as the
type argument and the name of the method without parens as the method
argument. However I still get the error as described below.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,479
Members
44,900
Latest member
Nell636132

Latest Threads

Top