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

已添加了具有相同键的项。

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

异常详细信息: System.ArgumentException: 已添加了具有相同键的项。

源错误:

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

堆栈跟踪:


[ArgumentException: 已添加了具有相同键的项。]
   System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) +52
   System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +12973442
   System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value) +17
   TourEx.B2C.Common.Utils.IniConfig() +544
   TourEx.B2C.Common.Utils.includeModule(String moduleName) +103
   TourEx.B2C.Common.Utils.GetRewriteRule() +505
   TourEx.B2C.UrlRewriter.ModuleRewriter.Rewrite(String requestedPath, HttpApplication app) +4081
   TourEx.B2C.UrlRewriter.BaseModuleRewriter.BaseModuleRewriter_AuthorizeRequest(Object sender, EventArgs e) +134
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +141
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +48
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +71


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.4136.0