Having error when vb.net application is used in different OS

0

A .net application is used at XP OS and everything is working fine until the OS is changed to Windows 7. At first have an error "Retrieving the COM class factory for component with CLSID {4E084A82-8FE7-11D0-9125-0004AC3617E1} failed due to the following error: 80040154". I checked the registry and the reg file is missing so i input the file.

But now had a new error again which is "System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))".

The application is to connect to an IBM peak system and run some Macros from there.

Please advise me on this as I have been digging in this for quite long already and giving me headache.

.net
registry
asked on Stack Overflow Sep 21, 2012 by Smith

2 Answers

1

You sure there was not some kind of pre-requisite install for this to run on the XP machine? It looks like maybe the application has a reference for a COM iterop that does not exist on the Windows 7 machine. I would recommend firing up Visual Studio and examining what references are included in the project. Possibly you installed something to support the IBM peak system that deploys the necessary COM component.

answered on Stack Overflow Sep 21, 2012 by regex
0

Is your application compiling as 'Any CPU'? It's a possibility that your Windows 7 64bit and your XP is running 32bit, which can cause havoc with COM objects.

answered on Stack Overflow Sep 21, 2012 by StyxRiver

User contributions licensed under CC BY-SA 3.0