config中localdb的问题

config中localdb的问题

本文介绍了web.config中localdb的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< 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的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:31