职位关键字 工作地点
工作名称 公司名称 校园招聘
中国最好的工作搜索引擎!
  回复留言  
  .NET怎么在IIS中打开啊
作者: qwer20325  01-01 08:00   回复  
 我用.NET2005做了一个网上交易网站。在.NET2005中调试运行的很好。但是在IIS上不能显示。错误提示是:





无法打开登录 'shop' 中请求的数据库。登录失败。

用户 'FCDFB9838954405\ASPNET' 登录失败。

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.



Exception Details: System.Data.SqlClient.SqlException: 无法打开登录 'shop' 中请求的数据库。登录失败。

用户 'FCDFB9838954405\ASPNET' 登录失败。



Source Error:





Line 23:

Line 24: conn = new SqlConnection("Data Source=localhost;Initial Catalog=shop;Integrated Security=True");

Line 25: conn.Open();

Line 26:

Line 27: SqlCommand cmd = conn.CreateCommand();



请问大哥们这个问题怎么解决啊。谢谢各位!

  回复:.NET怎么在IIS中打开啊
作者: 51aspx_com  01-01 08:00   回复  
 Data Source=localhost;Initial Catalog=shop;Integrated Security=True



改成



Data Source=(local);Initial Catalog=51aspx;user id=sa;password=sasasa;

标 题:
内 容:
用户名:
 游客
 
 
Copyright©2005-2007, 版权所有 WWW.JOBMET.COM
ICP证:京ICP备06019556号