'/'应用程序中的服务器错误。 安全性异常说明:应用程序试图执行安全策略不允许的操作。 要授予此应用程序所需的权限,请联系系统管理员或更改配置文件中的应用程序信任级别。
异常详细信息:System.Security.SecurityException:请求类型为'system.web.AspNetHostingPermission、system、version=2.0.0.0、Culture=neutral、PublicKeyToken=b77a5c561934e089'的权限失败。
源代码错误:
当前Web请求的执行期间生成了一个未处理的异常。 可以使用下面的异常堆栈跟踪标识异常的来源和位置。
堆栈跟踪:
[SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, 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 offset, 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
我正在使用IIS 7以集成模式运行。 我按照此处的自述文件中的说明修改了我的web.config文件: http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618
非常感谢您的提前帮助。