Bonjour à tous,

j'ai un Service Windows que j'ai développé en C# qui est censé se lancé au démarrage, il y a cepedant un problème dans les dépendances. Afin de démarrer, il doit pouvoir accéder à SQL Server.

J'ai rajouter

MSSQLSERVER
dans ServicesDependedOn mais le service ne se lance quand même pas, je suis obligé de le lancer manuellement.

Dans le gestionnaire d'évènement :

Le service ne peut pas être démarré. System.Data.SqlClient.SqlException (0x80131904): Cannot open database "Desktop.Log" requested by the login. The login failed.
Login failed for user 'NetWorkUser'.
à System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject)
à System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
à System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
à System.Data.SqlClient.SqlConnection.Open()
à System.Diagnostics.Log.Write(String Application, String File, String Method, String Username, String IpAddress, String Text, LogType Type)
à Service.Cinema.ServiceCinema.OnStart(String[] Args)
à System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Si quelqu'un sait comment résoudre cela...

Merci d'avance.

NeoKript