Me pregunto si alguien podría ayudarme con un problema que estoy experimentando tratando de que mi sitio funcione en Goddaddy. estoy tratando de obtener la URL reescritura de extensión de menos de trabajo mediante el ManagedFusion Regrabadora (http://www.codeplex.com/urlrewriter/) Lamentablemente estoy recibiendo el siguiente error:System.Web.AspNetHostingPermission SecurityException cuando trato de usar ManagedFusion Rewriter en 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.
Error de origen:
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.
Seguimiento de la pila:
[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
Información de versión: Microsoft .NET Framework Version: 2.0.50727.1434; Versión ASP.NET: 2.0.50727.1434
Estoy corriendo usando IIS 7 en modo integrado. Modifiqué mi archivo web.config siguiendo las instrucciones del archivo Léame aquí: http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618
Muchas gracias de antemano.
gracias, odio iis 7.5 – vondip
Las identidades de grupo de aplicaciones se explican bastante bien en este artículo: http://learn.iis.net/page.aspx/624/application-pool-identities /. Hay algunas buenas razones para que Microsoft realice los cambios que hizo. – bshacklett
Al reiniciar el grupo de aplicaciones lo hice por mí. ¡Gracias! Definitivamente me salvó un poco de tiempo y un fuerte dolor de cabeza. – Ariel