Fatal NServiceBus exception when starting endpoint, cannot open database


We just made some changes to our project and deployed it. We have 7 endpoint databases in our SQL Server database for NServiceBus. We recently added 2 more. One of the two services using one of the two new endpoints fails to start. When looking at our log file we see the following error:

FATAL NServiceBus.GenericHost [(null)] - Exception when starting endpoint. System.Data.SqlClient.SqlException (0x80131904): Cannot open database "A_NSBEP_WebEventProcessor" requested by the login. The login failed. Login failed for user 'xxxx'

The connection string is

'connection.connection_string'='Data Source=localhost\DevSQLServer;Initial Catalog=A_NSBEP_WebEventProcessor;Integrated Security=true;Enlist=true'

All of the connection strings are configured in OctopusDeploy. They are all identical except obviously for the database name. All of the other services start and login to their respective endpoint with no problem. I even went through the process of creating a .udl file, connecting to the database and using that slightly different connection string. Still without success.

Any thoughts?

asked on Stack Overflow Apr 29, 2020 by CheeseHead • edited Apr 30, 2020 by yacc

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0