'/' 應用程式中發生伺服器錯誤。

Invalid object name 'fubon.dbo.FUBON_ACTIVITY_DREAM_SCHOOL_GROUP'.
Could not use view or function 'FUBON_ACTIVITY_DREAM_SCHOOL_GROUP' because of binding errors.

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.Data.SqlClient.SqlException: Invalid object name 'fubon.dbo.FUBON_ACTIVITY_DREAM_SCHOOL_GROUP'.
Could not use view or function 'FUBON_ACTIVITY_DREAM_SCHOOL_GROUP' because of binding errors.

原始程式錯誤:


行 191:            String sql = "SELECT Name FROM FUBON_ACTIVITY_DREAM_SCHOOL_GROUP";
行 192:            sql += string.Format(" WHERE Id={0} ", vo.Dream_SchoolGroup);
行 193:            DataTable dt = myService.SqlHelper.GetDataTable(sql);
行 194:            if (dt != null && dt.Rows.Count > 0)
行 195:            {

原始程式檔: c:\website\DreamWeb\content\DreamHistory.aspx.cs    行: 193

堆疊追蹤:


[SqlException (0x80131904): Invalid object name 'fubon.dbo.FUBON_ACTIVITY_DREAM_SCHOOL_GROUP'.
Could not use view or function 'FUBON_ACTIVITY_DREAM_SCHOOL_GROUP' because of binding errors.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +212
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +245
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2843
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +127
   System.Data.SqlClient.SqlDataReader.get_MetaData() +112
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +6358788
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +6359857
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +424
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +28
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +211
   System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) +19
   System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +19
   System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +221
   System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) +579
   System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +181
   com.pro2e.console.core.service.dao.SQLDaoImpl.GetDataTable(String strSQL) in F:\project\poloholidays\code\Pro2eConsole\core\service\dao\SQLDaoImpl.cs:70
   content_DreamHistory.rptSchool_ItemDataBound(Object sender, RepeaterItemEventArgs e) in c:\website\DreamWeb\content\DreamHistory.aspx.cs:193
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +693
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +68
   content_DreamHistory.ShowRptSchool() in c:\website\DreamWeb\content\DreamHistory.aspx.cs:170
   content_DreamHistory.Page_Load(Object sender, EventArgs e) in c:\website\DreamWeb\content\DreamHistory.aspx.cs:46
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


版本資訊: Microsoft .NET Framework 版本:2.0.50727.9174; ASP.NET 版本:2.0.50727.9175