Hi,
I am tryin gto update Item Pricing, everything works very well on my machine, but when I tryied to deploy it to the server which Accpac is installed on, I got the following error---
"System.InvalidCastException: Unable to cast COM object of type 'AccpacCOMAPI.AccpacSessionClass' to interface type 'AccpacCOMAPI.IAccpacSession'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B3B13603-A675-11D2-9B95-00104B71EB3F}' failed due to the following error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at AccpacCOMAPI.AccpacSessionClass.Init(String ObjectHandle, String AppID, String ProgramName, String AppVersion) at Accpac_Interface.PurchaseOrder..ctor(w_test aWin)"
I have even copied the OCX from the server to my PC, then built my program and installed it on the server, but still same problem.
Anyone has any ideal? Thanks in advance!
I am tryin gto update Item Pricing, everything works very well on my machine, but when I tryied to deploy it to the server which Accpac is installed on, I got the following error---
"System.InvalidCastException: Unable to cast COM object of type 'AccpacCOMAPI.AccpacSessionClass' to interface type 'AccpacCOMAPI.IAccpacSession'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{B3B13603-A675-11D2-9B95-00104B71EB3F}' failed due to the following error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)). at AccpacCOMAPI.AccpacSessionClass.Init(String ObjectHandle, String AppID, String ProgramName, String AppVersion) at Accpac_Interface.PurchaseOrder..ctor(w_test aWin)"
I have even copied the OCX from the server to my PC, then built my program and installed it on the server, but still same problem.
Anyone has any ideal? Thanks in advance!