Could not load type ***

  • Thread starter Thread starter AB@
  • Start date Start date
A

AB@

Hi,
I have this error "could not load type *****", 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.

You know how I can resolve this problem.

Ab@
 
This is in Visual Studio? In the designer view on an .aspx page?
Which version of VS?
Are there any custom controls on the page, do the custom control have
arguments in their only constructor?
Do the custom controls run code that might crash within their constructor?

Hope some of those questions lead to some sort of resolution.
 
I don't use VS properly. 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.

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

Back
Top