URGENT!! Custom Device Filter

R

Rui Barbosa

Hi to all,
I'm getting this error that i can't figure it out and i'm going crazy...

I'm trying to create a device filter using a custom filter type...
I'm doing everything by the book but i can't get rid of the error below.

Can anyone help...

The content of the Web.Config deviceFilter section tag is as follows
<deviceFilters>
<filter name="isJPhone" compare="Type" argument="J-Phone" />
<filter name="isHTML32" compare="PreferredRenderingType" argument="html32"
/>
<filter name="isWML11" compare="PreferredRenderingType" argument="wml11" />
<filter name="isCHTML10" compare="PreferredRenderingType" argument="chtml10"
/>
<filter name="isGoAmerica" compare="Browser" argument="Go.Web" />
<filter name="isMME" compare="Browser" argument="Microsoft Mobile Explorer"
/>
<filter name="isMyPalm" compare="Browser" argument="MyPalm" />
<filter name="isPocketIE" compare="Browser" argument="Pocket IE" />
<filter name="isUP3x" compare="Type" argument="Phone.com 3.x Browser" />
<filter name="isUP4x" compare="Type" argument="Phone.com 4.x Browser" />
<filter name="isEricssonR380" compare="Type" argument="Ericsson R380" />
<filter name="isNokia7110" compare="Type" argument="Nokia 7110" />
<filter name="prefersGIF" compare="PreferredImageMIME" argument="image/gif"
/>
<filter name="prefersWBMP" compare="PreferredImageMIME"
argument="image/vnd.wap.wbmp" />
<filter name="supportsColor" compare="IsColor" argument="true" />
<filter name="supportsCookies" compare="Cookies" argument="true" />
<filter name="supportsJavaScript" compare="Javascript" argument="true" />
<filter name="supportsVoiceCalls" compare="CanInitiateVoiceCall"
argument="true" />
<filter name="isWML" type="MyWeb.DeviceFilters.ExtendedFilters,
MyWeb.Controls.dll" method="IsWML" />
</deviceFilters>

The error i get is:

Can find neither a device capability named 'isHTML32' nor a public
non-static method on the page named 'isHTML32' that returns a System.Boolean
and takes System.Web.Mobile.MobileCapabilities and System.String as
arguments.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ArgumentException: Can find neither a device
capability named 'isHTML32' nor a public non-static method on the page named
'isHTML32' that returns a System.Boolean and takes
System.Web.Mobile.MobileCapabilities and System.String as arguments.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Can find neither a device capability named 'isHTML32'
nor a public non-static method on the page named 'isHTML32' that returns a
System.Boolean and takes System.Web.Mobile.MobileCapabilities and
System.String as arguments.]

System.Web.UI.MobileControls.DeviceSpecificChoice.Evaluate(MobileCapabilitie
s capabilities) +188
System.Web.UI.MobileControls.DeviceSpecific.get_SelectedChoice() +212
System.Web.UI.MobileControls.MobileControl.ApplyDeviceSpecifics() +19
System.Web.UI.MobileControls.MobileControl.OnInit(EventArgs e) +60
System.Web.UI.MobileControls.Panel.OnInit(EventArgs e) +9
System.Web.UI.Control.InitRecursive(Control namingContainer) +241
System.Web.UI.Control.InitRecursive(Control namingContainer) +179
System.Web.UI.Control.InitRecursive(Control namingContainer) +179
 

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,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top