Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: WCF Framework entity
Good Morning,
 
I have WCF service that references .dll's from our Entity Framework project and I have published the WCF to one of our servers. However whenever we do a migration on the Entity project the WCF starts sending errors whenever called. Its telling us the model backing the context has changed since the database was created. If I copy those .dll's again to the WCF Service and publish again I have no problems. Is there any easier solution?
 
Thanks in advance.
Posted 26-Mar-13 2:46am
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I think you should you GAC in .net..
 
It will keep updating assemblies at your project, and you could add a policy in machine.config which would redirect to the said assembly..
 

correct me if i m wrong.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

When you add the reference to the project, right click the dll reference and set CopyLocal=true
  Permalink  
Comments
Will Everett at 26-Mar-13 9:01am
   
I have that ability in a windows or web application, but there is no setting like that in a WCF Service
aspnet_regiis -i at 26-Mar-13 9:45am
   
Not in Wcf Service. When you add the dll reference to the 'project' that contains the Wcf Service. Set CopyLocal=true for the dll reference added in the project .
Will Everett at 26-Mar-13 10:01am
   
Im not adding the dll reference to to project. The project is in a .net version that does not allow entity framework. That is why is use a WCF service. I have the winform project call the WCF Service and have the service access the entity framework and use the models to update the database.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 BillWoodruff 85
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 26 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100