Click here to Skip to main content
15,868,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am getting below exception "The application attempted to perform an operation not allowed by Security Policy while deploying a build in IIS as a fix.
Exception Details:
Request for the permission of type 'System.web.AspNethostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

What I have tried:

Exception Details:
Request for the permission of type 'System.web.AspNethostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed
Posted
Updated 1-Jun-22 0:34am
v2
Comments
Richard Deeming 16-May-22 4:19am    
Either change your code so that it doesn't try to perform the forbidden operation, or change the security policy on your server so that the operation is no longer forbidden.

Unfortunately, since we have no information about your code, and no actual details of the exception, we can't tell you any more than that.
Member 7513082 16-May-22 10:19am    
Below is the Exception details I am getting while deploying the build
Request for the permission of type 'System.web.AspNethostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed

1 solution

Hi Glo to iis, and select application pool which used by your application, and click Advanced Setting and find out "Load User Profile" and make as True.
Ss -- https://prnt.sc/WFqYvwhX0H4s

Refer this url https://www.codeproject.com/Tips/822179/Request-for-the-Permission-of-Type-System-Web


Regards,
Aravind
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900