Could not load type ***

A

AB@

Hi,
I have got this error "could not load type controls.Title", and I
don't know why.
I have tryed the microsoft solution of rebuilding (http://
support.microsoft.com/kb/306155) but it doesn't work.
If I try to remove the first row of the file, it's make some and some
errors yet of the some type.

I use MS Visual Web Developer 2005 Express Edition, because the VS
2003 that I have don't support .net 2.0 that I must use. I don't know
if the problem is from this passage, but online I see that there're
also some .net 1 users that are affected by this problem.

About the custom controls there're the class of the type he could not
load; in his constructor he doesn't have arguments, and the same is
about the code... as you can see under:
---------------------------------
code .cs--------------------------------------------------
namespace nsp.controls
{
using System;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;


/// <summary>
/// Summary description for Title.
/// </summary>
public class Title : System.Web.UI.UserControl
{


public void Page_Load(object sender, System.EventArgs
e)
{
// Put user code to initialize the page here
}


#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the
ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}


/// <summary>
/// Required method for Designer support -
do not modify
/// the contents of this method with the
code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new
System.EventHandler(this.Page_Load);
}
#endregion
}


}
---------------------------------------------------------------------------­----------------------
Other this control there's another control similary to this (Menu).
About Menu control I had got the same problem but I resolve it with
the erasing of part of the first line about the "inherits"...
<%@ Control Language="c#" AutoEventWireup="false"
Codebehind="Menu.ascx.cs" TargetSchema="http://
schemas.microsoft.com/
intellisense/ie5"%>
I know that it's not a beatiful solution but it's working.

But with the first control (Title) this trick doesn't work, because
he
says me more & more errors of the same type all around the code.

Thanks previously
AB@
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top