In ASP.NET MVC 2, MvcBuildViews is true while using Entity Framework.

asp.net asp.net-mvc csproj entity-framework

Question

VS 2010, altering<MvcBuildViews>true</MvcBuildViews> inside of an MVC2 project. If you're using Entity Framework, the csproj file results in an error.

Could not load type 'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider'. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config 129

While I'm debugging, I want to create views and have my project compile.

1
33
7/8/2012 4:26:00 AM

Accepted Answer

ZZZ_tmp
59
5/11/2010 4:51:24 PM

Popular Answer

I had the same issue and discovered that the cause was that I had generated certain entity files (such as edmx) but erased them.

I merely generated these files, and then this issue arose. Upon closer examination of the program directories, I discovered that Visual Studio had just "removed" the applications from the project rather than "deleting" them entirely from the disk. Since it was an edmx file, the project chose to include it while it was being built. therefore the mistake.

Simple solution: remove the entity files from the HDD permanently!



Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow