Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
ConnectionStringNotFoundException in windows service
I have a windows service that is using Business Objects that where compiled in another solution. I’ve followed the Help file in the setup of the windows service and added a reference to the dll that contains the business objects. The service starts then stops with an error that it cant find the connection string.
No matter what I’ve tried so far I can’t get the service to find the connection string.
The app.config is in the project and I’ve even incouded it in the deployment package.
Event Type: Error
Event Source: HUTRemitImportPump
Event Category: None
Event ID: 0
Date: 07/30/2007
Time: 9:57:44 AM
User: N/A
Computer: D7N92FC1
Description:
Service cannot be started. OakLeaf.MM.Main.Exceptions.mmConnectionStringNotFoundException: A connection string could not be found in the application configuration file for database key 'HutLockbox'
at OakLeaf.MM.Main.Managers.mmDatabaseManager.GetConnectionString(String databaseKey)
at NYSTAX.APPDEV.IMAGING.HUTLockbox.HUTRemitImportPump.HutRemitImportService.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)
Thanks
Brian G
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement