MVC 4 Connectionstring to SQL Server 2012

后端 未结 5 1362
慢半拍i
慢半拍i 2020-12-29 23:35

I\'ve created a brand new MVC 4 application in C# using Visual Studio 2012. I\'m trying to connect to a brand new SQL Server 2012 (Standard) instance but I can\'t seem to ge

5条回答
  •  情歌与酒
    2020-12-29 23:56

    While lhan16's answer helped me, it would have been simpler to say that all you needed to add was a DefaultConnection. I started from the same place, and the database connection that the MVC uses doesn't work for the security framework. The authors of the framework never imagined that you would not use the DefaultConnection.

提交回复
热议问题