Skip to Content
author's profile photo Former Member
Former Member

Unable to open an entity framework model in LinqSample

Hi

I'm trying to open SampleModel.edmx that comes with LinqSample project, which in turns comes as a sample with SQLA 16. I receive the following message: "Unable to cast object of type 'iAnywhere.Data.SQLAnywhere.SAProviderServices' to type 'System.Data.Common.DBProviderServices'". The problem exists in both Visual Studio 2013 and 2015, and after I followed all installation instructions. Any advice is very much welcome.

Leonid Gvirtz

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Nov 09, 2015 at 09:18 AM

    I have tested with Visual Studio Professional 2013 update 5 and SQL Anywhere 16 and I can open LinqSample SampleModel.edmx on Windows 8.1.

    Did you have to convert the project to open it in VS 2013? Have you selected .NET Framework 4.5?

    Add a comment
    10|10000 characters needed characters exceeded

    • I would start making sure that you are running SQL Anywhere 16.0.0.1993 or above. EF 6 support has been introduced since then. Then open the readme_EBF.HTML file that is in C:\Program Files\SQL Anywhere 16 (by default) and search for Engineering Case # 768717 and confirm you have followed the instructions please.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.