1
Reply

Security Exception coming in a running asp.net website

M B

M B

Feb 10 2017 9:33 AM
245
 
 I am getting this error when I am trying to call above function.

var controller = new createCustomerProfileController(request); // instantiate the contoller that will call the service
ontroller.Execute();
 
Error :- Exception Details: 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 have tried  my app.config file.
 
<system.web>
<securityPolicy>
<trustLevel name="Full" policyFile="internal"/>
</securityPolicy>
</system.web>
 
Please help me to solve this issue.
 
 
 
 

Answers (1)