问题描述
< connectionstrings>
< add connectionString =Data Source =(local); Initial Catalog = SalesERPDB; Integrated Security = True
name =SalesERPDAL
providerName =System.Data.SqlClient/>
此代码来自在7天内学习MVC项目教程正在收到服务器未找到或无法访问的错误。从我读到的是因为我通过Visual Studio使用的SQL Server实例没有配置为远程访问。有没有办法纠正这个。
我尝试过:
Sql Server配置管理器不起作用。它得到一个错误'无法连接到WMI提供程序。'
<connectionstrings>
<add connectionString="Data Source=(local);Initial Catalog=SalesERPDB;Integrated Security=True"
name="SalesERPDAL"
providerName="System.Data.SqlClient"/>
This code from your "Learn MVC Project in 7 days" tutorial is getting an error that the server is not found or is not accessible. From what I have read it is because the instance of SQL Server I am using through Visual studio is not configured for remote access. Is there a way to correct this.
What I have tried:
Sql Server configuration manager does not work. It gets an error 'cannot connect to WMI provider.'
这篇关于web.config中localdb的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!