Click here to Skip to main content
15,888,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a requirement where I need to add Entity Framework DLL From external folder

What I have tried:

First I installed Entity framework version 6.1.3 from Nuget package console

After getting new requirement I deleted already Installed DLL from references and added existing DLL from the folder

I checked the path of the DLL by going to the properties of the DLL and its showing same path of the folder

Now My question is Do I need to declare any ASSEMBLY details in Web Config file In order to reflect the new DLL changes, here I am not sure the DLL is installed one or reference from the folder
Posted
Updated 21-Feb-19 0:58am
v2
Comments
Bryian Tan 20-Feb-19 22:17pm    
try uninstall and reinstall through the Nuget, that will take care of everything.
Divyay208 21-Feb-19 9:33am    
If I uninstall I am getting errors of entity framework dependency's missing errors. If I Install then the DLL not referring to the folder

1 solution

In the same properties window, change option "copy local" to true and see if the problem solved.
 
Share this answer
 
Comments
Divyay208 21-Feb-19 9:30am    
I am not getting errors but in order make the DLL file refer to local folder do I need to write code in we config file?

If I write below code I am getting error as follows, Otherwise Its working

Could not load file or assembly 'System.Web.Entity, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.

<compilation debug="true" targetFramework="4.5">
<assemblies>
<add assembly="System.Web.Entity, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900