Reputation: 512
I am getting an error when I delpoy my solution to the web server saying that it cannot load the assembly Entity Framework 4.1. I have recently installed .NET framework 4 on the web server in order to make use of the new entity framework. Do I need to install EF 4.1 on the web server or is there any way to get around that?
I have tried to copy local the Entity Framework reference in my project.
Upvotes: 1
Views: 3740
Reputation: 512
I figured out what was going on.
When I did a publish to the file system it did not copy over the Entity Framework dll even though I set Copy local to true. Maybe this is an error in the publishing feature. I found the dll in the bin / debug folder of my project and copied them over the web server.
Works great!
Thanks to everyone that helped!
Upvotes: 2
Reputation: 5081
Entity Framework 4.1 isn't part of .net 4. You should go ahead and install it on the server if you can. If not, make sure you set CopyLocal=True on the relevant references and see if that's enough to let it work (not sure if it is for EF 4.1 or not).
Upvotes: 2