Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

Close
Important Announcement: WELCOME to the new Schneider Electric Community! Community is now no longer part of Exchange, and is now rebranded under se.com. If you have any bookmarks and links saved, we request you to update them to ensure that you continue accessing our community from this new location. For any issues that you might encounter as part of this change, please reach out to SchneiderCommunity.Support@se.com, and the team will help to get your issues resolved.
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
82493members
350068posts

Smartconnector : Error 1064 An exception occured in the service when handling the control request

SmartConnector Forum

Discussion of SmartConnector applications for integration of various other building management systems (BMS) into EcoStruxure Building Operation

Solved
lhinsky
Ensign
Ensign
0 Likes
4
844

Smartconnector : Error 1064 An exception occured in the service when handling the control request

When starting the smartconnector in task manager, I got the error: Error 1064 An exception occured in the service when handling the control request.

 

 

can you help me to find the solution
Capture.PNG

Tags (1)

Accepted Solutions
ardak
Commander Commander
Commander
0 Likes
0
810

Re: Smartconnector : Error 1064 An exception occured in the service when handling the control request

Hello,

 

It seems like  you have installed SmartConnector with the wrong database credentials.

 

Please reinstall and make sure they are correct and that the right type of database is selected( localdb/SQL Server/SQL Server Express)

 

BR

Armend

See Answer In Context

Tags (1)
4 Replies 4
ardak
Commander Commander
Commander
0 Likes
3
827

Re: Smartconnector : Error 1064 An exception occured in the service when handling the control request

Hello,

 

Please take a look at the SmartConnector log and post the contents, it's located in:

 

%ProgramData%\SmartConnector\Logs

(press Ctrl + R and paste)

 

which most commonly translates to:

 

C:\ProgramData\SmartConnector\Logs

 

BR

Armend

Tags (1)
lhinsky
Ensign
Ensign
0 Likes
2
813

Re: Smartconnector : Error 1064 An exception occured in the service when handling the control request

this is what i have on the SmartConnect log :

 

 

2022-03-31 14:43:04.3330,Trace,Database,<no principal>,Setting Database Execution Strategy to SqlAzureExecutionStrategy.,
2022-03-31 14:44:08.6734,Error,Service,<no principal>,Error while building type Mongoose.Service.LoggerFilterProvider. See the inner exception for details
1.) new LoggerFilterProvider()
2.) Mongoose.Service.LoggerFilterProvider
3.) Instance of SxL.Common.ILoggerFilterProvider (Mongoose.Service.LoggerFilterProvider)
4.) Container.GetInstance(SxL.Common.ILoggerFilterProvider)

