新手,没有这方面的经验,请大侠们指教。多谢。网页访问的时候报如下错误:Server Error in '/' Application.
--------------------------------------------------------------------------------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: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

解决方案 »

  1.   

    未将对象引用到对象的实例. 
    上代码。肯定那里是个null
      

  2.   

    看看是不是用了第三方的dll,部署的时候给忽略了
    检查fw的版本
      

  3.   

    junzhang4008,是用的第三方dll 。那怎么改呢?
      

  4.   

    把dll考到bin下 试试,如果是vs2003 ,你把引用的属性,有个“复制到本地”改成true
      

  5.   

    这个页面代码贴上来,设置断点一步步看看,是不是有null变量
      

  6.   

    回复hrabeyond:网站在自己机子上运行没问题。在ftp到空间就出现了那错误。
      

  7.   

    回复junzhang4008:我今天没带笔记本。公司的电脑没装.NET环境。调试不了。。
      

  8.   


    把你本地的bin下的第三方dll复制到服务器的对应位置
      

  9.   

    未将对象引用到对象的实例有空值,调试下看哪个地方为null了
      

  10.   

    恩。谢谢IndexRegisterLogin。晚上回去调试。现在看不到。
      

  11.   

    hrabeyond 我把本地运行正确的dll覆盖了。 本地一切正常。远程服务器还是这边报错。
      

  12.   

    谢谢IndexRegisterLogin ,我本地运行没有任何错误。是空间提供商那边的问题吗?