Server Error in '/' Application.

Exception of type 'System.Exception' was thrown.

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.Exception: Exception of type 'System.Exception' was thrown.

Source Error:


Line 23:         /// </summary>
Line 24:         private void BeginTransaction(object sender, EventArgs e) {
Line 25:             NHibernateSessionManager.Instance.BeginTransaction();
Line 26:         }
Line 27: 

Source File: e:\default\wwwroot\bettyschwartzs.com\App_Code\NHibernateSessionModule.cs    Line: 25

Stack Trace:


[Exception: Exception of type 'System.Exception' was thrown.]
   MySql.Data.MySqlClient.NativeDriver.Open() +110

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +250
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +50
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +70
   MySql.Data.MySqlClient.MySqlConnection.Open() +212
   NHibernate.Connection.DriverConnectionProvider.GetConnection() +59
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +29

[ADOException: cannot open connection]
   NHibernate.Impl.SessionFactoryImpl.OpenConnection() +83
   NHibernate.Impl.ConnectionManager.GetConnection() +51
   NHibernate.Impl.SessionImpl.get_Connection() +12
   NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel isolationLevel) +177
   NHibernate.Transaction.AdoTransaction.Begin() +8
   NHibernate.Impl.SessionImpl.BeginTransaction() +32
   BettySchwartzsBusiness.NHibernateSessionManager.BeginTransaction() in E:\Websites\BettySchwartzs\BettySchwartzsBusiness\NHibernateSessionManager.cs:113
   BettySchwartzs.Web.NHibernateSessionModule.BeginTransaction(Object sender, EventArgs e) in e:\default\wwwroot\bettyschwartzs.com\App_Code\NHibernateSessionModule.cs:25
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433