Last post Apr 16, 2010 12:45 AM by csaloio1
Apr 13, 2010 12:14 PM|StephenCleary|LINK
My web site used ASP.NET 3.5 SP1, MVC 2, and EF. Last night I tried to upgrade to ASP.NET 4 (& EF4) under VS2010.
If my views are compiled (MvcBuildViews property is true), then the build fails with this error message:
Error 5 Could not load type 'System.Data.Entity.Design.AspNet.EntityDesignerBuildProvider'. C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\web.config 129
It's actually complaining about my system web.config file.
If MvcBuildViews is false, then it will run (and compile the views normally just fine).
Any ideas what could be causing this?
OS: Server 2008 R2, all updates applied at time of writing.
Apr 14, 2010 06:03 PM|DonSleza4e|LINK
got same problem
resolved by modifying Web.config
work for me, hope will helps for you
<compilation debug="true" targetFramework="4.0">
<add assembly="System.Web.Abstractions, Version=184.108.40.206, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Routing, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Web.Mvc, Version=18.104.22.168, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
<add assembly="System.Data.Entity, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add assembly="System.Data.Entity.Design, Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
Apr 14, 2010 10:17 PM|joecar|LINK
I tried to reproduce this error by upgrading a 3.5 mvc app with mvcbuildviews set to true (with an entitities model and a view that scaffolds an entity object) and my app built and ran with no errors. I would like to investigate this further and if you
could send me an app with this behavior I would love to take a look.
Apr 15, 2010 11:19 AM|StephenCleary|LINK
I resolved by moving my .edmx to another assembly. This is considered better practice anyway.
I'll try to get a repro together for you, but it probably will be the middle of next week. BTW, MvcBuildViews was not set to true when the project was upgraded to VS2010; I set it to true after the upgrade.
Apr 16, 2010 12:45 AM|csaloio1|LINK
I'm getting that error now too, but when I try to precompile w/ aspnet_compiler.exe not from VS.