首页上一页 1 下一页尾页 4 条记录 1/1页
遇到如下问题
发表在C#图书答疑
2010-04-11
是否精华
是
否
版块置顶:
是
否
目录清单 -- /ExamOnLine/
--------------------------------------------------------------------------------
Sunday, April 11, 2010 12:25 AM <dir> admin
Sunday, April 11, 2010 01:42 AM <dir> App_Code
Sunday, April 11, 2010 12:25 AM <dir> App_Data
Sunday, April 11, 2010 12:25 AM <dir> Image
Sunday, April 11, 2010 12:25 AM <dir> student
Sunday, April 11, 2010 12:25 AM <dir> teacher
Sunday, April 11, 2010 12:25 AM <dir> UserControls
Sunday, December 02, 2007 09:23 AM 439 Image.aspx
Sunday, December 02, 2007 09:24 AM 1,800 Image.aspx.cs
Tuesday, December 04, 2007 09:44 AM 4,878 Login.aspx
Sunday, December 02, 2007 09:47 AM 2,452 Login.aspx.cs
Sunday, December 02, 2007 08:38 AM 151 Mystyle.css
Wednesday, December 05, 2007 04:14 PM 1,592 Web.Config
--------------------------------------------------------------------------------
版本信息: ASP.NET Development Server 9.0.0.0
而点击login.aspx后出现登陆页面,输入管理员用户名和密码后,
“/ExamOnLine”应用程序中的服务器错误。
--------------------------------------------------------------------------------
用户 'cy' 登录失败。该用户与可信 SQL Server 连接无关联。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: 用户 'cy' 登录失败。该用户与可信 SQL Server 连接无关联。
源错误:
行 81: {
行 82: SqlConnection conn = DBCon();
行 83: conn.Open();
行 84: SqlCommand cmd = new SqlCommand("select count(*) from tb_Admin where AdminNum='" + adminNum + "' and adminPwd='" + adminPwd + "'", conn);
行 85: int i = Convert.ToInt32(cmd.ExecuteScalar());
源文件: c:\Inetpub\wwwroot\ExamOnLine\App_Code\BaseClass.cs 行: 83
???????????????????????????????????????????
--------------------------------------------------------------------------------
Sunday, April 11, 2010 12:25 AM <dir> admin
Sunday, April 11, 2010 01:42 AM <dir> App_Code
Sunday, April 11, 2010 12:25 AM <dir> App_Data
Sunday, April 11, 2010 12:25 AM <dir> Image
Sunday, April 11, 2010 12:25 AM <dir> student
Sunday, April 11, 2010 12:25 AM <dir> teacher
Sunday, April 11, 2010 12:25 AM <dir> UserControls
Sunday, December 02, 2007 09:23 AM 439 Image.aspx
Sunday, December 02, 2007 09:24 AM 1,800 Image.aspx.cs
Tuesday, December 04, 2007 09:44 AM 4,878 Login.aspx
Sunday, December 02, 2007 09:47 AM 2,452 Login.aspx.cs
Sunday, December 02, 2007 08:38 AM 151 Mystyle.css
Wednesday, December 05, 2007 04:14 PM 1,592 Web.Config
--------------------------------------------------------------------------------
版本信息: ASP.NET Development Server 9.0.0.0
而点击login.aspx后出现登陆页面,输入管理员用户名和密码后,
“/ExamOnLine”应用程序中的服务器错误。
--------------------------------------------------------------------------------
用户 'cy' 登录失败。该用户与可信 SQL Server 连接无关联。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Data.SqlClient.SqlException: 用户 'cy' 登录失败。该用户与可信 SQL Server 连接无关联。
源错误:
行 81: {
行 82: SqlConnection conn = DBCon();
行 83: conn.Open();
行 84: SqlCommand cmd = new SqlCommand("select count(*) from tb_Admin where AdminNum='" + adminNum + "' and adminPwd='" + adminPwd + "'", conn);
行 85: int i = Convert.ToInt32(cmd.ExecuteScalar());
源文件: c:\Inetpub\wwwroot\ExamOnLine\App_Code\BaseClass.cs 行: 83
???????????????????????????????????????????