到底什么问题啊 今天开机后 重启iis也还是 提示这个错误了 哪里设置有问题吗

解决方案 »

  1.   

    未将对象引用设置到对象的实例。 
    说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。源错误: 
    行 138: string result="<table width=100% height=200 border=0 cellspacing=0 cellpadding=0><tr><td width=100%><marquee onmouseover='this.stop()' onmouseout='this.start()' scrollDelay=200 direction='up'><table  border=0 cellspacing=0 cellpadding=0>";
    行 139: con=new SqlConnection(strCon);
    行 140: con.Open();
    行 141:
    行 142: com=new SqlCommand(sql);
     
      

  2.   

    报错 行 140: con.Open(); 
      

  3.   

    在控制面板--服务---把IIS的服务启动!
      

  4.   

    会不会是用户权限的问题?那个wwwroot里需要对哪些用户提供怎么样的权限,比如everyone,iis,internet帐户...