我在VS2003新建的项目,然后新建WEB窗体,总是会出现下面的错误.但是我将Inherits="Jianghai.Gongy_Input" 删除掉以后就可以正常运行,但是当我在CS文件写代码时在程序没有反应.这是为什么啊.CS文件命名空间如下:namespace Jianghai
{
/// <summary>
/// Gongy_Input 的摘要说明。
/// </summary>
public class Gongy_Input : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected System.Web.UI.WebControls.TextBox TextBox3;
protected System.Web.UI.WebControls.TextBox Textbox5;
ASPX文件:<%@ Page language="c#" Codebehind="Gongy_Input.aspx.cs" AutoEventWireup="false" Inherits="Jianghai.Gongy_Input" %>
<HTML>
<HEAD>
<title>Index</title>
<meta content="False" name="vs_showGrid">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
“/Jianghai”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 未能加载类型“Jianghai.Gongy_Input”。源错误:
行 3: <%@ register tagprefix="com" tagname="Menu" src="Menu.ascx"%>
行 4: <%@ OutputCache Duration="60" VaryByParam="none" %>
行 5: <%@ Page language="c#" Codebehind="Gongy_Input.aspx.cs" AutoEventWireup="false" Inherits="Jianghai.Gongy_Input" %>
行 6: <HTML>
行 7: <HEAD>
源文件: E:\MyWeb\Jianghai\Gongy_Input.aspx 行: 5
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
这是那里错了呢?请教各位帮帮忙了.谢谢...
{
/// <summary>
/// Gongy_Input 的摘要说明。
/// </summary>
public class Gongy_Input : System.Web.UI.Page
{
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.TextBox TextBox2;
protected System.Web.UI.WebControls.TextBox TextBox3;
protected System.Web.UI.WebControls.TextBox Textbox5;
ASPX文件:<%@ Page language="c#" Codebehind="Gongy_Input.aspx.cs" AutoEventWireup="false" Inherits="Jianghai.Gongy_Input" %>
<HTML>
<HEAD>
<title>Index</title>
<meta content="False" name="vs_showGrid">
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
“/Jianghai”应用程序中的服务器错误。
--------------------------------------------------------------------------------分析器错误
说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 分析器错误信息: 未能加载类型“Jianghai.Gongy_Input”。源错误:
行 3: <%@ register tagprefix="com" tagname="Menu" src="Menu.ascx"%>
行 4: <%@ OutputCache Duration="60" VaryByParam="none" %>
行 5: <%@ Page language="c#" Codebehind="Gongy_Input.aspx.cs" AutoEventWireup="false" Inherits="Jianghai.Gongy_Input" %>
行 6: <HTML>
行 7: <HEAD>
源文件: E:\MyWeb\Jianghai\Gongy_Input.aspx 行: 5
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
这是那里错了呢?请教各位帮帮忙了.谢谢...
Jianghai\Bin目录中有没有*.dll文件?没有的话需要重新编译一下以上都没有错误还要再看看有没有将Jianghai配置成IIS的应用程序
Jianghai\Bin目录中有没有*.dll文件?没有的话需要重新编译一下
-----------------------------------------------------
建议:
Gongy_Input.aspx:
<%@ Page language="c#" Codebehind="Gongy_Input.aspx.cs" AutoEventWireup="false" Inherits="Jianghai.Gongy_Input" %>Gongy_Input.aspx.cs:
class Gongy_Input
我以前遇到过这样的问题,是Microsoft .net运行环境的问题。
不妨试一下.