A case where the server security dog caused the ASP.net web site to run wrong

Source: Internet
Author: User
Tags httpcontext stack trace

Keywords in the dictionary: "registrypermission" added Keywords: "registrypermission" error, because the server on the security dog on the. NET program keyword too harsh lead to an error.

Today, I encountered a. NET error, and have not seen this error, and there is not much detailed information. Server error in '/' Application.

Keywords in dictionary: "RegistryPermission" added Keywords: "RegistryPermission"

Note: An unhandled exception occurred during the execution of the current WEB request. Check the stack trace for more information about the error and where the error occurred in the code.

Exception Details: System.ArgumentException: Item has been added. Keywords in dictionary: "RegistryPermission" added Keywords: "RegistryPermission"

SOURCE Error:

An unhandled exception was generated during the execution of the current WEB request. You can use the following exception stack trace to determine information about the cause of the exception and where it occurred.

Stack trace:

The code is as follows:

[ArgumentException: Items have been added. Keywords in dictionary: "RegistryPermission" added Keywords: "registrypermission"]

System.Collections.Hashtable.Insert (Object key, Object Nvalue, Boolean Add) +7482408

System.Collections.Hashtable.Add (Object key, object value) +11

SYSTEM.SECURITY.POLICY.POLICYLEVEL.FROMXML (securityelement e) +307

System.Security.SecurityManager.LoadPolicyLevelFromStringHelper (String str, string path, Policyleveltype type) +207

System.Security.SecurityManager.LoadPolicyLevelFromString (String str, policyleveltype type) +37

System.Web.HttpRuntime.CreatePolicyLevel (String configfile, String appdir, String BinDir, String stroriginurl, Boolean & Foundgactoken) +420

System.Web.HttpRuntime.SetTrustLevel (trustsection trustsection, securitypolicysection securitypolicysection) + 8913358

System.Web.HttpRuntime.HostingInit (hostingenvironmentflags hostingflags) +186

[HttpException (0x80004005): item has been added. Keywords in dictionary: "RegistryPermission" added Keywords: "registrypermission"]

System.Web.HttpRuntime.FirstRequestInit (HttpContext context) +8886319

System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext context) +85

System.Web.HttpRuntime.ProcessRequestInternal (HttpWorkerRequest wr) +259

--------------------------------------------------------------------------------

Version information: Microsoft. NET Framework Version: 2.0.50727.3053; asp.net version: 2.0.50727.3053

At first thought is the permissions or DLL files have problems, and finally found that the server has installed a security dog problem

There is a. NET-related configuration panel in the security dog, which is changed to full mode with no permission restrictions, system default level

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.