Applikation fejler (eks. DotNetNuke)

Hvis en applikation fejler, eks. DotNetNuke, med nedenstående fejl, kan det skyldes at en eller flere sections i web.config filen forsøger at kræve adgang – før den vil køre..

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.Configuration.ConfigurationPermission, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ failed.

Løsning:

Tilføj requirePermission=”false”

Eks.

<section name=”httpCompress” requirePermission=”false” type=”blowery.Web.HttpCompress.SectionHandler, blowery.Web.HttpCompress” />