473,769 Members | 8,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

inherited user control

Hi !

I use VB.Net 2005.
I created an inherited user control based on a previosly created user
control.Everyth ing is Ok . I can run this control with f5, everything is
fine. When I close Visual Studio and a open it again and load my project I
have the error:

One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

Unable to load one or more of the requested types. Retrieve the
LoaderException s property for more information.
Hide

at System.Reflecti on.Module.GetTy pesInternal(Sta ckCrawlMark&
stackMark)
at System.Reflecti on.Assembly.Get Types()
at
Microsoft.Visua lStudio.Shell.D esign.AssemblyO bsoleteEventArg s..ctor(Assembl y
assembly)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( S
tring codeBase)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St r
ing codeBase)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass e
mbly()
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name)
at
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes i
gnerHost.GetTyp e(String typeName)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu m
ent(IDesignerSe rializationMana ger manager)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d
(IDesignerSeria lizationManager manager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .
PerformLoad(IDe signerSerializa tionManager serializationMa nager)
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID e
signerLoaderHos t host)

I rebuid the project but no effect and I cannot load this inherited user
control. I cannot even see it .
Any ideas please why is happening ?

Thank you

Jan 4 '07 #1
4 2001
On 2007-01-04, Mihai <bv*****@telus. netwrote:
Hi !

I use VB.Net 2005.
I created an inherited user control based on a previosly created user
control.Everyth ing is Ok . I can run this control with f5, everything is
fine. When I close Visual Studio and a open it again and load my project I
have the error:

One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.

Unable to load one or more of the requested types. Retrieve the
LoaderException s property for more information.
Hide

at System.Reflecti on.Module.GetTy pesInternal(Sta ckCrawlMark&
stackMark)
at System.Reflecti on.Assembly.Get Types()
at
Microsoft.Visua lStudio.Shell.D esign.AssemblyO bsoleteEventArg s..ctor(Assembl y
assembly)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( S
tring codeBase)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St r
ing codeBase)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass e
mbly()
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name)
at
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes i
gnerHost.GetTyp e(String typeName)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu m
ent(IDesignerSe rializationMana ger manager)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d
(IDesignerSeria lizationManager manager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .
PerformLoad(IDe signerSerializa tionManager serializationMa nager)
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID e
signerLoaderHos t host)

I rebuid the project but no effect and I cannot load this inherited user
control. I cannot even see it .
Any ideas please why is happening ?
Are you performing any operations in the load event? Especially, things that
might error, like db access? If you are, are they surounded with code that
looks like:

If Not Me.DesignMode Then
' Do Cool Stuff
End If

?

--
Tom Shelton
Jan 4 '07 #2
Yes , indeed I have in the Load event of the control some code that get
something from a Sql server table. I will try what you said
Thank you !

"Tom Shelton" <to*********@co mcastXXXXXXX.ne twrote in message
news:yI******** *************** *******@comcast .com...
On 2007-01-04, Mihai <bv*****@telus. netwrote:
Hi !

I use VB.Net 2005.
I created an inherited user control based on a previosly created user
control.Everyth ing is Ok . I can run this control with f5, everything is
fine. When I close Visual Studio and a open it again and load my project
I
have the error:

One or more errors encountered while loading the designer. The
errors
are listed below. Some errors can be fixed by rebuilding your project,
while
others may require code changes.

Unable to load one or more of the requested types. Retrieve the
LoaderException s property for more information.
Hide

at System.Reflecti on.Module.GetTy pesInternal(Sta ckCrawlMark&
stackMark)
at System.Reflecti on.Assembly.Get Types()
at
Microsoft.Visua lStudio.Shell.D esign.AssemblyO bsoleteEventArg s..ctor(Assembl y
assembly)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( S
tring codeBase)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St r
ing codeBase)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass e
mbly()
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly,
String description)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase,
Assembly&
assembly)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name)
at
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes i
gnerHost.GetTyp e(String typeName)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu m
ent(IDesignerSe rializationMana ger manager)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d
(IDesignerSeria lizationManager manager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .
PerformLoad(IDe signerSerializa tionManager serializationMa nager)
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID e
signerLoaderHos t host)

I rebuid the project but no effect and I cannot load this inherited user
control. I cannot even see it .
Any ideas please why is happening ?

Are you performing any operations in the load event? Especially, things
that
might error, like db access? If you are, are they surounded with code
that
looks like:

