Welcome to JCtrans.net , Registration |  Login

Unexpected error happenend

This is the rescue page. See the exception details below

ActiveRecordException

Message:
Could not perform SlicedFindAll for FreightNew

StackTrace:
   在 Castle.ActiveRecord.ActiveRecordBase.SlicedFindAll(Type targetType, Int32 firstResult, Int32 maxResults, Order[] orders, DetachedCriteria criteria)
   在 Castle.ActiveRecord.ActiveRecordBase.SlicedFindAll(Type targetType, Int32 firstResult, Int32 maxResults, DetachedCriteria criteria)
   在 Castle.ActiveRecord.ActiveRecordBase.FindOne(Type targetType, DetachedCriteria criteria)
   在 Net.Jctrans.Model.FreightNew.Find(Int32 ID)
   在 Net.Jctrans.Controllers.FreightShowController.Details(Int32 id)

Inner exception:
ADOException

Message:
cannot open connection

StackTrace:
   在 NHibernate.Impl.SessionFactoryImpl.OpenConnection()
   在 NHibernate.Impl.ConnectionManager.GetConnection()
   在 NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd)
   在 NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd)
   在 NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session)
   在 NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
   在 NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies)
   在 NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters)
   在 NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters)
   在 NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes)
   在 NHibernate.Loader.Criteria.CriteriaLoader.List(ISessionImplementor session)
   在 NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria, IList results)
   在 NHibernate.Impl.SessionImpl.Find(CriteriaImpl criteria)
   在 NHibernate.Impl.CriteriaImpl.List()
   在 Castle.ActiveRecord.ActiveRecordBase.SlicedFindAll(Type targetType, Int32 firstResult, Int32 maxResults, Order[] orders, DetachedCriteria criteria)

Inner exception:
SqlException

Message:
无法打开登录所请求的数据库 "JCNet"。登录失败。
用户 'sa' 登录失败。

StackTrace:
   在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   在 System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
   在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   在 System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   在 System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   在 System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   在 System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   在 System.Data.SqlClient.SqlConnection.Open()
   在 NHibernate.Connection.DriverConnectionProvider.GetConnection()
   在 NHibernate.Impl.SessionFactoryImpl.OpenConnection()