我找到一个管理系统数据库连接了sql server2005数据库,vs2005中也没什么错,可就是不能正常运行,大概有哪些原因啊,实现找不出来,帮帮忙了哦
数据库web.config如下
<configuration>
<connectionStrings>
<add name="MyPersonnelDBConnectionString" connectionString="Data Source=PC-200909131209\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyPersonnelDB.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
<add name="MyASPNETDBConnectionString" connectionString="Data Source=PC-200909131209\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.net>
<!--<mailSettings>
<smtp from="luobinasp@sina.com">
<network host="smtp.sina.com" password="aspnet20" userName="luobinasp"/>
</smtp>
</mailSettings>-->
</system.net>
<system.web>
<authentication mode="Forms"/>
<customErrors defaultRedirect="~/SystemManage/AllErrorHelp.aspx" mode="On"/>
<compilation debug="true"/></system.web>
</configuration>