我就勾了下這個 就出這問題了 現在取消也沒用了 徹底悲劇
錯誤 1 “CreateRiaClientFilesTask”任務意外失敗。System.Web.HttpException (0x80004005): 未能加載文件或程序集“CHCGIS.Web”或它的某一個依賴項。試圖加載格式不正確的程序。 ---> System.Configuration.ConfigurationErrorsException: 未能加載文件或程序集“CHCGIS.Web”或它的某一個依賴項。試圖加載格式不正確的程序。 ---> System.BadImageFormatException:
未能加載文件或程序集“CHCGIS.Web”或它的某一個依賴項。試圖加載格式不正確的程序。 在 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, Boolean forIntrospection) 在 System.Reflection.Assembly.Load(String assemblyString) 在 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String http://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(Type type, Boolean failIfExists) 在 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() 在 Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost,
TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) CHCGIS
網上也沒找到類似的問題,悲劇啊
弄了半天 最後通過羣友 找到了解決辦法
修改爲X86就不報錯了
見供參考,不一定每個人都有效。