need to call storeprodure from entity object model in visual webpart

Getting error

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

How to resolve it.

Thanks,

Siva.

April 20th, 2015 10:49pm

Hi Siva,

EntityFramework assembly is not part of the SharePoint family so you need to manually add this to your solution and have reference in the Package Designer.

Try this link, It will gives you the clear idea on how to include the assembly and package it.

Free Windows Admin Tool Kit Click here and download it now
April 20th, 2015 11:35pm

My visual webpart and entity frame work are in same solution. 
April 21st, 2015 5:40pm

Yes,

Still you need to refer your entity assembly in the package whether you wanted to keep your assembly on your project folder or on GAC during runtime.

Free Windows Admin Tool Kit Click here and download it now
April 21st, 2015 10:11pm

I did that but still giving same error.
April 22nd, 2015 7:32pm

Hi,

1. Open Toos > Nuget Package Manager > Package Manager Console
then run
install-package entityframework -version 6.0.0.0

2. Try to copy EntityFramework.dll to the bin folder under Solution.

3. Try to copy EntityFramework.dll  to SharePoint web application bin folder.

C:\inetpub\wwwroot\wss\VirtualDirectories\<port>\bin

Best Regards

Free Windows Admin Tool Kit Click here and download it now
April 28th, 2015 3:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics