LocalSqlServer连接问题

by benben 4/7/2008 6:56:00 PM

出现问题提示:

System.Configuration.ConfigurationErrorsException: The connection name 'LocalSqlServer' was not found in the applications configuration or the connection string is empty. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 121)

解决方案:

1.添加如下代码到web.config

    <connectionStrings>
    <remove name="LocalSqlServer" />
    <add name="LocalSqlServer" connectionString="server=.;uid=user;pwd=pwd;Trusted_Connection=yes;database=Enterprise" />
    </connectionStrings>

2.根本解决办法,把原来的.net 框架卸载了,重新安装一次。搞定!
(必填)
(必填,不会被公开)
谢谢留言,如果留言不成功请联系ben#119797.com

Powered by BlogEngine.NET 苏ICP备08023017号


Recent comments

Author