重新安装 .net 框架 v 1.1版本就可以了

解决方案 »

  1.   

    升级IIS看看。
    aspnet_regiis.exe
      

  2.   

    我把.net删掉重装了一遍。项目可以打开了。但是不能运行。错误报告:
    Error while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request.
    Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug. Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.
      

  3.   

    你没有为你的应用程序设置虚拟目录吧!在IIS里面设置一下即可。
      

  4.   

    右键单击你的IIS管理器中的你的网站,属性,在应用程序设置中,点一下右边的创建。
      

  5.   

    我有一次,把系统重装了。我的。net装在D盘。原来安装的文件没有删。就这么安装了也有同样的问题。后来没有办法。我把原来安装的文件都删除了。重新装了才好了。
      

  6.   

    我照tonybaobao(Tony宝宝) 说的做了。程序跑的时候不报那个错了,不过页面还是无法显示。唉,我的程序以前跑得好好的,我可什么都没改过呀!页面报错:
    Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.Source Error: 
    Line 92:  bool errors = false;
    Line 93:  string msEr = "";
    Line 94:  string userName = (Request.ServerVariables.Get("Logon_user").Split(new char[] {'\\'},2))[1];
    Line 95: 
    Line 96: 
     Source File: c:\inetpub\wwwroot\hold_online\app.aspx.cs    Line: 94 Stack Trace: 
    [IndexOutOfRangeException: Index was outside the bounds of the array.]
       hold_online.app.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\hold_online\app.aspx.cs:94
       System.Web.UI.Control.OnLoad(EventArgs e)
       System.Web.UI.Control.LoadRecursive()
       System.Web.UI.Page.ProcessRequestMain()
      

  7.   

    先卸载iis,再卸载.net。然后安装iis,最后安装.net。我也遇到过类似问题,是这样解决的。注意安装顺序。