The "CreateRiaClientFilesTask" task failed unexpectedly.


I started getting this error message, after installing SP1 for Visual Studio 2010.

The “CreateRiaClientFilesTask” task failed unexpectedly.
System.AppDomainUnloadedException: Attempted to access an unloaded AppDomain.
   at System.IDisposable.Dispose()
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies()
   at Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.ExecuteInternal()
   at Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) 

It turns out that some sort of locking is the culprit, so simply shut down the ASP.NET Development Server and rebuild your solution.

—————————— UPDATE ———————————–

If the ASP.NET Development Server hasn’t been started yet, or you are using IIS, you need to close down VS 2010, and restart it.

Advertisements