Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello, this is Vikas Gohil.

I have created a web app using C#.net 2005. I am running this application under ubuntu using xsp web server and mono. The application is running fine.

The problem is, in couple of web pages i get the following error:
Method Not Found : System.Web.UI.TemplateControl.TestDeviceFilter in the assembly System.Web.

The stack trace indicates the problem is happening during GridView DataBinding.

The page contains simple controls like GridView with Themes, buttons, textboxes etc. I have put a Checkbox as Template Column in GridView.

I have other pages which use the type of controls and same structure, but they work perfectly fine. It Happens only in 2 web pages. I also haven't used any special code for Device Filtering, but still it shows error. I don't understand why it is not showing on other pages.

Please can anyone help me.
I have searched for this but haven't got any solution.
Posted
Updated 14-Mar-11 23:38pm
v2

1 solution

I had the same problem with some pages.
It only happens, if I try to run a web-site on Mono that was precompiled with Visual Studio.
You can track the reason why "TestDeviceFilter" is called down by overwriting it in your pages:

public override bool TestDeviceFilter(string filterName) {
return base.TestDeviceFilter(filterName);
}

Set a breakpoint and test it with Visual Studio on Windows. The call-stack will show you were the problem originates. In my case it was a <style runat="server">
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900