我目前正在与我的合作伙伴一起工作ASP.NET MVC项目,我们正在使用TFS。我们都使用VS 2013,但后来我重新安装了操作系统并安装了VS 2015社区。当我从TFS下载项目几乎一切正常时,我可以运行该网站,但是当网站需要访问数据库(登录时),发生异常。 SQL server express 2014已经安装在电脑上,所以问题可能出在不同版本的数据库和SQL Server或连接字符串中。但我该如何解决这个问题?不同版本的数据库和SQL Server;找不到SQL Server
第二个屏幕说:When creating connection to server an error has occured. Server was not found or was not accessible. Check if the name of an instance is correct and if the server is configured to allow remote access.
编辑
在web配置连接字符串看起来是这样的:<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-Dobrokarty-20141117025208.mdf;Initial Catalog=aspnet-Dobrokarty-20141117025208;Integrated Security=True" providerName="System.Data.SqlClient" />
哪个连接字符串您使用? – Andomar
我添加了连接字符串。请参阅编辑。 – jstorm31