启用自动创建提供程序数据库

时间:2013-07-04 08:49:34

标签: asp.net sql-server-2012 remote-connection

我尝试使用visual 2012,sql2012 Express通过asp构建一个简单的网站,我想添加管理网站工具,但我面对这个错误:

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

我是asp的初学者,任何帮助都将受到赞赏。

这是网络配置:

<?xml version="1.0"?>
<configuration>
  <connectionStrings>
   <add name="project1-dbConnectionString1" connectionString="Data Source=ASUS;Initial     Catalog=project1-db;Integrated Security=True"
   providerName="System.Data.SqlClient" />
 </connectionStrings>
 <appSettings>
     <add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
   </appSettings>
 <system.web>
    <compilation debug="true" targetFramework="4.5"/>
<httpRuntime targetFramework="4.5"/>
   <authentication mode="Forms"></authentication>
 </system.web>
</configuration>

你知道我认为提供者配置存在一些问题。我使用aspnet_regsql来创建和配置数据库和额外的东西,但是没有关于membership配置中的成员角色和配置文件支持的配置它应该没有不是吗?

你觉得怎么样?

0 个答案:

没有答案
相关问题