U4-3055 - Wrong connection string error message is far from helpful: "The system cannot find the file specified"

Created by Pete Duncanson 08 Oct 2013, 10:56:40 Updated by Shannon Deminick 21 Jun 2017, 07:58:15

If you accidental point your connection string at a server that does not exist (typo, moving web.config from server to server, etc.) then Umbraco blows up with a very unhelpful and miss leading error message of:

"The system cannot find the file specified"

It would be fantastic if it could have a few try catches around the call to umbraco.DataLayer.SqlHelpers.SqlServer.SqlServerHelper.ExecuteReader to catch this and instead give a better more helpful message on how you might resolve it.

If fact it might be better to just try to talk to the database in the bootstrapper and then fail nicely if no luck.

Pete

Comments

Shannon Deminick 21 Jun 2017, 07:58:15

Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: