奇怪的ASP.NET错误! [英] Strange ASP.NET error !

查看:149
本文介绍了奇怪的ASP.NET错误!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行Windows 7 - x64版本与IIS 7.5

I'm running Windows 7 - x64 Edition with IIS 7.5

我有,我已经在Windows和IIS的其他版本上运行,但现在一个简单的asp.net网站,在一些网页它给了我下面的错误

I have a simple asp.net website that i've run on other versions of windows and IIS but now, on SOME pages it gives me the following error

异常信息:
    异常类型:HttpParseException
    异常消息:请求类型的权限'System.Web.AspNetHostingPermission,系统,版本= 2.0.0.0,文化=中性公钥= b77a5c561934e089'失败。

Exception information: Exception type: HttpParseException Exception message: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

堆栈跟踪:在System.Web.UI.TemplateParser.ProcessException(异常前)
   在System.Web.UI.TemplateParser.ParseStringInternal(字符串文字,编码fileEncoding)
   在System.Web.UI.TemplateParser.ParseString(字符串文本,VirtualPath virtualPath,编码fileEncoding)
......

Stack trace: at System.Web.UI.TemplateParser.ProcessException(Exception ex) at System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding) at System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding) ......

现在,当我运行下卡西尼一切该应用程序工作正常。我也能弄清楚,在以往任何时候我已经使用了AjaxToolkit控制这些网页抛出此错误。

Now, when i run this application under cassini everything works fine. I also was able to figure out that where ever i have used the AjaxToolkit controls those pages are throwing this error.

任何意见?

推荐答案

在IIS中,在高级设置。你必须尝试设置

In IIS, Under the advanced settings. You must try to set

加载用户配置文件= TRUE

Load User Profile=True

看到这个链接,更详细的<一个href=\"http://geekswithblogs.net/ProjectLawson/archive/2009/05/05/iis-system.web.aspnethostingpermission-exception-on-windows-7-rc.aspx\">http://geekswithblogs.net/ProjectLawson/archive/2009/05/05/iis-system.web.aspnethostingpermission-exception-on-windows-7-rc.aspx

see this link for more detail http://geekswithblogs.net/ProjectLawson/archive/2009/05/05/iis-system.web.aspnethostingpermission-exception-on-windows-7-rc.aspx

这篇关于奇怪的ASP.NET错误!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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