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
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
Comment