Server Error in '/' Application.

No such host is known

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.Net.Sockets.SocketException: No such host is known

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[SocketException (0x2af9): No such host is known]
   System.Net.Dns.HostResolutionEndHelper(IAsyncResult asyncResult) +367
   System.Net.Dns.EndGetHostAddresses(IAsyncResult asyncResult) +49
   System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) +86

[AggregateException: One or more errors occurred.]
   System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) +4316222
   System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) +12781669
   MySql.Data.Common.StreamCreator.GetTcpStream(MySqlConnectionStringBuilder settings) +43
   MySql.Data.Common.StreamCreator.GetStream(MySqlConnectionStringBuilder settings) +35
   MySql.Data.MySqlClient.NativeDriver.Open() +55

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   MySql.Data.MySqlClient.NativeDriver.Open() +151
   MySql.Data.MySqlClient.Driver.Open() +50
   MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings) +239
   MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection() +11
   MySql.Data.MySqlClient.MySqlPool.GetPooledConnection() +303
   MySql.Data.MySqlClient.MySqlPool.TryToGetDriver() +93
   MySql.Data.MySqlClient.MySqlPool.GetConnection() +65
   MySql.Data.MySqlClient.MySqlConnection.Open() +1360
   NHibernate.Connection.DriverConnectionProvider.GetConnection(String connectionString) +183
   NHibernate.Connection.ConnectionProvider.GetConnection() +27
   NHibernate.Tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.Prepare() +14
   NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.GetReservedWords(Dialect dialect, IConnectionHelper connectionHelper) +37
   NHibernate.Tool.hbm2ddl.SchemaMetadataUpdater.Update(ISessionFactoryImplementor sessionFactory) +55
   NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings, EventListeners listeners) +665
   NHibernate.Cfg.Configuration.BuildSessionFactory() +173
   DiagramaFeiras.Repositorio.Configuracao.NHibernateHelper.GetSession(String conexao) in D:\Projetos\DiagramaFeiras2.0\DiagramaFeiras2.0\DiagramaFeiras.Repositorio\Configuracao\NHibernateHelper.cs:86
   BWExpo.Utilitarios.NHibernateHttpModule.get_CurrentSession() in D:\Projetos\DiagramaFeiras2.0\DiagramaFeiras2.0\BWExpo\Utilitarios\NHibernateHttpModule.cs:71
   BWExpo.App_Start.<>c.<RegisterContainer>b__0_2() in D:\Projetos\DiagramaFeiras2.0\DiagramaFeiras2.0\BWExpo\App_Start\ContainerConfig.cs:34
   lambda_method(Closure ) +37
   SimpleInjector.Scope.CreateAndCacheInstance(ScopedRegistration registration, Dictionary`2 cache) +20
   SimpleInjector.Scope.GetInstanceInternal(ScopedRegistration registration) +169
   SimpleInjector.Scope.GetInstance(ScopedRegistration registration, Scope scope) +94
   SimpleInjector.Advanced.Internal.LazyScopedRegistration`1.GetInstance(Scope scope) +99
   lambda_method(Closure ) +355
   SimpleInjector.Scope.CreateAndCacheInstance(ScopedRegistration registration, Dictionary`2 cache) +20
   SimpleInjector.Scope.GetInstanceInternal(ScopedRegistration registration) +169
   SimpleInjector.Scope.GetInstance(ScopedRegistration registration, Scope scope) +94
   SimpleInjector.Advanced.Internal.LazyScopedRegistration`1.GetInstance(Scope scope) +99
   lambda_method(Closure ) +321
   SimpleInjector.InstanceProducer.BuildAndReplaceInstanceCreatorAndCreateFirstInstance() +32
   SimpleInjector.InstanceProducer.GetInstance() +66

[ActivationException: Unable to connect to any of the specified MySQL hosts.]
   SimpleInjector.InstanceProducer.GetInstance() +161
   SimpleInjector.InstanceProducer.VerifyInstanceCreation() +31

[InvalidOperationException: The configuration is invalid. Creating the instance for type RepositorioAtividade failed. Unable to connect to any of the specified MySQL hosts.]
   SimpleInjector.InstanceProducer.VerifyInstanceCreation() +94
   SimpleInjector.Container.VerifyInstanceCreation(InstanceProducer[] producersToVerify, Scope verificationScope) +38
   SimpleInjector.Container.VerifyThatAllRootObjectsCanBeCreated(Scope verificationScope) +177
   SimpleInjector.Container.VerifyInternal(Boolean suppressLifestyleMismatchVerification) +201
   SimpleInjector.Container.Verify(VerificationOption option) +57
   BWExpo.App_Start.ContainerConfig.RegisterContainer() in D:\Projetos\DiagramaFeiras2.0\DiagramaFeiras2.0\BWExpo\App_Start\ContainerConfig.cs:37
   BWExpo.MvcApplication.Application_Start() in D:\Projetos\DiagramaFeiras2.0\DiagramaFeiras2.0\BWExpo\Global.asax.cs:22

[HttpException (0x80004005): The configuration is invalid. Creating the instance for type RepositorioAtividade failed. Unable to connect to any of the specified MySQL hosts.]
   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +475
   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118
   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +220
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +303

[HttpException (0x80004005): The configuration is invalid. Creating the instance for type RepositorioAtividade failed. Unable to connect to any of the specified MySQL hosts.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +656
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4690.0