Recently, the program changed a space, and the service provider used the 08 system. They may have implemented ASP. NET security restrictions for security concerns, which then caused exceptions in my ASP. NET program.
The application attempts to perform operations not permitted by the security policy. To grant the required permissions to the application, contact the system administrator or change the trust level of the application in the configuration file.
System. Security. Permissions. SecurityPermission
I have never encountered a problem like this, which makes me very depressed. The solution has been found.
This type of error occurs because ASP. NET cannot load some DLL class library files.
The first solution is to have absolute permissions on the server. Generally, an independent server can adopt this method.
Solution:
1. Open iis and select the connection pool.
2. Click to select Advanced Settings.
3. Select Process Model -- Select Identity -- and set NetworkService
4. OK
The second is to configure in the WEB. CONFIG file.
You just need to add the code after </system. web>.
<Location allowOverride = "true">
<System. web>
<Trust level = "Full"/>
</System. web>
</Location>
First article: The application attempts to perform operations that are not permitted by the security policy. To grant permissions required for this application