Database not available when I create publish version
Hi!
Im trying to publish my website to our production server, but when I publish the site the connection string no longer works.
Ive tested locally to use the same connection string to my local SQL server as I use in development but thats not working.
And when I publish to server and change the connection string in appsettings.json thats not working either.
Part of the error is:
"Configured database is reporting as not being available. (provider: SNI_PN11, error: 25 - Connection string is not valid)"
Database not available when I create publish version
Hi! Im trying to publish my website to our production server, but when I publish the site the connection string no longer works. Ive tested locally to use the same connection string to my local SQL server as I use in development but thats not working.
And when I publish to server and change the connection string in appsettings.json thats not working either.
Part of the error is: "Configured database is reporting as not being available. (provider: SNI_PN11, error: 25 - Connection string is not valid)"
The connection string looks like this:
"ConnectionStrings": { "umbracoDbDSN": "Server=\SQLEXPRESS;Database=xxx;user id=xxx;password=xxx", "umbracoDbDSN_ProviderName": "System.Data.SqlClient" }
Im using v. 11.
Hi,
Try changing '\SQLEXPRESS' to '.\SQLEXPRESS'
Problem solved! It had to be 'localhost\SQLEXPRESS'... strange!
Ah, needed the \ escaping, .\ would work too
is working on a reply...