日期:2014-05-18  浏览次数:20842 次

VS2005 在本地执行没有任何错误信息,当发布在服务器端有下面问题?
当打开服务器端的登录页面时,可以正常显示,但是当输入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.SqlComman