Tuesday, February 13, 2018

Can't Connect MDF With Connection String

Pretty sure something is wrong.

{ "ConnectionString": { "DefaultConnection": "Server=(localdb)\\mssqllocaldb;AttachDbFilename=|DataDirectory|\\aspnet-ContentManagementSystemMVC6-3E0F11DB-33F2-4837-A443-AD7E740B4B8C.mdf;Database=aspnet-TestWebApp;Trusted_Connection=True;MultipleActiveResultSets=true" }, "Logging": { "IncludeScopes": false, "LogLevel": { "Default": "Warning" } } } 

The MDF is here:

https://puu.sh/zn9JE/3ac92282d5.png

Keeps returning a "Value cannot be null" error here:

https://puu.sh/zn9KS/c235ab052b.png

Anyone know why? Uh, I'm stumped. It's probably a really stupid thing when listing the file path.

Thanks.

Can't Connect MDF With Connection String Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team