C# (提供程序:SQL网络接口,错误:26-定位指定的服务器/实例时出错)

C# (提供程序:SQL网络接口,错误:26-定位指定的服务器/实例时出错),c#,asp.net,sql,C#,Asp.net,Sql,正在尝试访问asp.net配置并获取此“提供程序:SQL网络接口,错误:26-定位指定的服务器/实例时出错” 已经尝试过以下解决方案: ?? 提供程序+管理+错误+of+asp+net+配置+in+asp+net 更新:我查看了SQL Server配置管理器并选择了SQL Server服务,发现远程过程调用失败时出错。[0x800706be]我不知道是什么导致了这一情况,是web.config还是SQL Server本身。据我所知,SQL server文件仍然在一个地方,就是这样,我在VS中创建

正在尝试访问asp.net配置并获取此“提供程序:SQL网络接口,错误:26-定位指定的服务器/实例时出错”

已经尝试过以下解决方案:

?? 提供程序+管理+错误+of+asp+net+配置+in+asp+net

更新:我查看了SQL Server配置管理器并选择了SQL Server服务,发现远程过程调用失败时出错。[0x800706be]我不知道是什么导致了这一情况,是web.config还是SQL Server本身。据我所知,SQL server文件仍然在一个地方,就是这样,我在VS中创建了一个连接字符串,以检查是否一切正常,服务器是否包含了所有需要的表,并且一切正常,因此我在这里没有发现问题

这是我的web.config:

<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<system.web>
<roleManager enabled="true" />

<authentication mode="Forms" />
<compilation debug="true" targetFramework="4.5">
  <assemblies>
    <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
    <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
    <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
  </assemblies>
</compilation>
<httpRuntime targetFramework="4.5" />
</system.web>
<connectionStrings>
<add name="ConnectionStringTest" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\Project.mdf;Integrated Security=True;MultipleActiveResultSets=True;Connect Timeout=30;Application Name=EntityFramework"
  providerName="System.Data.SqlClient" />
<add name="ASPNETDB" connectionString="Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|\ASPNETDB.mdf;Integrated Security=True;MultipleActiveResultSets=True;Connect Timeout=30;Application Name=EntityFramework"
  providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None"/>
</appSettings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" />
  <providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  </providers>
</entityFramework>
</configuration>