错误消息如下:
---------------------------
Microsoft Development Environment
---------------------------
The class file 'WebForm1.aspx.cs' specified as the codebehind for 'WebForm1.aspx' could not be loaded.  Make sure that the codebehind attribute in the page or control directive properly references an existing code behind file.
---------------------------
OK   
---------------------------打开以前的项目也无法找到.aspx.cs文件(硬盘上有这个文件)还请指点一下

解决方案 »

  1.   

    看看aspx页面有没有这行:
    <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="renda.WebForm1" %>
      

  2.   

    @wangkun9999
    有的,以前的那个web项目所有代码都是正常的,因为拷贝到别人的机器上能打开
    我试过了重装IDE,也没有用
      

  3.   

    可能是虚拟目录问题!
    你仔细检查一下路径 ,以及 aspx文件的<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="renda.WebForm1" %>