SmartConnector Forum
Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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(),
Link copied. Please paste this link to share this article on your social media post.
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
Link copied. Please paste this link to share this article on your social media post.
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.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.