我尝试在IIS服务器7中部署ASP.NET应用程序。我正在使用Windows 7.部署时我收到错误“无法找到表0。”
Exception Details: System.IndexOutOfRangeException: Cannot find table 0
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[IndexOutOfRangeException: Cannot find table 0.]
System.Data.DataTableCollection.get_Item(Int32 index) +95
LHS.RightColumn.Page_Load(Object sender, EventArgs e) in C:\Saravanan\Saravanan\Saravanan\LHS\LHS\RightColumn.ascx.cs:33
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.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
请帮我解决这个问题。 在Visual Studio中,此应用程序运行正常。 但在IIS中它显示此错误。 请帮帮我
答案 0 :(得分:0)
几个星期前我发生了这个错误,因为 web.config文件不正确而发生了这个错误。 数据库信息无效。希望这对你有帮助。