Server Error in '/' Application.

Unable to read the security policy file for trust level 'Custom'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Unable to read the security policy file for trust level 'Custom'.

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:


[HttpException (0x80004005): Unable to read the security policy file for trust level 'Custom'.]
   System.Web.HttpRuntime.SetTrustLevel(TrustSection trustSection, SecurityPolicySection securityPolicySection) +11476214
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +11490142

[HttpException (0x80004005): Unable to read the security policy file for trust level 'Custom'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11441606
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +11314568


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062