The application attempted to perform an operation not allowed by the security policy

后端 未结 6 2141
暗喜
暗喜 2020-12-16 22:06

I have developed an Asp.net website in Visual Studio 2008 and it worked fine while using Vista OS but my workstation got upgraded to Windows 7 and I now get following error:

6条回答
  •  难免孤独
    2020-12-16 22:41

    RESOLUTION

    (1) Create an application pool for the appropriate domain using Internet Information Services (IIS). Login to the remote desktop and open IIS Manager. Expand the tree Application Pools. Right click and select New | Application Pool and give the required particulars.

    (2) The next step is to place the domain under the newly created application pool. In order to perform this action, expand the tree labeled Web Sites and then Default Web Site under it. Select your domain name, right click on it and choose Properties menu item. Select the drop down box labeled Application pool and choose the newly created application pool name.

    Note: You can automatically perform the above mentioned steps using certain popular hosting control panels if you have installed them on the server.

    (3) Add the following lines of code to machine.config file. This file can be located under the folder - Root Drive Name:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\CONFIG

    
       
         
       
    
    

    (A) You should require administrative rights to the server and access to remote desktop to resolve the above issue. You should contact your hosting service provider if you don’t have access to the server.

    (B) Replace yourdomain.com with the appropriate domain name in which the problem is occurring.

    Warning: Incorrect modification of machine.config file will cause problems to the ASP.NET service on the server.

提交回复
热议问题