Server Error in '/' Application.

A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)

Source Error:


Line 32:             _newsYear = 0;
Line 33:             _presenter = new NewsListPresenter(this, DaoFactory);
Line 34:             _presenter.InitView(_newsMonth, _newsYear);
Line 35:         }
Line 36:     }

Source File: d:\www\webs\parliamentspeakers.com\wwwroot\controls\NewsArchive.ascx.cs    Line: 34

Stack Trace:


[SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)]
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +428
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +60
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +40

[ADOException: cannot open connection]
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +95
   NHibernate.Impl.ConnectionManager.GetConnection() +50
   NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) +56
   NHibernate.Impl.BatcherImpl.ExecuteReader(IDbCommand cmd) +27
   NHibernate.Loader.Loader.GetResultSet(IDbCommand st, RowSelection selection, ISessionImplementor session) +194
   NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +176
   NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies) +67
   NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters) +51
   NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) +18
   NHibernate.Loader.Loader.List(ISessionImplementor session, QueryParameters queryParameters, ISet querySpaces, IType[] resultTypes) +81
   NHibernate.Hql.Classic.QueryTranslator.List(ISessionImplementor session, QueryParameters queryParameters) +21
   NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters, IList results) +213
   NHibernate.Impl.SessionImpl.Find(String query, QueryParameters parameters) +68
   NHibernate.Impl.QueryImpl.List() +148
   parliament.data.NewsDao.GetAllLiveNews() in D:\Work\Parliament\ParliamentSpeakersSolution\parliament.data\NewsDao.cs:18
   parliament.presenters.NewsListPresenter.InitView(Int32 month, Int32 year) +124
   controls_NewsArchive.OnInit(EventArgs e) in d:\www\webs\parliamentspeakers.com\wwwroot\controls\NewsArchive.ascx.cs:34
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +198
   System.Web.UI.ControlCollection.Add(Control child) +80
   NewsItem.OnInit(EventArgs e) in d:\www\webs\parliamentspeakers.com\wwwroot\News\NewsItem.aspx.cs:25
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378


Version Information: Microsoft .NET Framework Version:2.0.50727.3662; ASP.NET Version:2.0.50727.3668