Ich frage mich, ob mir jemand helfen könnte, wenn ich versuche, meine Seite auf Goddaddy zu installieren. Ich versuche Erweiterung lose URL-Rewriting arbeitet mit dem ManagedFusion Rewriter (http://www.codeplex.com/urlrewriter/) zu bekommen Leider bin ich die folgende Fehlermeldung erhalten:System.Web.AspNetHostingPermission SecurityException beim Versuch, ManagedFusion Rewriter auf Goddaddy zu verwenden
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.
Quellfehler:
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
Versionsinformation: Microsoft .NET Framework Version: 2.0.50727.1434; ASP.NET Version: 2.0.50727.1434
Ich bin mit IIS 7 im integrierten Modus ausgeführt. Ich habe meine Datei web.config geändert, indem ich die Anweisungen in der Readme-Datei hier befolgte: http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618
Vielen Dank im Voraus.
danke, ich hasse iis 7.5 – vondip
Application Pool Identitäten werden ziemlich gut in diesem Artikel erklärt: http://learn.iis.net/page.aspx/624/Anwendungspoolidentitäten /. Es gibt einige gute Gründe dafür, dass Microsoft die Änderungen vorgenommen hat. – bshacklett
Neustart des Anwendungspools hat es für mich getan. Vielen Dank! Ich habe definitiv etwas Zeit und Kopfschmerzen gespart. – Ariel