廣告:
環(huán)境:asp.net mvc2.0 asp.net 3.5 sp1
“/”應(yīng)用程序中的服務(wù)器錯誤。
--------------------------------------------------------------------------------
已添加項。字典中的關(guān)鍵字:“RegistryPermission”所添加的關(guān)鍵字:“RegistryPermission”
說明: 執(zhí)行當(dāng)前 Web 請求期間,出現(xiàn)未處理的異常。請檢查堆棧跟蹤信息,以了解有關(guān)該錯誤以及代碼中導(dǎo)致錯誤的出處的詳細(xì)信息。
異常詳細(xì)信息: System.ArgumentException: 已添加項。字典中的關(guān)鍵字:“RegistryPermission”所添加的關(guān)鍵字:“RegistryPermission”
源錯誤:
執(zhí)行當(dāng)前 Web 請求期間生成了未處理的異常。可以使用下面的異常堆棧跟蹤信息確定有關(guān)異常原因和發(fā)生位置的信息。
堆棧跟蹤:
[ArgumentException: 已添加項。字典中的關(guān)鍵字:“RegistryPermission”所添加的關(guān)鍵字:“RegistryPermission”]
System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7488744
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) +8957662
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +186
[HttpException (0x80004005): 已添加項。字典中的關(guān)鍵字:“RegistryPermission”所添加的關(guān)鍵字:“RegistryPermission”]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8929199
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
解決方法:服務(wù)器網(wǎng)站中安全狗中安全模式設(shè)置 .net版本 2.0 選完整模式
廣告: