2013-02-23 10 views
0

因此,我得到了這個文件,它應該將訪問數據庫轉換爲SQL(對於稱爲PROFFIX的特定程序,但這並不重要...)。但是,如果我嘗試運行它,它產生以下錯誤:無法加載文件或程序集DevComponents.DotNetBar2

Fehler beim Starten von PROFFIX dbConvert! 

(錯誤運行PROFFIX dbConvert)

System.IO.FileLoadException: Could not load file or assembly 
'DevComponents.DotNetBar2, Version=10.3.0.4, Culture=neutral, 
PublicKeyToken=7eb7c3a35b91de04' or one of its dependencies. The located 
assembly's manifest definition does not match the assembly reference. 
(Exception from HRESULT: 0x80131040) 
File name: 'DevComponents.DotNetBar2, Version=10.3.0.4, Culture=neutral, 
PublicKeyToken=7eb7c3a35b91de04' 
    at dbconvert.frmHaupt.InitializeComponent() 
    at dbconvert.frmHaupt..ctor() 
    at dbConvert.pxDbConvertFkt.Main() 

WRN: Assembly binding logging is turned OFF. 
To enable assembly bind failure logging, set the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. 
Note: There is some performance penalty associated with assembly bind failure 
logging. 
To turn this feature off, remove the registry value 
[HKLM\Software\Microsoft\Fusion!EnableLog]. 

因此,任何一個想法究竟是什麼不對的DevComponents.DotNetBar2 ,在哪裏我可以找到解決這個問題的方法?

回答

0

您的應用程序構建的控件版本與可執行文件附帶的控件版本不同,或DotNetBar完全不包含在內。您必須始終包含在您的應用程序編譯的DotNetBar的完全相同版本的可執行文件中。 .NET Framework始終綁定到編譯時使用的彙編應用程序的確切版本。

相關問題