Je me demande si quelqu'un pourrait m'aider avec un problème que j'éprouve en essayant de faire fonctionner mon site sur Goddaddy. Je suis en train d'obtenir url rewriting extension moins de travail en utilisant la ManagedFusion Rewriter (http://www.codeplex.com/urlrewriter/) Malheureusement, je reçois l'erreur suivante:System.Web.AspNetHostingPermission SecurityException lors de la tentative d'utilisation de ManagedFusion Rewriter sur 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.
Source Erreur:
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.
Stack Trace:
[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
Informations de version: Microsoft .NET Framework Version: 2.0.50727.1434; Version ASP.NET: 2.0.50727.1434
Je suis exécuté avec IIS 7 en mode intégré. J'ai modifié mon fichier web.config en suivant les instructions dans le fichier readme ici: http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618
Merci beaucoup à l'avance.
merci, je déteste iis 7.5 – vondip
Les identités de pool d'applications sont assez bien expliquées dans cet article: http://learn.iis.net/page.aspx/624/application-pool-identities /. Il y a de bonnes raisons pour Microsoft de faire les changements qu'ils ont faits. – bshacklett
Le redémarrage du pool d'applications l'a fait pour moi. Merci! Certainement m'a sauvé du temps et un mal de tête aiguisé. – Ariel