The “CreateRiaClientFilesTask” task failed unexpectedly

前端 未结 10 1011
無奈伤痛
無奈伤痛 2021-02-12 15:49

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

相关标签:
10条回答
  • 2021-02-12 16:05

    I experianced the same problem with McAfee as Rob, but instead of remove it, I just turned off the "Real-Time Scanning" under the Virus and Spyware Protection and Firewall under Web and Email Protection. This setting was temporary only during build the project.

    0 讨论(0)
  • 2021-02-12 16:06

    I had this problem for months and months on my new work computer, after getting frustrated with my antivirus slowing my machine down (McAfee not my choice was installed by admin) I removed it and voila, I stop getting the CreateRiaClientFilesTask error. It seems there are a million different reasons for this happening but this has definitely worked for me, I'm now just using the bog standard Microsoft Antivirus that's not installed on Windows but can be found if you follow your nose in the Windows 7 security section where it says No Antivirus Installed.

    0 讨论(0)
  • 2021-02-12 16:12

    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.

    0 讨论(0)
  • 2021-02-12 16:14

    Close VS, delete files in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\. Restart VS, Build solution. By the way; I got the problem after a bluescreen.

    0 讨论(0)
  • 2021-02-12 16:14

    I found restarting VS in Administrator mode was all that was required.

    0 讨论(0)
  • 2021-02-12 16:16

    After installing WCF RIA V1.0 SP1 problem just disappear.

    0 讨论(0)
提交回复
热议问题