asp.net – System.Web.AspNetHostingPermission SecurityException当试图使用ManagedFusion Rewriter在Goddaddy

我不知道有人可以帮助我一个问题,我遇到了试图让我的网站在Goddaddy上运行。
我试图获得无扩展的url重写工作使用ManagedFusion Rewriter( http://www.codeplex.com/urlrewriter/)不幸的是,我得到以下错误

Server Error in ‘/’ Application.
Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application’s trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission,System,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b77a5c561934e089’ Failed.

错误

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.

堆栈跟踪:

[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission,PublicKeyToken=b77a5c561934e089' Failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand,StackCrawlMark& stackMark,Boolean isPermSet) +0
System.Security.CodeAccesspermission.Demand() +59
System.Web.Hosting.HostingEnvironment.get_ApplicationID() +61
IIS7Injector.TraceManager.TraceEvent(TraceEventType eventType,String message) +62
IIS7Injector.ConfigManager.IsSkippedUrl(HttpRequest request,String ContentType) +38
IIS7Injector.InjectedContentStream.Write(Byte[] buffer,Int32 offset,Int32 count) +153
ManagedFusion.Rewriter.FormActionFilter.Write(Byte[] buffer,Int32 count) +485
System.Web.HttpWriter.FilterIntegrated(Boolean finalFiltering,IIS7WorkerRequest wr) +265
System.Web.HttpResponse.FilterOutput() +80
       System.Web.CallFilterExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +54
System.Web.HttpApplication.ExecuteStep(IExecutionStep step,Boolean& completedSynchronously) +64

版本信息:Microsoft .NET Framework版本:2.0.50727.1434; ASP.NET版本:2.0.50727.1434

我runnung使用IIS 7在集成模式。我修改了我的web.config文件,按照readme文件中的说明在这里
http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618

非常感谢提前。

解决方法

我在新的安装上也遇到同样的异常,将应用程序池标识更改为NetworkService / aspnet修复它。

此外,启用在应用程序池上加载用户配置文件也工作。

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....