“CreateRiaClientFilesTask” task failed unexpectedly

This error has started occuring when attempting to build my VS 2010 Silverlight project after some minor changes to my RIA domain services, which are hosted within the Silverlight website application. There appears to be no reason for this error and I cannot understand the access denied part of the error.

Things I have tried:

1) Full clean of all projects in the solution and re-build 2) Deletion of all temporary ASP.Net files from the framework folder 3) Removal of linked RIA services from project properties from the class library that is failing, clean, re-build and then re-add linked RIA services

Any advice on where to go from here would be much appreciated:

Error 21 The "CreateRiaClientFilesTask" task failed unexpectedly. System.Web.HttpException (0x80004005): не удалось загрузить файл или сборку Business, Version = 1.0.0.0, Culture = нейтральный, PublicKeyToken = null или одну из его зависимостей. В доступе отказано. ---> System.Configuration.ConfigurationErrorsException: не удалось загрузить файл или сборку Business, Version = 1.0.0.0, Culture = нейтральный, PublicKeyToken = null или одну из их зависимостей. В доступе отказано. ---> System.IO.FileLoadException: не удалось загрузить файл или сборку Business, Version = 1.0.0.0, Culture = нейтральный, PublicKeyToken = null или одну из их зависимостей. В доступе отказано. ---> System.IO.FileLoadException: не удалось загрузить файл или сборку Business или одну из ее зависимостей. В доступе отказано.

--- Конец трассировки стека внутреннего исключения --- в System.Reflection.RuntimeAssembly._nLoad (AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark и stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) в System.Reflection.RuntimeAssembly.nLoad (AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark и stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) в System.Reflection.RuntimeAssembly.InternalLoadAssemblyName (AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark и stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) в System.Reflection.RuntimeAssembly.InternalLoad (String assemblyString, Evidence assemblySecurity, StackCrawlMark и stackMark, логическим значением для Introspection) в System.Reflection.Assembly.Load (String assemblyString) в System.Web.Configuration.CompilationSection.LoadAssemblyHelper (String assemblyName, Boolean starDirective) --- Конец трассировки внутреннего стека исключений --- в System.Web.Configuration.CompilationSection.LoadAssemblyHelper (String assemblyName, Boolean starDirective) в System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory () в System.Web.Configuration.CompilationSection.LoadAssembly (AssemblyInfo ai) в System.Web.Compilation.BuildManager.GetReferencedAssemblies (CompilationSection compConfig) в System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies () в System.Web.Compilation.BuildManager.CallPreStartInitMethods () в System.Web.Hosting.HostingEnvironment.Initialize (ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) в System.Web.Compilation.ClientBuildManager.EnsureHostCreated () в System.Web.Compilation.ClientBuildManager.CreateObject (тип типа, логическое значение failIfExists) в Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.CreateSharedTypeService (ClientBuildManager clientBuildManager, IEnumerable`1 serverAssemblies, средство ведения журнала ILogger) в Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies () в Microsoft.ServiceModel.DomainServices.Tools.CreateRiaClientFilesTask.ExecuteInternal () в Microsoft.ServiceModel.DomainServices.Tools.RiaClientFilesTask.Execute () в 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) Insurer.Analytics.Common

9
задан Chris Newton 15 December 2010 в 13:24
поделиться