Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

Error_32_The "CreateRiaClientFilesTask" task failed unexpectedly.

$
0
0

We have been developing a Silverlight application in Visual Studio 2010. For the last 2 years it has been building with no insurmountable problems. However, for the last two weeks, it has been failing with the following compilation error:

Error      6             The "CreateRiaClientFilesTask" task failed unexpectedly.

System.Web.HttpException (0x80004005): Could not load file or assembly 'OSIsoft.PITimeServer' or one of its dependencies.An attempt was made to load a program with an incorrect format. ---> System.Configuration.ConfigurationErrorsException: Could not load file or assembly 'OSIsoft.PITimeServer' or one of its dependencies. An attempt was made to load a program with an incorrect format. ---> System.BadImageFormatException: Could not load file or assembly 'OSIsoft.PITimeServer' or one of its dependencies. An attempt was made to load a program with an incorrect format.

   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

   at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

   at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)

   at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)

   at System.Reflection.Assembly.Load(String assemblyString)

   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

   --- End of inner exception stack trace ---

   at System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective)

   at System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory()

   at System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai)

   at System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig)

   at System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies()

   at System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded)

   at System.Web.Compilation.BuildManager.ExecutePreAppStart()

   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)

   at System.Web.Compilation.ClientBuildManager.EnsureHostCreated()

   at System.Web.Compilation.ClientBuildManager.CreateObject(Type type, Boolean failIfExists)

   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>d__20.MoveNext()    NetVisSolution

Looking on the Web, lots of people seem to have had this issue of the CreateRiaClientFilesTask failing and many and varied fixes have been suggested, none of which so far have worked for me. If you have any suggestions, they would be gratefully received.

Regards,

--- Alistair

Alistair Frith |Senior Software Engineer| Capula Ltd


Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>