System.ArgumentException: 已添加項。字典中的關鍵字:“RegEx”所添加的關鍵字:“RegEx” 異常的解決辦法


詳細的錯誤信息:

已添加項。字典中的關鍵字:“RegEx”所添加的關鍵字:“RegEx” 

說明: 執行當前 Web 請求期間,出現未處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。 

異常詳細信息: System.ArgumentException: 已添加項。字典中的關鍵字:“RegEx”所添加的關鍵字:“RegEx”

源錯誤: 

執行當前 Web 請求期間生成了未處理的異常。可以使用下面的異常堆棧跟蹤信息確定有關異常原因和發生位置的信息。  

堆棧跟蹤: 

[ArgumentException: 已添加項。字典中的關鍵字:“RegEx”所添加的關鍵字:“RegEx”]
  System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +2904181
  System.Collections.Hashtable.Add(Object key, Object value) +11
  System.Configuration.Provider.ProviderCollection.Add(ProviderBase provider) +75
  UrlRewritingNet.Configuration.Provider.UrlRewritingProviderCollection.Add(ProviderBase provider) +40
  UrlRewritingNet.Web.UrlRewriting.Initialize() +181
  UrlRewritingNet.Web.UrlRewriting.CreateRewriteRule(String providerName) +13
  UrlRewritingNet.Web.UrlRewriteModule.Init(HttpApplication context) +217
  System.Web.HttpApplication.InitModulesCommon() +66
  System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1006
  System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +259
  System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +114
  System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350

該錯誤一般發生在系統第一次啟動時,刷新頁面后就會正常,之后也不會再有此錯誤提示。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM