asp.net,sql server中的连接字符串问题

时间:2012-07-30 10:44:51

标签: asp.net sql-server connection-string custom-errors

我使用SQL server management studio在我的主机上创建了一个数据库,并上传了我的网站App_Code和App_Data文件夹。我的连接字符串如下:

<connectionStrings> 
    <add name="abc" 
    connectionString="Data Source=serverNane; 
    Initial Catalog=dbname;       
    Integrated Security=false;
    User ID=user;
    Password=pwd" 
    providerName="System.Data.SqlClient" />
</connectionStrings>

在使用我的登录页面时,我收到错误,因为我没有将customErrors添加到我的web.config文件中。添加customErrors和默认错误页面后,由于堆栈跟踪不可见,我无法理解发生了什么错误。我的连接字符串有问题吗?

0 个答案:

没有答案