最近碰到一个问题,站点是编译后的,本来运行得好好的,服务器重启后,就出现以下问题,很奇怪,不知道为什么会出错,麻烦知道的告诉一下,谢谢。
Server Error in '/' Application.
--------------------------------------------------------------------------------Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: indexSource Error:
[No relevant source lines]
Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\68e214f7\8f033f03\App_Web_2zmsr3kj.0.cs Line: 0 Stack Trace:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +9435115
MapInfo.Mapping.MapFactory.get_Item(Int32 index) +48
ApplicationStateManager.AppStateManager.GetMapObj(String mapAlias) +93
ApplicationStateManager.AppStateManager.SaveState() +49
_Default.Page_UnLoad(Object sender, EventArgs e) +26
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnUnload(EventArgs e) +8925698
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +241
System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
System.Web.UI.Page.ProcessRequestCleanup() +43
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.mapform_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\68e214f7\8f033f03\App_Web_2zmsr3kj.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Server Error in '/' Application.
--------------------------------------------------------------------------------Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: indexSource Error:
[No relevant source lines]
Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\68e214f7\8f033f03\App_Web_2zmsr3kj.0.cs Line: 0 Stack Trace:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index) +9435115
MapInfo.Mapping.MapFactory.get_Item(Int32 index) +48
ApplicationStateManager.AppStateManager.GetMapObj(String mapAlias) +93
ApplicationStateManager.AppStateManager.SaveState() +49
_Default.Page_UnLoad(Object sender, EventArgs e) +26
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnUnload(EventArgs e) +8925698
System.Web.UI.Control.UnloadRecursive(Boolean dispose) +241
System.Web.UI.Page.UnloadRecursive(Boolean dispose) +23
System.Web.UI.Page.ProcessRequestCleanup() +43
System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
System.Web.UI.Page.ProcessRequest() +78
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.mapform_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\68e214f7\8f033f03\App_Web_2zmsr3kj.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
解决方案 »
- 很简单的小问题,高手帮忙写个js脚本
- .NET 关于数字运算问题
- 想做一个比较完整的购物车功能,因为以前没做过谁能提供的一点文档或源码?
- |zyciis| 为什么我在多线程中的Session赋的值只有第一次有效而后面再对他赋的值就没有效果呢!
- asp.net excel 下载
- 求一套.net做的网站源码来学习,谢谢!
- 一个asp.net程序拷到另一台机器 不建虚拟目录的话怎么能运行 请教各位大哥 多谢了
- OFFICE 2003 中包含 Visio 吗?
- 我想做一个button按钕,当在这个网页上停留满10秒,这个button按钕才会被激活,希望高手写一点代码给我,希望不要用javascript,而且这个按钕
- 急:大家帮我看看这个存储过程,怎么才能查出正确的结果呀?
- 如何验证在TextBox中输入MAC是否正确
- 关于获取插入数据库失败值
MapInfo.Mapping.MapFactory