“CreateRiaClientFilesTask” task failed unexpectedly

狂风中的少年 提交于 2019-12-04 02:38:34

Just had the same problem - turns out that something changed the permissions on the "Temporary ASP.NET Files" folder. It's easy to test. Click the ASP.Net Configuration in solution explorer for the .web project. It'll likely throw an access denied error and point you to the temp asp.net files folder. If so, open web.config in your .web project and add a tempDirectory directive to compilation, like so:

<configuration>
    <system.web>
        <compilation debug="true" targetFramework="4.0" tempDirectory="C:\<SomeDirectoryYouFullyControl>\Temporary ASP.Net Files" />
    </system.web>

Rebuild your .web project and update your service reference in your silverlight project.

In my case Debug build was working, but Release wasn't.

Actual problem was that for highlighted problem-project it had x64 in Mixed Platforms Platform instead of Any CPU

I spent like 2.5 hours on this so hope it helps to someone

I had a similar issue. My web app had an issue with the OutputPath. I fixed it by going to the project Properties -> Build -> OutputPath and changing the OutputPath of my project from "bin\Debug\" back to the default "bin\".

Open your bin folder and delete anything that is left inside.Rebuild your project -- that's what worked for me.My build configs were all set to Debug ,any CPU.

I had this error, tried many solutions and dind't seem to get fixed, until I manually erased all files from my local mapping folder and downloaded them again, restarted the computer and finally compiled!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!