1: Unable to connect to LOCALDB database
Solution: Download the LOCALDB installation software
2: You are prompted to run the program when the database already exists, please change the connection name
Solution: Because the same connection string was used in two different solutions to generate the same database, when another solution created the database, the result of the program was not created, but the database actually existed, just not the same solution, so change the database name of the connection string.
3: An error occurred while opening the generated database file. mdf in the solution.
Could not load file or assembly "MICROSOFT.SQLSERVER.MANAGEMENT.SDK.SFC"
Workaround:
Go to Microsoft Official website: http://www.microsoft.com/en-us/download/details.aspx?id=29065
Download the following two components:
Microsoft®system CLR Types for Microsoft®sql server®2012
Microsoft®sql server®2012 Shared Management Objects
Please select the applicable version of your platform.
After the download is complete, install it on the Web server .
For the convenience of everyone, I have downloaded and shared the following (for x64 platform):
Http://pan.baidu.com/s/1hqveTi0
Http://pan.baidu.com/s/1nP7nK
Problems encountered in MVC learning