“/”应用程序中的服务器错误。

德赢vwin客户端苹果版下载_德赢ac米兰官方合作|下载首页

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ComponentModel.Win32Exception: 德赢vwin客户端苹果版下载_德赢ac米兰官方合作|下载首页

源错误:


行 104:
行 105:            ISession session = NHibernateHelper.GetCurrentSession();
行 106:            return session.Get<News_Details>(keyId);
行 107:        }
行 108:    }

源文件: d:\WebPoject\shouye20201020\BaseClass\BLL\News\News_DetailsBLL.cs    行: 106

堆栈跟踪:


[Win32Exception (0x80004005): 德赢vwin客户端苹果版下载_德赢ac米兰官方合作|下载首页]

[SqlException (0x80131904): 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: Named Pipes Provider, error: 40 - 无法打开到 SQL Server 的连接)]
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) +414
   System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection) +78
   System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) +196
   System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +146
   System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) +16
   System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) +94
   System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) +110
   System.Data.SqlClient.SqlConnection.Open() +96
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +77
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +33

[ADOException: cannot open connection]
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +87
   NHibernate.AdoNet.ConnectionManager.GetConnection() +50
   NHibernate.AdoNet.AbstractBatcher.Prepare(IDbCommand cmd) +51
   NHibernate.AdoNet.AbstractBatcher.ExecuteReader(IDbCommand cmd) +27
   NHibernate.Loader.Loader.GetResultSet(IDbCommand st, Boolean autoDiscoverTypes, Boolean callable, RowSelection selection, ISessionImplementor session) +251
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +182
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +64
   NHibernate.Loader.Loader.LoadCollection(ISessionImplementor session, Object id, IType type) +234
   NHibernate.Loader.Collection.CollectionLoader.Initialize(Object id, ISessionImplementor session) +26
   NHibernate.Persister.Collection.AbstractCollectionPersister.Initialize(Object key, ISessionImplementor session) +29
   NHibernate.Event.Default.DefaultInitializeCollectionEventListener.OnInitializeCollection(InitializeCollectionEvent event) +278
   NHibernate.Impl.SessionImpl.InitializeCollection(IPersistentCollection collection, Boolean writing) +88
   NHibernate.Collection.AbstractPersistentCollection.ForceInitialization() +65
   NHibernate.Engine.StatefulPersistenceContext.InitializeNonLazyCollections() +140
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +109
   NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, String optionalEntityName, Object optionalIdentifier, IEntityPersister persister) +287
   NHibernate.Loader.Entity.AbstractEntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject, Object optionalId) +33
   NHibernate.Loader.Entity.AbstractEntityLoader.Load(Object id, Object optionalObject, ISessionImplementor session) +18
   NHibernate.Persister.Entity.AbstractEntityPersister.Load(Object id, Object optionalObject, LockMode lockMode, ISessionImplementor session) +112
   NHibernate.Event.Default.DefaultLoadEventListener.LoadFromDatasource(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +31
   NHibernate.Event.Default.DefaultLoadEventListener.DoLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +529
   NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +116
   NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(LoadEvent event, IEntityPersister persister, EntityKey keyToLoad, LoadType options) +272
   NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent event, LoadType loadType) +431
   NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType loadType) +48
   NHibernate.Impl.SessionImpl.Get(String entityName, Object id) +98
   NHibernate.Impl.SessionImpl.Get(Type entityClass, Object id) +28
   NHibernate.Impl.SessionImpl.Get(Object id) +66
   BLL.News_DetailsBLL.GetNews_DetailsById(Int32 keyId) in d:\WebPoject\shouye20201020\BaseClass\BLL\News\News_DetailsBLL.cs:106
   jx_NewsInfo.Page_Load(Object sender, EventArgs e) in d:\WebPoject\shouye20201020\TrainingWeb20191206\jx_NewsInfo.aspx.cs:49
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34249