在xsp和mono下的ASP.net问题。 [英] Problem with ASP.net under xsp and mono.

查看:62
本文介绍了在xsp和mono下的ASP.net问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,这是Vikas Gohil。



我使用C#.net 2005创建了一个Web应用程序。我使用xsp web服务器在ubuntu下运行此应用程序单。应用程序运行正常。



问题是,在几个网页中我收到以下错误:

找不到方法:程序集System.Web中的System.Web.UI.TemplateControl.TestDeviceFilter。



堆栈跟踪指示问题在 GridView DataBinding 期间发生。



该页面包含简单的控件,如带有主题,按钮,文本框等的GridView。我已将Checkbox设为GridView中的模板列。



我有其他页面使用控件类型和相同的结构,但它们工作得很好。它仅在2个网页中发生。我还没有使用任何特殊的设备过滤代码,但它仍然显示错误。我不明白为什么它没有显示在其他页面上。



请任何人都可以帮助我。

我搜索了这个但是没有任何解决方案。

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.

推荐答案

我对某些页面遇到了同样的问题。

如果我尝试运行它只会发生Mono上使用Visual Studio预编译的网站。

您可以通过覆盖页面来跟踪TestDeviceFilter被调用的原因:



public override bool TestDeviceFilter(string filterName){

return base.TestDeviceFilter(filterName);

}



设置断点并在Windows上使用Visual Studio对其进行测试。调用堆栈将显示问题的来源。就我而言,它是一个< style runat =server>
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">


这篇关于在xsp和mono下的ASP.net问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