Format of the initialization string does not conform to specification starting at index 126.

Version 1

    Details

    Format of the initialization string does not conform to specification starting at index 126.  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: Format of the initialization string does not conform to specification starting at index 126.  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: Format of the initialization string does not conform to specification starting at index 126.]    System.Data.EntityClient.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, String& keyname, String& keyvalue) +10683060    System.Data.EntityClient.DbConnectionOptions.ParseInternal(Hashtable parsetable, String connectionString, Hashtable synonyms) +240    System.Data.EntityClient.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms) +113    System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +146    System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) +82    OpsConsole.Infrastructure.Data.OpsConsoleContext..ctor(String connectionString) +63    OpsConsole.Infrastructure.Repositories.LandscapeRepository..ctor(String user, ILoggerFactory loggerFactory) +390    OpsConsole.DependencyResolution.ServiceResolver.<.ctor>b__c(IComponentContext c, IEnumerable`1 args) +220    Autofac.Builder.<>c__DisplayClass1`1.b__0(IComponentContext c, IEnumerable`1 p) +15    Autofac.Core.Activators.Delegate.DelegateActivator.ActivateInstance(IComponentContext context, IEnumerable`1 parameters) +30    Autofac.Core.Resolving.InstanceLookup.Activate(IEnumerable`1 parameters) +89    Autofac.Core.Resolving.InstanceLookup.Execute() +181    Autofac.Core.Resolving.ResolveOperation.GetOrCreateInstance(ISharingLifetimeScope currentOperationScope, IComponentRegistration registration, IEnumerable`1 parameters) +194    Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +57  [DependencyResolutionException: An exception was thrown while executing a resolve operation. See the InnerException for details.]    Autofac.Core.Resolving.ResolveOperation.Execute(IComponentRegistration registration, IEnumerable`1 parameters) +288    Autofac.Core.Lifetime.LifetimeScope.ResolveComponent(IComponentRegistration registration, IEnumerable`1 parameters) +207    Autofac.ResolutionExtensions.ResolveService(IComponentContext context, Service service, IEnumerable`1 parameters) +168    Autofac.ResolutionExtensions.Resolve(IComponentContext context, IEnumerable`1 parameters) +117    OpsConsole.DependencyResolution.DefaultContextFactory`2.Create(TContext context) +290    OpsConsole.Core.Services.EnvironmentService.LoadAll() +455    OpsConsole.DependencyResolution.ServiceResolver.MigrateEnvironmentXml() +263  [HttpException (0x80004005): An exception was thrown while executing a resolve operation. See the InnerException for details.]    System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +12951429    System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +175    System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +304    System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +404    System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475  [HttpException (0x80004005): An exception was thrown while executing a resolve operation. See the InnerException for details.]    System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968436    System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159    System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12808141


    Resolution

    ConnectionStrings.config in C:\Program Files\FrontRange Solutions\HEAT\OpsConsole contains the database connection information which is taken from the System Configuration Wizard. A review of this found the password was a long string of special characters including semi colon. Semi colon is treated as a delineate of one field connection string property from another. Adjust the password without a semicolon.