Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deploying code to 64 bit os.

Status
Not open for further replies.

badmotorvision

Programmer
Oct 15, 2009
22
US
Sorry if double post. Im not sure I completed the first one correctly.
Wrote my little interface in vb.net with a4wcomex.dll
got everything working on my machine. Went to deploy to
the server and blam.
Server info
Windows 2003 x64 server
Server does have accpac 5.5a installed and running correctly.
I have verified that a4wcomex and a4wcomsr are registered
but this is the error message I get on session.init

"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)
 
Check to make sure that you have the same product update/service packs installed on your development machine. I've had to get OCX files from customers to complete customizations in the past.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top