把你出错的代码贴上来阿,这样我们怎么能给你解决阿

解决方案 »

  1.   

    Object reference not set to an instance of an object. 
    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.NullReferenceException: Object reference not set to an instance of an object.Source Error: 
    Line 11:         'Dim dbpwd As Byte()
    Line 12:         Dim dbpwd As Integer
    Line 13:         If googleGetUserpwd(txloginname.Text, dbpwd) Then
    Line 14:             If txpwd.Text <> dbpwd Then
    Line 15:                 err_mess.Text = "密码错误"
     Source File: E:\google-search\login.aspx.vb    Line: 13 Stack Trace: 
    [NullReferenceException: Object reference not set to an instance of an object.]
       adminuser.googleGetUserpwd(String username, Int32& dbpwd) +60
       Promanger.btlogin_Click(Object sender, EventArgs e) in E:\google-search\login.aspx.vb:13
       System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
       System.Web.UI.WebControls.Button.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
     
      

  2.   

    晕,这样也看不出来啊,这样,你在第13行设一个端点,看程序执行到哪会弹出这个错误