当打开服务器端的登录页面时,可以正常显示,但是当输入UserID 和Passwd按确认后
就会出现下面的错误,但在本地执行又是好的。我应该怎么解决这个问题呀,请高手帮帮忙!Server Error in '/VendorInfo' Application.
--------------------------------------------------------------------------------列名 'UserId' 无效。
列名 'DiCode' 无效。
列名 'Dept_Code' 无效。
列名 'UserId' 无效。 
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: 列名 'UserId' 无效。
列名 'DiCode' 无效。
列名 'Dept_Code' 无效。
列名 'UserId' 无效。Source Error: 
Line 39:  if (Page.IsValid) {
Line 40:  string userId = txtUserId.Text; 
Line 41:  bool success = Account.SignIn(txtUserId.Text,txtPassword.Text);
Line 42:  if (success) 
Line 43:  {
 Source File: d:\vendorinfo\Web\default.aspx.cs    Line: 41 Stack Trace: 
[SqlException (0x80131904): 列名 'UserId' 无效。
列名 'DiCode' 无效。
列名 'Dept_Code' 无效。
列名 'UserId' 无效。]
   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857370
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734982
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
   System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
   System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
   System.Data.SqlClient.SqlDataReader.get_MetaData() +62
   System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
   System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
   System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
   System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +62
   VendorInfo.Components.Database.ExecuteReader(String connString, CommandType cmdType, String cmdText, SqlParameter[] cmdParms) in D:\Program Files\VendorInfo\VendorInfo\Components\Database.cs:65
   VendorInfo.Components.Account.SignIn(String userId, String password) in D:\Program Files\VendorInfo\VendorInfo\Components\Account.cs:61
   VendorInfo.Web.Migrated_SignIn.SubmitClicked(Object sender, ImageClickEventArgs e) in d:\vendorinfo\Web\default.aspx.cs:41
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +105
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +115
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42