Welcome to your place for tech questions! ( Log In or Join today ) Get answers from experts today. (it's 100% free) Virus removal forum

 
Reply to this topicStart new topic
> Errors while running 32 bit .NEt application on 64 bit windows XP
jaymataji
post Jul 8 2010, 04:48 AM
Post #1


New Member
*

Group: New Member
Posts: 1
Joined: 8-July 10
Member No.: 93,461
Operating System: Windows 7 and Windows 2008



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.

This post has been edited by Ztruker: Jul 8 2010, 05:14 PM
Go to the top of the page
 
+Quote Post
appleoddity
post Jul 8 2010, 07:07 PM
Post #2


SuperMember
Group Icon

Group: Tech Team
Posts: 2,860
Joined: 7-January 09
From: Flint, Michigan
Member No.: 83,485
Operating System: Windows 7, Windows XP, Server 2003/2008, Linux



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.

Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


RSS Time is now: 24th May 2013 - 06:56 PM
Advertisements do not imply our endorsement of that product or service. The forum is run by volunteers who donate their time and expertise. We make every attempt to ensure that the help and advice posted is accurate and will not cause harm to your computer. However, we do not guarantee that they are accurate and they are to be used at your own risk.
Member site: Alliance of Security Analysis Professionals | UNITE Against Malware
© Geeks to Go, Inc. | All Rights Reserved | Privacy Policy