This is a migrated thread and some comments may be shown as answers.

Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

2 Answers 403 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
rd
Top achievements
Rank 1
rd asked on 08 Jun 2012, 01:42 PM

I was using 2012.1.329.1, I upgraded to 2012.1.427.1 and start to have the following issue when compiling:


Error    146    Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
ExceptionString:
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at Telerik.OpenAccess.Metadata.MetadataAttributesReader.PrepareMetaModelTypes(Assembly assembly)
   at Telerik.OpenAccess.Metadata.MetadataAttributesReader.ReadMetaModel(Assembly assembly)
   at Telerik.OpenAccess.Metadata.AttributesMetadataSource.<>c__DisplayClass1.<FromAssembly>b__0()
   at Telerik.OpenAccess.Metadata.AttributesMetadataSource.CreateModel()
   at Telerik.OpenAccess.Metadata.MetadataSource.GetModelCore(MetadataContainer old)
   at Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
   at Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()    xxxxxxxxxxxxxx.dll    xxxxxxxxxx

2 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 08 Jun 2012, 01:45 PM
Hi,

Usually this error shows up if there is an old OpenAccess dlls somewhere or you did not recompile everything with the new version. Can you just look if in one of your bin\debug directories is still an old version?


Kind regards,
Jan Blessenohl
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
0
rd
Top achievements
Rank 1
answered on 08 Jun 2012, 02:15 PM
You're rigth. I had a reference to an assembly that ws compiled with the old version.

Thanks
Tags
General Discussions
Asked by
rd
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
rd
Top achievements
Rank 1
Share this question
or