黑子的篮球官方小说:asp.net服务器如何配置!!急~~

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/09 06:18:58
我在装了.net framework后,运行不了aspx页,(此页没有链接数据库),配置进出现如下问题:
Server Error in '/' 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 'gs.index'.

Source Error:

Line 1: <%@ Page language="c#" Codebehind="index.aspx.cs" AutoEventWireup="false" Inherits="gs.index" %>
Line 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 3: <HTML>

Source File: /index.aspx Line: 1

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

你那个页面上的<%@ 指令格式是 .net 1.0 的格式,2.0不再支持了。

请使用新的page指令

格式如下
<%@ Page Language="C#" AutoEventWireup="false" CodeFile="index.aspx.cs" Inherits="gs.index" %>

问题在 Inherits = "gs.index"
这里是因为找不到
gs命名空间下的index类才出错的。
我怀疑index.aspx.cs中的类名被你改了,要把你改后的类名替换gs.index中的index就可以了。

上面的错了,不过说的还是有这个可能的,是NET1.1的,不要瞎说

<%@ Page Language="C#" AutoEventWireup="false" CodeFile="index.aspx.cs" Inherits="index" %>