我很难在20个用户安装中重现错误。这是一个.net Windows应用程序,2005年在XP上运行的VB.Net。打开窗口后,我们收到错误:
Could not load file or assembly 'Infragistics2.Win.UltraWinChart.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' or one of its dependencies. Element not found. (Exception from HRESULT: 0x80070490) *****ClearTrac ***** at ClearTrac.ucNav.InitializeComponent() at ClearTrac.ucNav..ctor() at ClearTrac.frmPortfolio.InitializeComponent() ...
这也适用于ReportViewer dll和其他一些infragistics dll。 我打开了Bind Logging,第一个绑定没问题,但是当我收到错误时,Appbase已被设置为空白:
*** Assembly Binder Log Entry (2/20/2009 @ 3:41:10 PM) *** The operation failed. Bind result: hr = 0x80070490. Element not found. Assembly manager loaded from: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll Running under executable C:\Documents and Settings\rdelaney\Local Settings\Apps\2.0\ZZ09GJK6.2VY\GPRTP6CM.GOX\clea..tion_8055aae51715540e_0001.0004_0a540274bbdc609c\ClearTrac.exe --- A detailed error log follows. === Pre-bind state information === LOG: User = CAM\rdelaney LOG: DisplayName = Microsoft.ReportViewer.WinForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (Fully-specified) LOG: Appbase = LOG: Initial PrivatePath = NULL LOG: Dynamic Base = NULL LOG: Cache Base = NULL LOG: AppName = ClearTrac.exe` Calling assembly : ClearTrac, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null. === LOG: This bind starts in default load context. LOG: Using application configuration file: C:\Documents and Settings\rdelaney\Local Settings\Apps\2.0\ZZ09GJK6.2VY\GPRTP6CM.GOX\clea..tion_8055aae51715540e_0001.0004_0a540274bbdc609c\ClearTrac.exe.config LOG: Using machine configuration file from c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config. ERR: Unrecoverable error occurred during pre-download check (hr = 0x80070490).
有什么想法吗?
答案 0 :(得分:0)
您应该检查有问题的计算机上的Microsoft.ReportViewer.WinForms是在GAC还是在应用程序目录中。
如果不是,则应在problematiuc计算机上安装Microsoft Report Viewer可再发行组件。
答案 1 :(得分:0)
我们发现此错误仅在安装了SP1或SP2的.net Framework下发生。安装裸.net框架2.0后,就不会发生这种情况。