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 failed.
Solution:
1. Add following lines into web.config file.
<system.web>
<trust level="Full"/>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
2. If above solution doesn't work then try following step:
Go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution in Visual Studio Find “DotNetCompilerPlatform” and uninstall it if present.
No comments:
Post a Comment