Monday 20 April 2015

WebMatrix.WebData.dll into project

Including the WebMatrix.WebData.dll into the project.
I was trying it to Nuget Package to get the WebMatrix.WebData.dll but it is not getting. To get that WebMatrix.WebData.Dll into your solution you need to install it from package manager.
Open the package manager by;




Package Manager will be open like command promt like below screen;


Type the below command in Package Manager
PM> Install-Package WebMatrix.WebData

As I have already added it I am getting the below Message;



You can see in your references (WebMatrix.WebData.Dll)





At run time of the application you will get the error as;


Now for it you have to install the below package to your Package Manager;
Install-Package -Id  Microsoft.AspNet.WebHelpers

After install that package successfully you will face problem of;

Could not load file or assembly 'WebMatrix.Data, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its

For this you need to run the below commond in Package Manager;
Install-Package Microsoft.AspNet.WebPages.Data




Now Enjoy your application is running with Webmatrix.

4 comments: