0

ASP.NET アプリケーションを IIS サーバー 7 に配置しようとしました。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 ではこのエラーが表示されます。これで私を助けてください

4

1 に答える 1

0

数週間前にこのエラーが発生しましたが、web.config ファイルが正しくないために発生しました。データベース情報が無効です。うまくいけば、これはあなたを助けるでしょう。

于 2013-01-25T04:11:02.317 に答える