The “CreateRiaClientFilesTask” task failed unexpectedly
Posted by Viral Sarvaiya on February 14, 2012
Some day ago, when i build my project i get unexpected error.
Error 3 The “CreateRiaClientFilesTask” task failed unexpectedly.
System.Web.HttpException (0×80004005): Could not load file or assembly ‘FileHelpers.DataLink’ or one of its dependencies. Access is denied. —> System.Configuration.ConfigurationErrorsException: Could not load file or assembly ‘FileHelpers.DataLink’ or one of its dependencies. Access is denied. —> System.IO.FileLoadException: Could not load file or assembly ‘FileHelpers.DataLink’ or one of its dependencies. Access is denied……….
Sometime that happen when Visual studio cannot access files. so have to remove Temporary file.
I get simple solution from goggling, just close visual studio and reopen, and if Visual studio has no administrator rights then please right click to visual studio icon and choose “Run as a Administrator”.
Then re-build project and problem solved.
Thanks.



Sahil said
I got the same error. I have tried the steps what you mentioned. But its not working for me.
Even I google it also and I deleted the temporary files which placed at c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary
It works for first time but after a while I got same error again and the same thing not work for second time. Even I had restart the Computer.
I am stuck and not able to do any thing.
If you have any other idea than let me know ASAP.
Thanks Sahil Jani
Viral Sarvaiya said
i will try with both solution and its works fine for me.
or please check the issue of rights of that DLL file, or project can be read only. please check bin folder is read only or not.
Edison said
The createriaclientfilestask task failed unexpectedly
I had the problem for 2 weeks in vs2010 will un updating telerik menu and ready worked
Tuve el problema por 2 semas en le menu de vs2010 actualicé teleric y listo funcionado.
Edison said
Error –> “The createriaclientfilestask task failed unexpectedly”
VS 2010
Framework 3.5
Agregar IIS
SQL 2005 Full
Microsoft Silverlight 4 Developer Runtime
Microsoft Silverlight 4 Tools for Visual Studio 2010
Microsoft Silverlight 4 SDK
Microsoft Silverlight 4 Tools Package
WCF RIA Services RC
Telerik;
Tuve el problema por 2 semanas; la solución, en le menú de vs2010 actualizé telerik y listo funcionado
I had the problem for 2 weeks, the solution, we un updating vs2010 telerik menu and ready worked