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

System.Reflection.ReflectionTypeLoadException

7 Answers 278 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.
Maher
Top achievements
Rank 2
Maher asked on 30 Aug 2012, 09:06 AM
Hi,


I am using the last version of Telerik OpenAccess ORM (2012.2.816.1).
Each time I create a new project with Telerik OpenAccess Domain Model with Visual Studio 2010 SP1, I get this bug:

Unable to load assembly 'Parvis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' : Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500)
ExceptionString:
System.SystemException: Unable to load assembly 'Parvis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' : Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. General Exception (Exception from HRESULT: 0x80131500) ---> 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)
   --- End of inner exception stack trace ---
   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()

Thank you,
Regards,
Maher.

7 Answers, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 03 Sep 2012, 03:22 PM
Hi Maher,

Could you please provide us with a sample application, in order to reproduce the wrong behavior on our side? We will investigate the cause for the issue and provide you with a solution to the problem.

I have changed the thread type to Products Feedback, to enable file attachments.

We are looking forward to hearing from you.

All the best,
Damyan Bogoev
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
Maher
Top achievements
Rank 2
answered on 03 Sep 2012, 04:27 PM
I can't reproduce this bug but it really happened sometimes when I do reverse mapping.
0
Damyan Bogoev
Telerik team
answered on 06 Sep 2012, 02:58 PM
Hi Maher,

We are unable to reproduce the wrong behavior on our side. 

We will need more input in order to achieve that goal. Could you please provide us with additional information regarding the “Parvis” assembly which causes the assembly load issue?

We are looking forward to hearing from you.


Greetings,
Damyan Bogoev
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
Deep
Top achievements
Rank 1
answered on 10 Sep 2012, 12:40 PM
Did anyone find solution to this problem? I'm getting similar error
0
Ivailo
Telerik team
answered on 10 Sep 2012, 01:05 PM
Hi Deep,

Could you post the error message you are getting? It is possible that it is similar, but in the same time reproducible so we might be able to help you. 

Greetings,
Ivailo
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
Deep
Top achievements
Rank 1
answered on 10 Sep 2012, 01:08 PM
Hi Ivailo,

Here is my original question:
http://www.telerik.com/community/forums/orm/general-discussions/589815-system-reflection-reflectiontypeloadexception.aspx
0
Ivailo
Telerik team
answered on 10 Sep 2012, 02:08 PM
Hello Deep,

Thank you for pointing us in the right direction. We will review the question in the other thread and respond directly there.

Kind regards,
Ivailo
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!
Tags
General Discussions
Asked by
Maher
Top achievements
Rank 2
Answers by
Damyan Bogoev
Telerik team
Maher
Top achievements
Rank 2
Deep
Top achievements
Rank 1
Ivailo
Telerik team
Share this question
or