Jump to content

Build Theme!
  •  
  • Infected?

WE'RE SURE THAT YOU'LL LOVE US!

Hey there! :wub: Looks like you're enjoying the discussion, but you're not signed up for an account. When you create an account, we remember exactly what you've read, so you always come right back where you left off. You also get notifications, here and via email, whenever new posts are made. You can like posts to share the love. :D Join 93081 other members! Anybody can ask, anybody can answer. Consistently helpful members may be invited to become staff. Here's how it works. Virus cleanup? Start here -> Malware Removal Forum.

Try What the Tech -- It's free!


Photo

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


  • Please log in to reply
1 reply to this topic

#1 jaymataji

jaymataji

    New Member

  • New Member
  • Pip
  • 1 posts

Posted 08 July 2010 - 04:48 AM

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.

Edited by Ztruker, 08 July 2010 - 05:14 PM.

    Advertisements

Register to Remove


#2 appleoddity

appleoddity

    SuperMember

  • Tech Team
  • 3,071 posts
  • Interests:Eating, Movies, Family, Church, Music, Volleyball, Softball, Poker, Computers, Electronics, Reading.

Posted 08 July 2010 - 07:07 PM

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.

The help you have been given is free. If you have been happy with our help please consider donating to support this forum.

If you would like to say thanks for the help I have given you please View My Profile and Leave a Comment.
Your encouragement is welcome.

Related Topics



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users