So I get this error when publishing my ASP.NET MVC application. It works fine locally:
" This happens when the site administrator has locked access to this section using
<location allowOverride="false">
from an inherited configuration file.
I had this error before that I fixed:
"System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
I used the following code in my Web.config file:
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
So does anyone know how I can change my: "<location allowOverride="false">
to true? Cause that must be the problem.
In IIS Manager, select the server node and in the bottom section Feature Delegation
. Find your feature and change it to Read/Write
.
You have to be an administrator to change this setting.