Schema Error on Server, Works on Dev PC

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
quip85673456
Posts: 13
Joined: Mon 18 Apr 2011 16:37

Schema Error on Server, Works on Dev PC

Post by quip85673456 » Thu 01 Nov 2012 15:47

I posted this question on Stack Overflow:

http://stackoverflow.com/questions/1309 ... on-another

Someone from Devart suggested to verify the version of EF was the same. I believe we are current on our support so I'm sorry to post again but could someone look at that question, or should I repost it here? Or do I need to use the "request support" option from the support menu?

Sorry I'm not trying to be difficult, I'm just stuck and I need some help with this problem.

Helen
Devart Team
Posts: 127
Joined: Wed 07 Sep 2011 11:54

Re: Schema Error on Server, Works on Dev PC

Post by Helen » Fri 02 Nov 2012 14:00

Since you have different DDL generated, this means that different metadata are processed. This situation is possible, if different versions of the EntityFramework.dll assembly are loaded.

Please inform us, whether you have done binding redirect for the EntityFramework.dll assembly as described in this blog article ( http://blogs.devart.com/dotconnect/enti ... l#Versions ) ?
Please let us know, whether your config file contains the following code:

Code: Select all

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
      <assemblyIdentity name="EntityFramework"
publicKeyToken="b77a5c561934e089" />
      <bindingRedirect oldVersion="4.4.0.0" newVersion="4.1.0.0" />
    </dependentAssembly>
    </assemblyBinding>
  </runtime>

Post Reply