SQL Server从ASP.NET应用程序奇怪的错误
我发布这个问题堆栈溢出,但无济于事。 在这里变得绝望。 所以我们在C#ASP.NET MVC5应用程序中出现了一个非常随机的错误(我的意思是,错误前面没有使用模式),这个错误发生在我们的生产环境中。 这个错误似乎只在用户login后才出现,整个系统崩溃,所有用户都无法访问,直到我们手动进入IIS8并重新启动Web服务器。 我们正在使用IIS的Windows Server 2012环境上运行SQL Server Express 2012 SP2。 错误信息如下: IndexOutOfRangeException/Account/Login Index was outside the bounds of the array. 堆栈跟踪如下: IndexOutOfRangeException·Index was outside the bounds of the array. Raw :0System.Data.SqlClient.SqlDataReader.CheckHeaderIsReady(Int32 columnIndex, Boolean permitAsync, String methodName) :0System.Data.SqlClient.SqlDataReader.IsDBNull(Int32 i) :0System.Data.Entity.Core.Common.Internal.Materialization.Shaper+ErrorHandlingValueReader`1.GetValue(DbDataReader reader, Int32 ordinal) :0lambda_method(Closure , Shaper ) :0System.Data.Entity.Core.Common.Internal.Materialization.Shaper.HandleEntityAppendOnly(Func`2 constructEntityDelegate, EntityKey entityKey, EntitySet entitySet) :0lambda_method(Closure […]