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

2 posts, 0 answers
  1. Rita
    Rita avatar
    2 posts
    Member since:
    Mar 2012

    Posted 01 Jul 2015 Link to this post

    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

  2. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 03 Jul 2015 Link to this post

    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.
  3. DevCraft banner
Back to Top