Discussion:
[nhusers] Unable to connect to mysql
Siva Prasad Nath
2017-12-15 15:27:47 UTC
Permalink
Please help me. I am getting below error.

[WaitHandleCannotBeOpenedException: No handle of the given name exists.]
System.Threading.EventWaitHandle.OpenExisting(String name, EventWaitHandleRights rights) +137
MySql.Data.Common.SharedMemoryStream.GetConnectNumber(UInt32 timeOut) +457
MySql.Data.Common.SharedMemoryStream.Open(UInt32 timeOut) +20
MySql.Data.Common.StreamCreator.GetSharedMemoryStream(MySqlConnectionStringBuilder settings) +66
MySql.Data.MySqlClient.NativeDriver.Open() +79

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
MySql.Data.MySqlClient.NativeDriver.Open() +1380
MySql.Data.MySqlClient.Driver.Open() +60
MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +333
MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +18
MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +300
MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +151
MySql.Data.MySqlClient.MySqlPool.GetConnection() +57
MySql.Data.MySqlClient.MySqlConnection.Open() +1180
NHibernate.Connection.DriverConnectionProvider.GetConnection() +207
NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() +27
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) +47
NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) +90
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) +737
NHibernate.Cfg.Configuration.BuildSessionFactory() +115
nhbdemonew.NHIbernateSession.get_WMISSesssion() in E:\nhibernate\nhbdemonew\nhbdemonew\NHIbernateSession.cs:24
nhbdemonew.MvcApplication.Application_Start() in E:\nhibernate\nhbdemonew\nhbdemonew\Global.asax.cs:19

[HttpException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +529
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +169
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +169
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +396
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +333

[HttpException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +525
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +124
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +700


------------------------------
--
You received this message because you are subscribed to the Google Groups "nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nhusers+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.
Loading...