I\'ve VS 2010 and recently installed WCF RIA Services V1.0. For testing I have created a new Silverligh Business project but now every now and then when I rebuild the solution I
I was getting this error on my TFS build server, but not on my development machine.
It turned out to be because my development box had the MS14-059 security update (the update that broke builds), and I had fixed it on my build machine by updating my projects to use the Microsoft.AspNet.Mvc NuGet package, instead of referencing the 3.0.0.0 assembly from the GAC. The build server, on the other hand, did not have MS14-059 installed. So my projects referenced System.Web.Mvc version 3.0.0.1, but the build server only had 3.0.0.0 in its GAC.
I ran gacutil -l | find /i "mvc"
to verify that my development machine had System.Web.Mvc 3.0.0.1 in its GAC, and the build server only had 3.0.0.0.
When I upgraded to the NuGet package, it added binding redirects to my web.config, so the project probably would have run just fine on the build server. But RIA Services' msbuild task, which ran at build time and didn't care about the binding redirects in web.config, didn't fare so well with the version mismatch.
The fix was to install MS14-059 on the build machine.