This is a read-only archive. No new posts or registrations. Privacy Page
Software

Errors while running 32 bit .NEt application on 64 bit windows XP

1 min read

This thread's last reply is from . Advice, software, and links below may be out of date — treat specific steps and download links with caution.

Looking for the outcome? Ask AI

Hi All,

We are testing 32 bit windows application(developed in c#) in 64 bit windows XP.
This application uses COM wrapper(generated using tlbimp) and resouce file

when we run this application on 64 bit OS, application crashed we get following error


[System.TypeInitializationException] = {"The type initializer for 'CampaignRoleEditor.Classes.clsCommon' threw an exception."}
[System.Runtime.InteropServices.COMException] = {"Retrieving the COM class factory for component with CLSID {A7F45818-ED1F-4FB1-8808-DE609C5BA543} failed due to the following error: 80040154."}

Thanks in advance….

Reason for Edit: Moved to the Programming and Design forum.
The research I have done suggests that the DLL file that is associated with that CLSID has not been registered properly or it is a problem specific to x64 operating systems because your program has not been built in 32-bit mode. From what I read, if it is a .NET program it will have a 64-bit mode enabled and this is what is messing things up. You need to force the program to build in a 32-bit only mode. It will run in 32-bit mode even on a 64-bit operating system. So, try setting your Target CPU to x86 instead of AnyCPU. It is in the project's properties.

Ask AI

AI can make mistakes. Check the cited posts. Archived advice can be out-of-date

Don't include personal information. Questions and selected public posts go to OpenAI. About Ask AI