title: System.Web.AspNetHostingPermission SecurityException when trying to use ManagedFusion Rewriter on Goddaddy
body: <p>I wonder if someone could help me out with an issue I'm experiencing trying to get my site up and running on Goddaddy.
  I'm trying to get extension-less url rewriting working using the ManagedFusion Rewriter (<a href="http://www.codeplex.com/urlrewriter/" rel="nofollow noreferrer">http://www.codeplex.com/urlrewriter/</a>) Unfortunately I'm getting the following error:</p>
  
  <blockquote>
    <p>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.</p>
    
    <p>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.</p>
  </blockquote>
  
  <p>Source Error:</p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p>Stack Trace:</p>
  
  <pre><code>[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&amp; 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&amp; completedSynchronously) +64
  </code></pre>
  
  <p>Version Information: Microsoft .NET Framework Version:2.0.50727.1434; ASP.NET Version:2.0.50727.1434</p>
  
  <p>I'm runnung using IIS 7 in integrated mode. I've modified my web.config file by following the instructions in the readme file here:
  <a href="http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618" rel="nofollow noreferrer">http://www.codeplex.com/urlrewriter/Release/ProjectReleases.aspx?ReleaseId=22618</a></p>
  
  <p>Thank very much in advance.</p>