This article mainly introduces a case where the server security dog causes the ASP.NET website to run incorrectly. Finally, the solution is given. The friends who need it can refer to the keywords in the
dictionary: “RegistryPermission” Added keywords: "RegistryPermission" Error, because the security dog on the server is too harsh on the .net program keyword to give an error.
I encountered an error in .net today. I have never seen such an error before, and I don’t have much detailed information. “/” server error in the application.
Keywords in the dictionary: “RegistryPermission” Added keywords: "RegistryPermission" Description: An unhandled exception occurred during the execution of the current web request. Check the stack trace information for details about the error and the source of the error in the code.
Exception Details: System.ArgumentException: The item has been added. Keywords in the dictionary: “RegistryPermission” Added keywords: "RegistryPermission"
Source Error:
An unhandled exception was generated during the execution of the current web request. The following exception stack trace information can be used to determine information about the cause of the anomaly and where it occurred. Stack trace:
The code is as follows: [ArgumentException: Item added. Keywords in the 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): Added item. Keywords in the 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
I thought it was a permission or a problem with the dll file. I finally found out that the security dog was installed on the server.
In the security dog There is a configuration panel related to .net, which is changed to full mode, without any permission restrictions, system default level
Increasingly junk spam has become a cancer on the Internet. Although most email a
This trial is the installation process of IIS6.0 version on Windows Service 2003.
Open the file sharing manager, as shown in Figure 6. Click Share - New Share, enable Folder Sharing
Extrapolated SCSI card after processing good example: Just arrived at the customer, it is the custo
Grasp the twelve elements and teach you to easily choose a mail server
Webpage hanging horse and dark chain detection
Windows 2008 Network Access Protection Application
Unable to log in to phpmyadmin, report 1130 error resolution
Teach you to configure a network print server in UNIX
IIS failed to start "The system could not find the specified path"
Resolving data problems Server and storage management
Under centos nginx+mysql+bugfree+php install
Vista home audio and video server formation program
Ubuntu Linux installation PHP development environment Zend Studio 5.5.1
How to create or format a partition win10? Win10 format partition method
Windows 10 360 speed browser takes up 100% of the CPU how to solve
Remove the login interface of Wind 2000 system
Experts teach you how to use VBA code to quickly enter Excel data
Win7 system connected to WiFi found that the Internet signal is very weak how to do
Windows 7 features experience: security articles
Windows 7 under Aero shutdown recovery method
Win10 UWP version of "Twitter" update: further improve stability