Created :
Written by Support InfoBridge
Overview:
After an upgrade of the maillogger, the maillogger service fails.
If you check the logfile file you might see this:
2013-10-21T18:08:51 T00006532 INFO : Mail log request service loaded!
2013-10-21T18:08:51 T00006532 INFO : [LICENSE INFO]: License granted
2013-10-21T18:08:52 T00006532 WARNING : FATAL ERROR DURING INITIALIZATION MAIL LOGGING, Tearing down process
2013-10-21T18:08:52 T00006532 WARNING VismaBusinessExchangeSynchronizerMailLogService..ctor: Exception thrown: System.InvalidOperationException message: Could not find default endpoint element that references contract 'Visma.BusinessServices.Generic.IGenericService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element. trace:
at System.ServiceModel.Description.ConfigLoader.LoadChannelBehaviors(ServiceEndpoint serviceEndpoint, String configurationName)
at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName, Configuration configuration)
at System.ServiceModel.ChannelFactory.ApplyConfiguration(String configurationName)
at System.ServiceModel.ChannelFactory.InitializeEndpoint(String configurationName, EndpointAddress address)
at System.ServiceModel.ChannelFactory`1..ctor(String endpointConfigurationName, EndpointAddress remoteAddress)
at System.ServiceModel.EndpointTrait`1.CreateSimplexFactory()
at System.ServiceModel.EndpointTrait`1.CreateChannelFactory()
at System.ServiceModel.ClientBase`1.CreateChannelFactoryRef(EndpointTrait`1 endpointTrait)
at System.ServiceModel.ClientBase`1.InitializeChannelFactoryRef()
at System.ServiceModel.ClientBase`1..ctor()
at Visma.BusinessServices.Generic.GenericServiceClient..ctor()
at Visma.Business.DAL.Client.ExtendedGenericServiceClient..ctor()
at Visma.Business.DAL.VismaBusinessAccess.GetClient(String siteId, String userName, String password, Int32 customerId, Boolean useImpersonation, Boolean useSolId)
at Visma.Business.MailLog.Connection.VismaBusinessClientConfiguration.connect()
at Visma.Business.MailLog.Connection.VismaBusinessClientConfiguration..ctor(String firmName, String siteId, String username, String password, Int32 customerId, Boolean useImpersonation, String mailLogPath, Int32 orgFieldFirst, Int32 orgFieldSecond, Int32 orgFieldThird, Boolean useSolId, Boolean securityRegisteredAssociates)
at Visma.Business.MailLog.Service.Business.VismaBusinessExchangeSynchronizerMailLogService.connectToVismaBusiness()
at Visma.Business.MailLog.Service.Business.VismaBusinessExchangeSynchronizerMailLogService..ctor()
How to:
If you see this, then it might be that the installation did not overwrite certain config files.
To resolve this, please follow these steps:
- Make a copy of the Mail Logger installation folder
- Uninstall the existing Mail Logger
- Check if the Mail Logger installation folder still is there, if you see it delete it
- Install the new Mail Logger
Note: Only remove the installation folder, we need to keep all the config files in the user folder.