We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to resolve Entity Framework configuration error in ASP.NET NuGet installed web application?

While running an ASP.NET NuGet package installed web application in Visual Studio 2010, the browser may show the unrecognized configuration section EntityFramework error in some cases.

F:\Extension\EXT-653\Configuration Error.PNG

Figure 1: Unrecognized Configuration Section EntityFramework

This error occurs since the project needs the EntityFramework package to be installed. By default, Visual Studio 2012 and 2013 ASP.NET projects have the EntityFramework package. But, Visual Studio 2010 does not contain the EntityFramework by default. You can perform the following steps to install the Entity Framework into the project.

  1. Click Tools->NuGet Package Manager->Package Manager Console from Visual Studio’s Menu.

F:\Extension\EXT-653\Select Console.png

Figure 2: Visual Studio Menu

  1. It opens the Package Manager console. Enter the following command in the console window.

PM> install-package EntityFramework

F:\Extension\EXT-653\EntityFramework.png

Figure 3: Package Manager

  1. This command downloads and installs EntityFramework package into the project. You need to wait till the installation is finished.

Now, you can run the application without the EntityFramework configuration error.

Note: Visual Studio needs an active internet connection to install the EntityFramework package.

Article ID: Published Date: Last Revised Date: Platform: Control:
3113 01/07/2015 01/07/2015 Miscellaneous Extension
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.