SSPI 的登录问题,望高手指教,非常赶的,,!!!!!!!!!!!

21wing 2005-11-08 01:27:23
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: Cannot generate SSPI context.

Line 8: SqlConnection Connection=new SqlConnection("server='(local)'; trusted_connection=true; database='sdhacc'");
Line 9: SqlCommand Command=new SqlCommand("select * from T_EXTUSER order by AddTime desc",Connection);
Line 10: Connection.Open();
Line 11: SqlDataReader Reader=Command.ExecuteReader();
Line 12: %>


[SqlException: Cannot generate SSPI context.]
System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +474
System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
System.Data.SqlClient.SqlConnection.Open() +384
ASP.extuseru_l_ascx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in D:\jdxh\web\maingb\extuseru_l.ascx:10
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72
System.Web.UI.Control.Render(HtmlTextWriter writer) +7
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
System.Web.UI.Page.ProcessRequestMain() +1929


现在不知怎样解决,,因为不太了角ASP.NET,,所以请教各位大侠
...全文
100 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
21wing 2005-11-08
  • 打赏
  • 举报
回复
可以讲得详细点吗?
danis_cn 2005-11-08
  • 打赏
  • 举报
回复
引入命名空间了吗〉、?
using ystem.Data.SqlClient;
dh20156 2005-11-08
  • 打赏
  • 举报
回复
到.net区去问问。
21wing 2005-11-08
  • 打赏
  • 举报
回复
难道无人知道,或者说无遇到过,,,,,,,各位大侠,,小生在线等待
21wing 2005-11-08
  • 打赏
  • 举报
回复
系统提示第10项出错;Line 10: Connection.Open();

28,406

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