Double error in Web.config file ASP.NET MVC <p>So when I publish my application I these following errors which I do not get in local mode.</p> <blockquote> <p>"System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."</p> </blockquote> <p>So it is said that I'm supposed to write the following code in my Web.config to solve this first error:</p> <pre><code>&lt;trustLevel name="Full"&gt; </code></pre> <p>So I did, but then, I got this error:</p> <blockquote> <p>"This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using from an inherited configuration file."</p> </blockquote> <p>It apparently has to do with the machine.config (which I cannot find)...</p> <p>Does anyone have a proper solution for this?</p> <p>If you wish to test it yourselves, here is the URL:</p> <p><a href="http://wideart.se/Exhibition" rel="nofollow">http://wideart.se/Exhibition</a></p> <p>Regards</p>