As the message already says, verify that the SQL Server is running. See https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/connect/resolve-connectivity-errors-overview
Got this error out of the blue Microsoft.Data.SqlClient.SqlException (0x80131904):
Sharan km
0
Reputation points
Microsoft.Data.SqlClient.SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL
SQL Server | Other
14,500 questions
2 answers
Sort by: Most helpful
-
-
Sharan km 0 Reputation points
2024-02-12T07:23:08.93+00:00 connectionstrings :{ //"CasePortal": "Server=database-sjhfishf.ctvuprpbyvso.us-east- "CasePortal": "Server=mydatabase-hscksckn.ctvuprpbyvso.us-east- }
Thanks for help. just by adding mydatabase instead of database the issue was resolved