If you are getting the following error while compiling Silverlight project,
You can try to delete the
obj
folder under the current project folder and compile again.
Error 43 The “CleanRiaClientFilesTask” task failed unexpectedly.
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path)
at System.IO.Path.GetDirectoryName(String path)
at Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.b__0(String f)
at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
at System.Linq.OrderedEnumerable`1.d__0.MoveNext()
at Microsoft.ServiceModel.DomainServices.Tools.CleanRiaClientFilesTask.DeletePreviouslyWrittenFiles(Boolean isLiveIntellisense)
at Microsoft.ServiceModel.DomainServices.Tools.CleanRiaClientFilesTask.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) Datacom.CorporateSys.SL.Project