“/”应用程序中的服务器错误。

已添加项。字典中的关键字:“RegistryPermission”所添加的关键字:“RegistryPermission”

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: 已添加项。字典中的关键字:“RegistryPermission”所添加的关键字:“RegistryPermission”

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:


[ArgumentException: 已添加项。字典中的关键字:“RegistryPermission”所添加的关键字:“RegistryPermission”]
   System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7491576
   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) +9011150
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +186

[HttpException (0x80004005): 已添加项。字典中的关键字:“RegistryPermission”所添加的关键字:“RegistryPermission”]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8982371
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +259


版本信息: Microsoft .NET Framework 版本:2.0.50727.4253; ASP.NET 版本:2.0.50727.4257