Server Error in '/' Application.

The host name or IP address is invalid.

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.ArgumentException: The host name or IP address is invalid.

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:


[ArgumentException: The host name or IP address is invalid.]
   MySql.Data.Common.<GetTcpStreamAsync>d__8.MoveNext() +347
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   MySql.Data.Common.<GetStreamAsync>d__7.MoveNext() +258
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
   System.Runtime.CompilerServices.ConfiguredTaskAwaiter.GetResult() +29
   MySql.Data.MySqlClient.<OpenAsync>d__38.MoveNext() +328

[MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts.]
   BB.Database.ConnectionFactory.OpenSession() in C:\Ninestack Projects\4CastMedia\ByggeBolig\BB\Database\ConnectionFactory.cs:43
   BB.Repositories.Repository.Insert(SessionContext context, T obj) in C:\Ninestack Projects\4CastMedia\ByggeBolig\BB\Repositories\Repository.cs:241
   BB.Web.Infrastructure.Configuration.StoreError(String body) in C:\Ninestack Projects\4CastMedia\ByggeBolig\BB.Web\Infrastructure\Configuration.cs:211
   BB.Web.Infrastructure.Configuration.StoreError(Exception exception, String body) in C:\Ninestack Projects\4CastMedia\ByggeBolig\BB.Web\Infrastructure\Configuration.cs:199
   BB.Web.Infrastructure.Configuration.FatalErrorHandler(Exception exception) in C:\Ninestack Projects\4CastMedia\ByggeBolig\BB.Web\Infrastructure\Configuration.cs:97
   Mano.CMS.Web.Controllers.ContentBaseController.OnException(ExceptionContext filterContext) in C:\Ninestack Projects\4CastMedia\ByggeBolig\Mano.Web\Controllers\ContentBaseController.cs:199
   System.Web.Mvc.Controller.System.Web.Mvc.IExceptionFilter.OnException(ExceptionContext filterContext) +10
   System.Web.Mvc.ControllerActionInvoker.InvokeExceptionFilters(ControllerContext controllerContext, IList`1 filters, Exception exception) +109
   System.Web.Mvc.Async.<>c__DisplayClass21.<BeginInvokeAction>b__1e(IAsyncResult asyncResult) +87
   System.Web.Mvc.Async.WrappedAsyncResult`1.CallEndDelegate(IAsyncResult asyncResult) +10
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +27
   System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +13
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +36
   System.Web.Mvc.Controller.<BeginExecute>b__15(IAsyncResult asyncResult, Controller controller) +12
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +22
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +26
   System.Web.Mvc.Controller.System.Web.Mvc.Async.IAsyncController.EndExecute(IAsyncResult asyncResult) +10
   System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__5(IAsyncResult asyncResult, ProcessRequestState innerState) +21
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +29
   System.Web.Mvc.Async.WrappedAsyncResultBase`1.End() +49
   System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +28
   System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9850961
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163


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