分析器错误信息: 未能加载类型“GG.INC.Web_Bottom1”。
我在测试index1.aspx时用了自定义的控件发生
源错误: 
行 1:  <%@ Control Language="c#" AutoEventWireup="false" Codebehind="Web_Bottom1.ascx.cs" Inherits="GG.INC.Web_Bottom1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
行 2:  <table width="766" cellpadding="0" cellspacing="0" border="0">
行 3:   <TR>
 源文件: c:\inetpub\wwwroot\GG\INC\Web_Bottom1.ascx    行: 1 
这是index1.aspx的前台页面
<%@ Register TagPrefix="uc1" TagName="Web_Bottom1" Src="INC/Web_Bottom1.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Web_Left1" Src="INC/Web_Left1.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Web_Top1" Src="INC/Web_Top1.ascx" %>
<%@ Page language="c#" Codebehind="Index1.aspx.cs" AutoEventWireup="false" Inherits="GG.Index1" Codebehind="Index1.aspx.cs" %>
INC\Web_Bottom1.ascx    
代码为:
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Web_Bottom1.ascx.cs" Inherits="GG.INC.Web_Bottom1" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<table width="766" cellpadding="0" cellspacing="0" border="0">
<TR>
<TD height="100%" colspan="2"><img src="images/spacer.gif" width="1" height="1"></TD>
</TR>
<TR>
<TD colspan="2" height="145" background="images/bg_down.jpg">
<div style="PADDING-LEFT:40px;COLOR:#737373;PADDING-TOP:85px" class="tah11">
<a href="Life1.Aspx" style="COLOR:#08629f" class="tah11"><strong>生活指南</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="SelfHelp1.Aspx" style="COLOR:#08629f" class="tah11"><strong>自助团购</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="Discount1.Aspx" style="COLOR:#08629f" class="tah11"><strong>折扣天地</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="PersonalNotes1.Aspx" style="COLOR:#08629f" class="tah11"><strong>个人启事</strong></a>&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="Contact1.Aspx" style="COLOR:#08629f" class="tah11"><strong>联系我们</strong></a>
&nbsp;&nbsp;|&nbsp;&nbsp; <a href="Ad.aspx" style="COLOR:#08629f" class="tah11"><strong>
广告服务</strong></a><br>
Copyright ? 2004-2050 www.ggshare.com All Rights Reserved
<br>
<br>
<script language="JavaScript" type="text/javascript" src="http://www1.itsun.com/counter.php?uuid=1581920&amp;style=text"></script>
</div>
</TD>
</TR>
</table>
<map name="Map" id="Map">
<area shape="RECT" coords="500,130,552,157" href="Index.aspx">
<area shape="RECT" coords="558,130,647,157" href="Regsiter.aspx">
<area shape="RECT" coords="656,130,742,157" href="Forum/">
</map>
后台为:
namespace GG.INC
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls; /// <summary>
/// Web_Bottom1 的摘要说明。
/// </summary>
public class Web_Bottom1 : System.Web.UI.UserControl
{ private void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
} #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
}

/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load); }
#endregion
}
}
请问怎么作啊???????????????

解决方案 »

  1.   

    我用了以下方法都 不行?1.看看你上次修改程序后,是不是没有编译通过?如果没有编译通过,修改错误的代码。
    2.删除原来的bin下面的dll文件(删除该程序生成的dll文件,引用的dll文件不要删除).在VS.NET中,选择“生成”->“重新生成解决方案”。然后,重新运行,看看是否成功。
    3.检查是否有相关文件没有包括在项目中
    4.设置程序目录为虚似目录
    5.前台.aspx文件中引用的命名空间与后台.aspx.cs中的命名空间是否相符
    6.若是一个大的项目,根目录里的子目录中还有包含小的相关项目,那么可以把内层bin文件夹里的dll文件拷贝一份到根目录下的bin文件夹中,每次启动项目前要重新生成解决方案。
      

  2.   

    如果 是2005则是因为aspx没有保存。
      

  3.   

    我是用的是visual studio2003的版本