Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: COM VS2010
Hi Team,
 
I have converted COM dlls in VS6.0 to VS2010. while debugging the COM dll code by giving C# GUI as the executable. Getting the following Exception.
 
"Retrieving the COM class factory for component with CLSID {uuid...} failed due to the following error: 80040154 Class not registered (Exception from HRESULT 0x80040154 REGDB_E_CLASSNOTREG));"
 
This was coming when calling constructor of the class in SLCOREINTERFACELib
objCoreinterface = new SerCoreInterfce();
where objCoreinterface is null and jumping to the above exception
 
When i try to register the COM dll using regsvr32 is giving Dll register successful. But i could not able to see the entries in REGEDIT.
 
How do i solve this issue. Is there any possibility that i can delete all the references to the COM dll in Registry and re-register again.Will that solve the issue?
 
Your quick help will be appreciated.
 
Thanks.
Posted 24-Sep-12 4:35am
Edited 24-Sep-12 4:56am
v2

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Try setting Target Platform to x86:
In VS - project properties - in the Build tab - platform target =X86
  Permalink  
Comments
Member 8132177 at 25-Sep-12 1:46am
   
Thank you for the information but My PC is windows XP 32 bit. I have the Linker-Advanced -Target Machine set to X86 platform. I have checked the configuration manager setting where I have selected Win32 for build option. But still it is not working. Looking for some more suggestions.
While building I am getting the following output
InitializeBuildStatus:
Creating ".\ReleaseUMinDependency\SLCoreInterface.unsuccessfulbuild" because "AlwaysCreate" was specified.
 
but at the end
 
Build succeeded.
 
Time Elapsed 00:00:36.21
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
 
Will that cause any problem registering the dlls?
 
When i checked the Registry in REGEDIT : I could not find Inprocserver23/PROGID /TypeLIb details for this COM dll.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 304
1 Sergey Alexandrovich Kryukov 295
2 Shweta N Mishra 216
3 Maciej Los 210
4 PIEBALDconsult 184
0 OriginalGriff 7,630
1 Sergey Alexandrovich Kryukov 7,022
2 DamithSL 5,586
3 Manas Bhardwaj 4,946
4 Maciej Los 4,525


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 24 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100