它出了这个错后,就以html 的方式给我显示出来,我不能选其他的显示方式。
代码什么都没有写啊
如下:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>WebForm1</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
  </head>
  <body MS_POSITIONING="GridLayout">    <form id="Form1" method="post" runat="server">    </form>  </body>
</html>

解决方案 »

  1.   

    直接运行就出这个错
    Server Error in '/WebApplication1' Application.
    --------------------------------------------------------------------------------Parser Error 
    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'WebApplication1.Global'.Source Error: 
    Line 1:  <%@ Application Codebehind="Global.asax.vb" Inherits="WebApplication1.Global" %> Source File: F:\ASP.NET 2003\WebApplication1\global.asax    Line: 1 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573 
      

  2.   

    <%@ Application Codebehind="Global.asax.vb" Inherits="WebApplication1.Global" %>
    改为
    <%@ Page language="vb" Codebehind="Global.asax.vb" AutoEventWireup="false" Inherits="WebApplication1.Global" %>
    或者改为
    <%@ Application src="Global.asax.vb" Inherits="Global" %>
    改为
      

  3.   

    不行啊!改了还是出错,而且双击webform1.aspx 还会出现
    =====================================
    "The class file 'WebForm1.aspx.vb' 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."
    =====================================
    这个错。应该如何搞啊??我以前用vs.net2002 没有事的,现在装2003就出现这个问题。!!
      

  4.   

    重新建一个web项目看看或者重新启动VS.NET
      

  5.   

    怎样新建一个web项目,和重启都是不行啊。
      

  6.   

    新建个项目,再把你所有的CODE原样的一个一个复制过去,查出是哪里出的错,就好办了呀!
      

  7.   

    上面已经说了出现的错误,其实把所有code copy 过去是没有用的,我用的是 codebehind="xx.vb" 它根本不能load 我的.vb 文件,你说应该如何是好?
      

  8.   

    我昨天刚重转VS.NET
    因为它不能建立WEB项目,唉,不知道怎么回事
      

  9.   

    是windows 2000 server么?
    杀毒了么?
    硬盘没坏道么?
    内存混插么?
    杂软件安装的多么?
    最后,网卡驱动没装错把。