I am having an issue with the trust level of my site. I have gone through the documentation and it is still not working. The site is available at http://lifetube.me/ if you want to take a look at it. As per http://screencast.com/t/s6BBLzHCrR at https://support.Winhost.com/KB/a657/changing-the-default-aspnet-trust-level.aspx, I have set the trust level to full but i then get the error http://screencast.com/t/gCreYdVno. When I add the attribute policyFile="internal" I no longer get the trust level error but I am back to my original error. 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.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed. Source Error: 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.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.] System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0 System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& stackMark) +31 System.Security.CodeAccessPermission.Demand() +46 System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) +99 Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Are you changing the trust level from the web.config file or from the IIS 7 manager? I find that changing the trust level in the IIS 7 manager works best for me. If you login to the IIS manager and you see that the trust is set to full, i set it back to medium and back to full again to make sure.
It's in the wrong section with wrong syntax according to your screenshots. It should be within <system.web> and the syntax is <trust level="Full" /> You have it between <securityPolicy> and <trustLevel name='Full' />