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;
Attempt by security transparent method 'WebMatrix.WebData.PreApplicationStartCode.Start()' to access security critical method 'System.Web.WebPages.Razor.WebPageRazorHost.AddGlobalImport(System.String)' failed.
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;
For this you need to run the below commond in Package Manager;
Now Enjoy your application is running with Webmatrix.