Интересно, может ли кто-нибудь помочь мне решить проблему, с которой я сталкиваюсь, пытаясь запустить мой сайт на Goddaddy. Я пытаюсь получить расширение менее перезаписи URL работает с использованием ManagedFusion Rewriter (http://www.codeplex.com/urlrewriter/) К сожалению, я получаю следующее сообщение об ошибке:System.Web.AspNetHostingPermission SecurityException при попытке использовать ManagedFusion Rewriter на Goddaddy
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, 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, следуя инструкциям в файле readme здесь: http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618
Большое спасибо заранее.
спасибо, я ненавижу iis 7.5 – vondip
Идентификатор пула приложений объясняется довольно хорошо в этой статье: http://learn.iis.net/page.ASPX/624/приложения бассейн дества /. Есть несколько веских причин для Microsoft сделать изменения, которые они сделали. – bshacklett
Перезапуск пула приложений сделал это для меня. Благодаря! Определенно спас меня некоторое время и острая головная боль. – Ariel