2011-09-16 109 views
2

我正在VSS 2010,.Net 4.0和Widows 7(64位)上構建應用程序。檢索COM類工廠

我正在使用第三方組件來加密和解密密碼。

我引用了我的應用程序中的第三個paty dll並編寫了代碼。

當我想我的綜合VSS Web服務器上運行,這是給下面的錯誤,

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {B72DF070-28A4-11D3-BF19-009027438003} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at EncryptProject.HashString.hashstring(String password, String pwsalt)

但是,當我將這些代碼的dll到生產服務器時,它是工作的罰款。

我搜索通過互聯網和得到一些建議的目標更改爲平臺,以86,64 ...

我試過所有可能的方式,但沒有用。

如果有人幫我解決這個問題,那將會很棒。

這樣我才能在本地系統中調試我的應用程序。

由於提前,

問候..

回答

4
  1. 是您的服務器在x86機器?
  2. 這是第三部分COM服務器編譯爲x86?

如果這些問題的答案是肯定的然後剛剛編譯你的代碼,而不是86的64位(這是最可能的原因),它應該工作。

相關問題