If Not Me.DesignMode Then
' Do Cool Stuff
End If

?

--
Tom Shelton

Jan 5 '07 #3
Hi Again Tom !

I found in MSDN something interesting about this stuff.Have a look at
"Troubleshootin g Inherited Event Handlers in Visual Basic 2005 " .Is work
how they said . Anyway I will put in code the both methods !

Regards,
Mihai
"Tom Shelton" <to*********@co mcastXXXXXXX.ne twrote in message
news:yI******** *************** *******@comcast .com...
On 2007-01-04, Mihai <bv*****@telus. netwrote:
Hi !

I use VB.Net 2005.
I created an inherited user control based on a previosly created user
control.Everyth ing is Ok . I can run this control with f5, everything is
fine. When I close Visual Studio and a open it again and load my project
I
have the error:

One or more errors encountered while loading the designer. The
errors
are listed below. Some errors can be fixed by rebuilding your project,
while
others may require code changes.

Unable to load one or more of the requested types. Retrieve the
LoaderException s property for more information.
Hide

at System.Reflecti on.Module.GetTy pesInternal(Sta ckCrawlMark&
stackMark)
at System.Reflecti on.Assembly.Get Types()
at
Microsoft.Visua lStudio.Shell.D esign.AssemblyO bsoleteEventArg s..ctor(Assembl y
assembly)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( S
tring codeBase)
at
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St r
ing codeBase)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass e
mbly()
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly,
String description)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase,
Assembly&
assembly)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name)
at
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes i
gnerHost.GetTyp e(String typeName)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu m
ent(IDesignerSe rializationMana ger manager)
at
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d
(IDesignerSeria lizationManager manager)
at
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .
PerformLoad(IDe signerSerializa tionManager serializationMa nager)
at
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID e
signerLoaderHos t host)

I rebuid the project but no effect and I cannot load this inherited user
control. I cannot even see it .
Any ideas please why is happening ?

Are you performing any operations in the load event? Especially, things
that
might error, like db access? If you are, are they surounded with code
that
looks like:

If Not Me.DesignMode Then
' Do Cool Stuff
End If

?

--
Tom Shelton

Jan 5 '07 #4
Now I have this error for the same scenario :

Could not load file or assembly 'BaseControls, Version=1.0.256 0.40871,
Culture=neutral , PublicKeyToken= null' or one of its dependencies. The system
cannot find the file specified.":"Ba seControls, Version=1.0.256 0.40871,
Culture=neutral , PublicKeyToken= null"}

This project BaseControls is in the same assemblies as with the others !

Why Visual Studio cannot find this file ?

Any ideas ?

Mihai

"Mihai" <bv*****@telus. netwrote in message
news:<i9lnh.113 192$YV4.98263@e dtnps89>...
Hi Again Tom !
>
I found in MSDN something interesting about this stuff.Have a look at
"Troubleshootin g Inherited Event Handlers in Visual Basic 2005 " .Is
work how they said . Anyway I will put in code the both methods !
>
Regards,
Mihai
>
>
"Tom Shelton" <to*********@co mcastXXXXXXX.ne twrote in message
news:yI******** *************** *******@comcast .com...
On 2007-01-04, Mihai <bv*****@telus. netwrote:
Hi !
>
I use VB.Net 2005.
I created an inherited user control based on a previosly created
user control.Everyth ing is Ok . I can run this control with f5,
everything
is
fine. When I close Visual Studio and a open it again and load my
project
I
have the error:
>
One or more errors encountered while loading the designer.
The
errors
are listed below. Some errors can be fixed by rebuilding your
project,
while
others may require code changes.
>
Unable to load one or more of the requested types. Retrieve
the LoaderException s property for more information.
Hide
>
at System.Reflecti on.Module.GetTy pesInternal(Sta ckCrawlMark&
stackMark)
at System.Reflecti on.Assembly.Get Types()
at
>
>
Microsoft.Visua lStudio.Shell.D esign.AssemblyO bsoleteEventArg s..ctor(Assembl y
assembly)
at
>
>
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.ReloadAss emblyIfChanged( S
tring codeBase)
at
>
>
Microsoft.Visua lStudio.Design. VSDynamicTypeSe rvice.CreateDyn amicAssembly(St r
ing codeBase)
at
>
>
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.get_Ass e
mbly()
at
>
>
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Assemb lyEntry.Search( S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly,
String description)
at
>
>
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.Search ProjectEntries( A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase,
Assembly&
assembly)
at
Microsoft.Visua lStudio.Design. VSTypeResolutio nService.GetTyp e(Stri
ng typeName, Boolean throwOnError, Boolean ignoreCase,
ReferenceType
refType)
at
>
>
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name, Boolean throwOnError, Boolean ignoreCase)
at
>
>
Microsoft.Visua lStudio.Design. Serialization.C odeDom.Aggregat eTypeResolution S
ervice.GetType( String name)
at
>
>
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes i
gnerHost.GetTyp e(String typeName)
at
>
>
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.EnsureDocu m
ent(IDesignerSe rializationMana ger manager)
at
>
>
System.Componen tModel.Design.S erialization.Co deDomDesignerLo ader.PerformLoa d
(IDesignerSeria lizationManager manager)
at
>
>
Microsoft.Visua lStudio.Design. Serialization.C odeDom.VSCodeDo mDesignerLoader .
PerformLoad(IDe signerSerializa tionManager serializationMa nager)
at
>
>
System.Componen tModel.Design.S erialization.Ba sicDesignerLoad er.BeginLoad(ID e
signerLoaderHos t host)
>
>
>
I rebuid the project but no effect and I cannot load this
inherited
user
control. I cannot even see it .
Any ideas please why is happening ?
Are you performing any operations in the load event? Especially,
things
that
might error, like db access? If you are, are they surounded with
code
that
looks like:
If Not Me.DesignMode Then
' Do Cool Stuff
End If
?
--
Tom Shelton
>
>

