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

Invalid object name 'FILMSCHOOL_RESOURCE'.

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

例外狀況詳細資訊: System.Data.SqlClient.SqlException: Invalid object name 'FILMSCHOOL_RESOURCE'.

原始程式錯誤:


行 31:         IndCriteria.Add(Expression.Eq("IsEnable", true));
行 32:         IndCriteria.AddOrder(Order.Desc("ListOrder"));
行 33:         IList<ResourceVO> InresourceVOs = myService.Dao.ExecutableDetachedCriteria<ResourceVO>(IndCriteria);
行 34: 
行 35: 

原始程式檔: c:\website\filmschool\content\info\Resource.aspx.cs    行: 33

堆疊追蹤:


[SqlException (0x80131904): Invalid object name 'FILMSCHOOL_RESOURCE'.]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +3335264
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +334
   System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +4679
   System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +89
   System.Data.SqlClient.SqlDataReader.get_MetaData() +101
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) +624
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) +3392
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) +725
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +84
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +312
   NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\AdoNet\AbstractBatcher.cs:252
   NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:1245
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:414
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:246
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:1590

[GenericADOException: could not execute query
[ SELECT this_.Id as Id0_0_, this_.Title as Title0_0_, this_.Classify as Classify0_0_, this_.Link as Link0_0_, this_.Content as Content0_0_, this_.ListOrder as ListOrder0_0_, this_.IsEnable as IsEnable0_0_, this_.CreateTime as CreateTime0_0_, this_.CreateId as CreateId0_0_, this_.UpdateTime as UpdateTime0_0_, this_.UpdateId as UpdateId0_0_ FROM FILMSCHOOL_RESOURCE this_ WHERE this_.Classify = @p0 and this_.IsEnable = @p1 ORDER BY this_.ListOrder desc ]
  Name:cp0 - Value:1  Name:cp1 - Value:True
[SQL: SELECT this_.Id as Id0_0_, this_.Title as Title0_0_, this_.Classify as Classify0_0_, this_.Link as Link0_0_, this_.Content as Content0_0_, this_.ListOrder as ListOrder0_0_, this_.IsEnable as IsEnable0_0_, this_.CreateTime as CreateTime0_0_, this_.CreateId as CreateId0_0_, this_.UpdateTime as UpdateTime0_0_, this_.UpdateId as UpdateId0_0_ FROM FILMSCHOOL_RESOURCE this_ WHERE this_.Classify = @p0 and this_.IsEnable = @p1 ORDER BY this_.ListOrder desc]]
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:1599
   NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Loader\Loader.cs:1497
   NHibernate.Impl.SessionImpl.List(CriteriaImpl criteria, IList results) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\SessionImpl.cs:1955
   NHibernate.Impl.CriteriaImpl.List(IList results) in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\CriteriaImpl.cs:265
   NHibernate.Impl.CriteriaImpl.List() in d:\CSharp\NH\NH\nhibernate\src\NHibernate\Impl\CriteriaImpl.cs:277
   com.pro2e.console.core.service.dao.NHibernateDaoImpl.ExecutableDetachedCriteria(DetachedCriteria detachedcriteria) in C:\project\filmschool\trunk\code\Pro2eConsole\core\service\dao\NHibernateDaoImpl.cs:176
   _dynamic_com.pro2e.console.core.service.dao.NHibernateDaoImpl.ExecutableDetachedCriteria(Object , Object[] ) +145
   Spring.Aop.Framework.DynamicMethodInvocation.InvokeJoinpoint() in c:\_prj\spring-net\trunk\src\Spring\Spring.Aop\Aop\Framework\DynamicMethodInvocation.cs:100
   Spring.Transaction.Interceptor.TransactionInterceptor.Invoke(IMethodInvocation invocation) in c:\_prj\spring-net\trunk\src\Spring\Spring.Data\Transaction\Interceptor\TransactionInterceptor.cs:79
   CompositionAopProxy_8d005c4b8ea741219f79c6b9f8779058.ExecutableDetachedCriteria(DetachedCriteria detachedcriteria) +330
   content_info_Resource.DoSearch() in c:\website\filmschool\content\info\Resource.aspx.cs:33
   content_info_Resource.Page_Load(Object sender, EventArgs e) in c:\website\filmschool\content\info\Resource.aspx.cs:21
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


版本資訊: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.8.4700.0