Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Could not load type ***

Reply
Thread Tools

Could not load type ***

 
 
AB@
Guest
Posts: n/a
 
      03-15-2007
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@

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
could not load type "_default" M ASP .Net 1 07-24-2006 04:29 PM
Could not load type =?Utf-8?B?RGhlZXJhaiBXYWRo?= ASP .Net 2 10-26-2005 06:33 PM
Could not load type - not obvious ChrisC ASP .Net 8 05-12-2005 01:20 PM
Could not load type Neil Ramsbottom ASP .Net 2 07-30-2003 05:23 AM
could not load type global bob ASP .Net 1 07-02-2003 04:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57