Jan 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2079
by: Tom | last post by:
How do I compile a inherited control into a dll so that I can add it to the toolbar ? is there a step by step guide that I can read ? Thanks Tom
2
1291
by: Terrance | last post by:
Hello all I have a question I'm hoping someone can shed some light on. I have 2 user Inherited Controls on a form. When I click 1 inherited control I would like to change the text of the other Inherited Control. Is there anyway to do this? For example, I have an ADD button which is inherited and a EXIT button which is inherited. The reason I made them inherited is because I want to use the function of these buttons in other forms and don't...
0
2229
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer handles inheritance. Environment: OS Name Microsoft Windows 2000 Professional Version 5.0.2195 Service Pack 4 Build 2195 Microsoft Visual C# .NET
3
1789
by: Jeff User | last post by:
Hello I am using C#, .net1.1 Vis Studio 2003 I am using homeBase.aspx.cs page as a base for several other aspx/aspx.cs web pages. The base page handles some operations that are common to all pages. like this: somepage... public class homeBase : System.Web.UI.Page .... then other pages.....
3
5483
by: Wayne Brantley | last post by:
VS2005 RTM Create a web user control to use as a base class for other web user controls. Now, create a new web user control, change the class it inherits from to your base class and compile. (You must have a <% Register %> so it will see it) You will get TWO warnings per class like:
1
1909
by: ben m | last post by:
Hi all - we've recently switched up to 2005, and I'm having trouble getting the hang of some things, among them, creating a control for the project. Currently, we use a combination of controls on a TabControl - mainly a grid on one tab, and a checkboxlist on the other, that coordinate back and forth, so (un)checking a box will hide or show a column on the grid. In addition, I would like the flexibility of adding a DataSource at design time...
1
1515
by: MikeY | last post by:
Hi Everyone, I'm trying to figure out how to close my inherited user control (myKeyBoard). My Code is as follows for calling my control: HOST.I_Ctrl_KeyBoard myKeyBoard= new HOST.I_Ctrl_KeyBoard(); myKeyBoard.Location = new System.Drawing.Point(275, 305); myKeyBoard.Parent = this; myKeyBoard.BringToFront(); myKeyBoard.Show();
0
1315
by: MikeY | last post by:
Hi everyone, I posted a question very early today, but maybe I wasn't articulate enough. Hopefully this will illicit a response I've created a windows form and a User Control. This is a keyboard. What I have done is that every keystroke is entered into a textbox within my User Control. Want I want to do is to take that user input from keyboard textbox and display it within my main form. I also want to be able to close this control and...
0
1687
by: Mark | last post by:
I want to create a user control inherited from a TextBox with an associated label (let's call it a LabelTextBox). The trick is that I want the control to inherit from TextBox and have all of its properties available rather than the default properties of the user control. I also do not want to have to expose the Textbox properties one by one in a user control. I have already previously created this control using Delphi and I have...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.