我正在为我的 MVC 应用程序使用 Stackexchange redis,并且我得到了如下的常规 w3wp 异常。它不会发生在生产中,所以我想知道这是否与 Visual Studio 有关?
使用:Visual Studio Premium 2013 版本:12.0.31101.00 更新 4
我正在使用 Microsoft 提供的ASP.NET 会话状态提供程序,在我的 web.config 中它是这样的:(我指的是 azure redis)
<system.web>
<sessionState mode="Custom" customProvider="MySessionStateStore">
<providers>
<add name="MySessionStateStore"
type="Microsoft.Web.Redis.RedisSessionStateProvider"
host="***"
accessKey="***"
ssl="true" />
</providers>
</sessionState>
</system.web>
当我打开应用程序时,每隔几分钟我就会收到此异常。
Application: w3wp.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception.
Exception Info: System.Configuration.ConfigurationErrorsException
Stack: at System.Diagnostics.TraceUtils.GetRuntimeObject(System.String, System.Type, System.String)
at System.Diagnostics.TypedElement.BaseGetRuntimeObject()
at System.Diagnostics.ListenerElement.GetRuntimeObject()
at System.Diagnostics.ListenerElementsCollection.GetRuntimeObject()
at System.Diagnostics.TraceInternal.get_Listeners()
at System.Diagnostics.TraceInternal.WriteLine(System.Object)
at StackExchange.Redis.SocketManager.Read()
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Threading.ThreadHelper.ThreadStart(System.Object)