OS:WIN2003
IDE:VS.NET2003
在创建一新页面时出现这个错误提示,并且没有.cs文件生成。如果手工建一个cs文件放上去就可以了,不过这样很麻烦。
哪位高手能够解决这个问题?---------------------------
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.
---------------------------
确定   
---------------------------以前是可以用的。
怀疑是IDE和系统的问题,最后重装过还是有这个问题,实在不解。
有另一台机器:OS:win2000,安装后没有这个问题。

解决方案 »

  1.   

    双击你的.aspx页面嘛.没反应吗?
      

  2.   

    检查
    'WebForm1.aspx' 里面的
    Codebehind="WebForm1.aspx.cs" 是否正确
    另外这2个文件是否在同一目录下
      

  3.   

    检查
    'WebForm1.aspx' 里面的
    Codebehind="WebForm1.aspx.cs" 是否正确
    另外这2个文件是否在同一目录下
      

  4.   

    呵呵,Wrong了.重新装一下vs.net吧.
      

  5.   

    Make sure that the codebehind attribute in the page or control directive properly references an existing code behind file.
      

  6.   

    to  codeangel(-- 与人方便,自已方便 --) :
    不行的!
    ----------------------------------------------即使手工建一个cs文件放上去就可以编译,但却没办法进入设计页面,同样显示上面提到的错误并进入HTML页面
      

  7.   

    这个问题比较奇特。补充一点:我的OS是中文的,.net是英文的
      

  8.   

    是所有页面都这样?仔细检查一下你的html文件里是不是有非法的格式文件,还有codebihide指的cs文件名称,命名空间对吗?
      

  9.   

    to tomsoncat(蝈蝈) :
    这些都没有问题,因为页面在其它机器上是正常的。