Could not load file or assembly 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll' or one of its dependencies. The system cannot find the file specified.
below my web.config file - what could be the problem?? If I am logged in and using the application everything works. If I leave the app and not use it for for than 15 or 20 mins next time I try to enter the I get the error above.
I already tried cleaning the solution and adding again. Build completes successfuly every time but same error =/
According to your description, we can find the path of System.Data.Entity.dll file is 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll”
I suggest that you can create a new folder in your project (e.g. packages) and copy the System.Data.Entity.dll file into it, then remove the
EntityFramework reference and add the new reference using that System.Data.Entity.dll file.
If your project has been checked into the version control, please add and check in that folder (e.g. packages) into the server.
If you still have the issue, please provide the detail information about EntityFramwork’s properties. (Right click the ENtityFramwork reference in the VS and select the properties)
Thanks
Best Regards
MVC4
We are trying to better understand customer views on social support experience. Click HERE to participate the survey. Thanks!
ok sorry I did check again, I did have the references folder in
C:\Users\UserName\Documents\Visual Studio 2010\Projects\Project1\packages\EntityFramework.5.0.0\lib\net40
I looked inside here and didnt see the System.entity.data.dll so I copied it but same problem. After about 20-30 mins I get the same error message. I opened the app locally and left it there for about 3 hours did not get an error at all just happening in
the live server.
I want to know why the error is said could not load 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll', based on your reply the dll path property is C:\User\Documents\Visual Studio 2010\Projects\ProjectFile\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll,
they are not the same.
None
0 Points
3 Posts
Could not load file or assembly… System.Data.Entity.dll
Oct 04, 2013 06:39 PM|GTITC|LINK
Server Error in '/' Application.
Could not load file or assembly 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll' or one of its dependencies. The system cannot find the file specified.
below my web.config file - what could be the problem?? If I am logged in and using the application everything works. If I leave the app and not use it for for than 15 or 20 mins next time I try to enter the I get the error above.
I already tried cleaning the solution and adding again. Build completes successfuly every time but same error =/
Thank you for any help in advanced
MVC4
All-Star
23975 Points
4084 Posts
Re: Could not load file or assembly… System.Data.Entity.dll
Oct 07, 2013 01:36 AM|Starain chen - MSFT|LINK
Hi GTITC,
Thanks for your post!
According to your description, we can find the path of System.Data.Entity.dll file is 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll”
I suggest that you can create a new folder in your project (e.g. packages) and copy the System.Data.Entity.dll file into it, then remove the EntityFramework reference and add the new reference using that System.Data.Entity.dll file.
If your project has been checked into the version control, please add and check in that folder (e.g. packages) into the server.
If you still have the issue, please provide the detail information about EntityFramwork’s properties. (Right click the ENtityFramwork reference in the VS and select the properties)
Thanks
Best Regards
MVC4
None
0 Points
3 Posts
Re: Could not load file or assembly… System.Data.Entity.dll
Oct 07, 2013 03:01 AM|GTITC|LINK
new folder goes into the root of the project and what name?
these are the properties of the entity framework:
(Name): EntityFramework
Aliases: global
Copy Local: True
Culture:
Description: EntityFramework.dll
Embeded Interlop Types: False
File Type: Assembly
Identity: EntityFramework
Path: C:\User\Documents\Visual Studio 2010\Projects\ProjectFile\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll
Resolved: True
Runtime Version: v4.0.30319
Specific Version: False
Strong Name: True
Version: 4.4.0.0
I just checked in my project folder and I dont have packages\EntityFramework.5.0.0\lib\net40\
EntityFramework.dll is in C:\User\Documents\Visual Studio 2010\Projects\ProjectFile\bin
MVC4
All-Star
23975 Points
4084 Posts
Re: Could not load file or assembly… System.Data.Entity.dll
Oct 07, 2013 04:33 AM|Starain chen - MSFT|LINK
Hi GTITC,
You can create a new folder by right click your project=>Add=>New folder, the name is what you want. (e.g. Ref, ABC...)
Then copy the dll into that folder.
At last remove the EntityFramwork reference in the vs and add the new EntityFramwork reference using that dll file and build your project.
On the other hand, I suggest that you can place your project in another Directory like D:/
Thanks
Best Regards
MVC4
None
0 Points
3 Posts
Re: Could not load file or assembly… System.Data.Entity.dll
Oct 09, 2013 10:16 PM|GTITC|LINK
ok sorry I did check again, I did have the references folder in
C:\Users\UserName\Documents\Visual Studio 2010\Projects\Project1\packages\EntityFramework.5.0.0\lib\net40
I looked inside here and didnt see the System.entity.data.dll so I copied it but same problem. After about 20-30 mins I get the same error message. I opened the app locally and left it there for about 3 hours did not get an error at all just happening in the live server.
MVC4
Member
680 Points
279 Posts
Re: Could not load file or assembly… System.Data.Entity.dll
Oct 10, 2013 09:20 PM|Tear09|LINK
Hi,
Could you share your project in the skydrive?
http://windows.microsoft.com/en-us/skydrive/change-access-permissions-faq
I want to know why the error is said could not load 'file:///C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Data.Entity.dll', based on your reply the dll path property is C:\User\Documents\Visual Studio 2010\Projects\ProjectFile\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll, they are not the same.
Thanks
MVC4