<?xml version="1.0"?>
multipleSiteBindingsEnabled="true" />
binding="webHttpBinding" contract="Service" />
**<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0">
<assemblies>
<add assembly="WindowsFormsIntegration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/></assemblies></compilation>
<httpRuntime requestValidationMode="2.0"/>
<pages>
<controls>
<add tagPrefix="uc" tagName="USid" src="~/ADCtorl/Sidebar.ascx"/>
</controls>
</pages>
</system.web>
<connectionStrings>
<add name="mycon" connectionString="Data Source=琛哥;database=Blog;uid=sa;pwd=123" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="ServiceAspNetAjaxBehavior">
<enableWebScript />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true"
multipleSiteBindingsEnabled="true" />
<services>
<service name="Service">
<endpoint address="" behaviorConfiguration="ServiceAspNetAjaxBehavior"
binding="webHttpBinding" contract="Service" />
</service>
</services>
</system.serviceModel>
</configuration>**
在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL Network Interfaces, error: 26 - 定位指定的服务器/实例时出错)