水晶報表 關於錯誤未能負載檔案或程式集“CrystalDecisions.ReportAppServer.ClientDoc”或它的某一個依賴項。試圖載入格式不正確的程式

來源:互聯網
上載者:User

項目是一個師兄給我看的,在配置過程中的問題如下:

自己裝的系統是win7 64bit sp1,vs2010,先是安裝了CRforVS_redist_install_64bit_13_4,運行後錯誤如下:


錯誤是未能負載檔案或程式集“CrystalDecisions.ReportAppServer.ClientDoc”或它的某一個依賴項。試圖載入格式不正確的程式。  

說明: 執行當前 Web 請求期間,出現未處理的例外狀況。請檢查堆疊追蹤資訊,以瞭解有關該錯誤以及代碼中導致錯誤的出處的詳細資料。  

異常詳細資料: System.BadImageFormatException: 未能負載檔案或程式集“CrystalDecisions.ReportAppServer.ClientDoc”或它的某一個依賴項。試圖載入格式不正確的程式。

源錯誤:  

執行當前 Web 請求期間產生了未處理的例外狀況。可以使用下面的異常堆疊追蹤資訊確定有關異常原因和發生位置的資訊。   

程式集載入跟蹤: 下列資訊有助於確定程式集“CrystalDecisions.ReportAppServer.ClientDoc”未能載入的原因。


=== 預綁定狀態資訊 ===
日誌: 使用者 = wz-PC\wz
日誌: DisplayName = CrystalDecisions.ReportAppServer.ClientDoc
 (Partial)
警告: 為程式集提供了部分綁定資訊:
警告: 程式集名稱: CrystalDecisions.ReportAppServer.ClientDoc | 域 ID: 2
警告: 當僅提供者集顯示名稱的一部分時,將發生部分綁定。
警告: 這可能導致聯編程式載入錯誤的程式集。
警告: 建議為程式集提供完全指定的文字標識,
警告: 並由簡單名稱、版本、地區性和公開金鑰標記組成。
警告: 有關此問題的詳細資料和常見解決方案,請參見白皮書 http://go.microsoft.com/fwlink/?LinkId=109270。
日誌: Appbase = file:///E:/xxw/kuangshan/
日誌: 初始 PrivatePath = E:\xxw\kuangshan\bin
調用程式集: (Unknown)。
===
日誌: 此綁定從 default 載入上下文開始。
日誌: 正在使用應用程式設定檔: E:\xxw\kuangshan\web.config
日誌: 使用主機設定檔:  
日誌: 使用 C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config 的電腦設定檔。
日誌: 此時沒有為引用應用策略(私人、自訂、分部或基於位置的程式集綁定)。
日誌: 嘗試下載新的 URL file:///C:/Users/wz/AppData/Local/Temp/Temporary ASP.NET Files/root/f5a1316b/2efac900/CrystalDecisions.ReportAppServer.ClientDoc.DLL。
日誌: 嘗試下載新的 URL file:///C:/Users/wz/AppData/Local/Temp/Temporary ASP.NET Files/root/f5a1316b/2efac900/CrystalDecisions.ReportAppServer.ClientDoc/CrystalDecisions.ReportAppServer.ClientDoc.DLL。
日誌: 嘗試下載新的 URL file:///E:/xxw/kuangshan/bin/CrystalDecisions.ReportAppServer.ClientDoc.DLL。
錯誤: 未能完成程式集的安裝(hr = 0x8007000b)。探測終止。

 

堆疊追蹤:  


[BadImageFormatException: 未能負載檔案或程式集“CrystalDecisions.ReportAppServer.ClientDoc”或它的某一個依賴項。試圖載入格式不正確的程式。]
  System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
  System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean
throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +39
  System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean
suppressSecurityChecks) +132
  System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +144
  System.Reflection.Assembly.Load(String assemblyString) +28
  System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +46

[ConfigurationErrorsException: 未能負載檔案或程式集“CrystalDecisions.ReportAppServer.ClientDoc”或它的某一個依賴項。試圖載入格式不正確的程式。]
  System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +618
  System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +209
  System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
  System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +178
  System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +94
  System.Web.Compilation.BuildManager.CallPreStartInitMethods() +332
  System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters
hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +677

[HttpException (0x80004005): 未能負載檔案或程式集“CrystalDecisions.ReportAppServer.ClientDoc”或它的某一個依賴項。試圖載入格式不正確的程式。]
  System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9088828
  System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
  System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +258

幾經嘗試失敗後,我又下了一個CRforVS_13_0_4(288M)(地址:http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp),調試後成功。


(個人愚見:對這個東西不太懂,我覺得 CRforVS_redist_install_64bit_13_4是為了引入水晶報表所需要的dll庫,而CRforVS_13_0_4除了引入所需的庫之外,還有這些庫運行環境的配置。這些純屬是個人愚見,肯定會貽笑大方,望對這些知識瞭解多的同胞們不惜賜教啊)


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.