Une erreur liée au réseau ou spécifique à l'instance s'est produite lors de l'établissement d'une connexion à SQL Server. Le serveur est introuvable ou n'est pas accessible. Vérifiez que le nom de l'instance est correct et que SQL Server est configuré pour autoriser les connexions distantes. (provider: Named Pipes Provider, error: 40 - Impossible d'ouvrir une connexion à SQL Server)
Le chemin réseau n’a pas été trouvé
à lambda_method(Closure , IBuildSession , IContext )
à StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
à StructureMap.BuildSession.BuildNewInSession(Type pluginType, Instance instance)
à StructureMap.Pipeline.NulloTransientCache.Get(Type pluginType, Instance instance, IBuildSession session)
à StructureMap.BuildSession.ResolveFromLifecycle(Type pluginType, Instance instance)
à StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
à StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
à StructureMap.Container.GetInstance(Type pluginType)
à StructureMap.Container.GetInstance[T]()
à Mongoose.Service.Mongoose.OnStart(String[] args)
,[],
2022-03-31 14:44:08.6873,Info,Service,<no principal>,Exception caught at service level.,
2022-03-31 14:44:08.6873,Error,Service,<no principal>,StructureMap.Building.StructureMapBuildException: Error while building type Mongoose.Service.LoggerFilterProvider. See the inner exception for details
1.) new LoggerFilterProvider()
2.) Mongoose.Service.LoggerFilterProvider
3.) Instance of SxL.Common.ILoggerFilterProvider (Mongoose.Service.LoggerFilterProvider)
4.) Container.GetInstance(SxL.Common.ILoggerFilterProvider)
---> System.Data.SqlClient.SqlException: Une erreur liée au réseau ou spécifique à l'instance s'est produite lors de l'établissement d'une connexion à SQL Server. Le serveur est introuvable ou n'est pas accessible. Vérifiez que le nom de l'instance est correct et que SQL Server est configuré pour autoriser les connexions distantes. (provider: Named Pipes Provider, error: 40 - Impossible d'ouvrir une connexion à SQL Server) ---> System.ComponentModel.Win32Exception: Le chemin réseau n’a pas été trouvé
--- Fin de la trace de la pile d'exception interne ---
à System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling, SqlAuthenticationProviderManager sqlAuthProviderManager)
à System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
à System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
à System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
à System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
à System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
à System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
à System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
à System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
à System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
à System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
à System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
à System.Data.SqlClient.SqlConnection.Open()
à System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.<>c.<Open>b__13_0(DbConnection t, DbConnectionInterceptionContext c)
à System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
à System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.Open(DbConnection connection, DbInterceptionContext interceptionContext)
à System.Data.Entity.SqlServer.SqlProviderServices.<>c__DisplayClass60_0.<UsingConnection>b__0()
à System.Data.Entity.Infrastructure.DbExecutionStrategy.<>c__DisplayClass17_0.<Execute>b__0()
à System.Data.Entity.Infrastructure.DbExecutionStrategy.Execute[TResult](Func`1 operation)
à System.Data.Entity.Infrastructure.DbExecutionStrategy.Execute(Action operation)
à System.Data.Entity.SqlServer.SqlProviderServices.UsingConnection(DbConnection sqlConnection, Action`1 act)
à System.Data.Entity.SqlServer.SqlProviderServices.UsingMasterConnection(DbConnection sqlConnection, Action`1 act)
à System.Data.Entity.SqlServer.SqlProviderServices.CreateDatabaseFromScript(Nullable`1 commandTimeout, DbConnection sqlConnection, String createDatabaseScript)
à System.Data.Entity.SqlServer.SqlProviderServices.DbCreateDatabase(DbConnection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollection)
à System.Data.Entity.Core.Common.DbProviderServices.CreateDatabase(DbConnection connection, Nullable`1 commandTimeout, StoreItemCollection storeItemCollection)
à System.Data.Entity.Core.Objects.ObjectContext.CreateDatabase()
à System.Data.Entity.Migrations.Utilities.DatabaseCreator.Create(DbConnection connection)
à System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
à System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
à System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(InternalContext internalContext, Func`3 createMigrator, ObjectContext objectContext)
à System.Data.Entity.Internal.InternalContext.CreateDatabase(ObjectContext objectContext, DatabaseExistenceState existenceState)
à System.Data.Entity.Database.Create(DatabaseExistenceState existenceState)
à System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
à System.Data.Entity.Internal.InternalContext.<>c__DisplayClass66_0`1.<CreateInitializationAction>b__0()
à System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
à System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
à System.Data.Entity.Internal.LazyInternalContext.<>c.<InitializeDatabase>b__58_0(InternalContext c)
à System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
à System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
à System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
à System.Data.Entity.Internal.InternalContext.Initialize()
à System.Data.Entity.Internal.InternalContext.ForceOSpaceLoadingForKnownEntityTypes()
à System.Data.Entity.DbContext.System.Data.Entity.Infrastructure.IObjectContextAdapter.get_ObjectContext()
à Mongoose.Service.Data.MongooseDbContext.WireUpEncryption()
à Mongoose.Service.Data.MongooseDbContext..ctor(Boolean automaticDecryption)
à Mongoose.Service.LoggerFilterProvider.Refresh()
à lambda_method(Closure , IBuildSession , IContext )
--- Fin de la trace de la pile d'exception interne ---
à lambda_method(Closure , IBuildSession , IContext )
à StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context)
à StructureMap.BuildSession.BuildNewInSession(Type pluginType, Instance instance)
à StructureMap.Pipeline.NulloTransientCache.Get(Type pluginType, Instance instance, IBuildSession session)
à StructureMap.BuildSession.ResolveFromLifecycle(Type pluginType, Instance instance)
à StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle)
à StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph)
à StructureMap.Container.GetInstance(Type pluginType)
à StructureMap.Container.GetInstance[T]()
à Mongoose.Service.Mongoose.OnStart(String[] args)
à System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---
à System.ServiceProcess.ServiceBase.Run(ServiceBase[] services)
à Mongoose.Service.Program.Main(),

Tags (1)
ardak
Commander Commander
Commander
0 Likes
0
811

Re: Smartconnector : Error 1064 An exception occured in the service when handling the control request

Hello,

 

It seems like  you have installed SmartConnector with the wrong database credentials.

 

Please reinstall and make sure they are correct and that the right type of database is selected( localdb/SQL Server/SQL Server Express)

 

BR

Armend

Tags (1)
FredrikAlmgren
Ensign Ensign
Ensign
0 Likes
0
797

Re: Smartconnector : Error 1064 An exception occured in the service when handling the control request

I got a similar error recently due to a firewall that had changed on my computer. Make sure there's no rule blocking the connection to your SQL server.

Tags (1)