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

The type initializer for 'EntitiesModel.EntitiesModel' threw an exception.

1 Answer 181 Views
Data Access Free Edition
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rita
Top achievements
Rank 1
Rita asked on 01 Jul 2015, 07:07 AM

Hi Telerik Team,

 

I am setting up my working environment in Visual Studio 2010. I successfully rebuild the code but when i'm running it i am receiving a message 'The type initializer for 'EntitiesModel.EntitiesModel' threw an exception.'

 Upon investigation the project that cause errors using Telerik  Data Access, it has a EntitiesModel.rlinq file. I check my coworkers machine and it seems that their visual studio recognise the file (it has a green icon), but in my machine it doesn't (the icon is like a white blank paper).

 And upon debugging i found out the the error occurs in this line below:

private static MetadataSource metadataSource = XmlMetadataSource.FromAssemblyResource("EntitiesModel.rlinq");

 It seems the .rlinq can't be recognise by my VS2010.

 Please Help.

 

Best Regards!

Marc

1 Answer, 1 is accepted

Sort by
0
Viktor Zhivkov
Telerik team
answered on 03 Jul 2015, 10:52 AM
Hi Rita,

In order to work with .RLINQ models and Telerik Data Access you will need Telerik Data Access Q1 2015 (version 2015.1.225.1). 
If you have already downloaded that version in the past, you should be able to download it again from Your Account page on www.telerik.com.
If you cannot find it there, please let us know and we will provide it to you.
The latest version (Q2 2015) does not contain Visual Designer and support for RLINQ models any more so if you are planning to continue using the Visual Designer, please stick with Q1 2015 release. Here you can find more information about this recent change in our product.

If you need any further assistance do not hesitate to contact us.

Regards,
Viktor Zhivkov
Telerik
 
Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
Tags
Data Access Free Edition
Asked by
Rita
Top achievements
Rank 1
Answers by
Viktor Zhivkov
Telerik team
Share this question
or