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

后端 未结 6 2136
暗喜
暗喜 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:17

    Try this

    Go to the properties of precompiled dll’s, check to see if it has following security message (at the bottom of the window): "This file came from another computer and might be blocked to help protect this computer." If present, click "Unblock", "Apply" and "OK".

    OR

    Run the below caspol command to resolve the issue Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url file:////c:\mysitecontent\* FullTrust -exclusive on

    Note: Please substitute c:\mysitecontent\* with actual path where ASP.net pre-compiled DLLs are located.

    And restart the system.

    If it helped you vote it up please.

提交回复
热议问题