473,498 Members | 1,724 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.Everything 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
LoaderExceptions property for more information.
Hide

at System.Reflection.Module.GetTypesInternal(StackCra wlMark&
stackMark)
at System.Reflection.Assembly.GetTypes()
at
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(S
tring codeBase)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(Str
ing codeBase)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Asse
mbly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name)
at
System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesi
gnerHost.GetType(String typeName)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocum
ent(IDesignerSerializationManager manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDe
signerLoaderHost 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 1980
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.Everything 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
LoaderExceptions property for more information.
Hide

at System.Reflection.Module.GetTypesInternal(StackCra wlMark&
stackMark)
at System.Reflection.Assembly.GetTypes()
at
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(S
tring codeBase)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(Str
ing codeBase)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Asse
mbly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name)
at
System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesi
gnerHost.GetType(String typeName)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocum
ent(IDesignerSerializationManager manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDe
signerLoaderHost 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*********@comcastXXXXXXX.netwrote 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.Everything 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
LoaderExceptions property for more information.
Hide

at System.Reflection.Module.GetTypesInternal(StackCra wlMark&
stackMark)
at System.Reflection.Assembly.GetTypes()
at
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(S
tring codeBase)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(Str
ing codeBase)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Asse
mbly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase,
Assembly&
assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name)
at
System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesi
gnerHost.GetType(String typeName)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocum
ent(IDesignerSerializationManager manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDe
signerLoaderHost 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
"Troubleshooting 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*********@comcastXXXXXXX.netwrote 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.Everything 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
LoaderExceptions property for more information.
Hide

at System.Reflection.Module.GetTypesInternal(StackCra wlMark&
stackMark)
at System.Reflection.Assembly.GetTypes()
at
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(S
tring codeBase)
at
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(Str
ing codeBase)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Asse
mbly()
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly,
String description)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase,
Assembly&
assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(String
typeName, Boolean throwOnError, Boolean ignoreCase, ReferenceType
refType)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name)
at
System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesi
gnerHost.GetType(String typeName)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocum
ent(IDesignerSerializationManager manager)
at
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDe
signerLoaderHost 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.2560.40871,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot find the file specified.":"BaseControls, Version=1.0.2560.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.113192$YV4.98263@edtnps89>...
Hi Again Tom !
>
I found in MSDN something interesting about this stuff.Have a look at
"Troubleshooting 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*********@comcastXXXXXXX.netwrote 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.Everything 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 LoaderExceptions property for more information.
Hide
>
at System.Reflection.Module.GetTypesInternal(StackCra wlMark&
stackMark)
at System.Reflection.Assembly.GetTypes()
at
>
>
Microsoft.VisualStudio.Shell.Design.AssemblyObsole teEventArgs..ctor(Assembly
assembly)
at
>
>
Microsoft.VisualStudio.Design.VSDynamicTypeService .ReloadAssemblyIfChanged(S
tring codeBase)
at
>
>
Microsoft.VisualStudio.Design.VSDynamicTypeService .CreateDynamicAssembly(Str
ing codeBase)
at
>
>
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.get_Asse
mbly()
at
>
>
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.AssemblyEntry.Search(S
tring fullName, String typeName, Boolean ignoreTypeCase, Assembly&
assembly,
String description)
at
>
>
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.SearchProjectEntries(A
ssemblyName assemblyName, String typeName, Boolean ignoreTypeCase,
Assembly&
assembly)
at
Microsoft.VisualStudio.Design.VSTypeResolutionServ ice.GetType(Stri
ng typeName, Boolean throwOnError, Boolean ignoreCase,
ReferenceType
refType)
at
>
>
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at
>
>
Microsoft.VisualStudio.Design.Serialization.CodeDo m.AggregateTypeResolutionS
ervice.GetType(String name)
at
>
>
System.ComponentModel.Design.DesignerHost.System.C omponentModel.Design.IDesi
gnerHost.GetType(String typeName)
at
>
>
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.EnsureDocum
ent(IDesignerSerializationManager manager)
at
>
>
System.ComponentModel.Design.Serialization.CodeDom DesignerLoader.PerformLoad
(IDesignerSerializationManager manager)
at
>
>
Microsoft.VisualStudio.Design.Serialization.CodeDo m.VSCodeDomDesignerLoader.
PerformLoad(IDesignerSerializationManager serializationManager)
at
>
>
System.ComponentModel.Design.Serialization.BasicDe signerLoader.BeginLoad(IDe
signerLoaderHost 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
2055
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
1277
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...
0
2205
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...
3
1768
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...
3
5456
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....
1
1893
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...
1
1485
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...
0
1296
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...
0
1651
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...
1
6887
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...
0
7379
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...
0
5462
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,...
1
4910
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...
0
4590
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...
0
3093
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...
0
1419
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
291
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.