none
Error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

    Question

  • Hello everyone!

    Prior to posting I searched this forum and google, and found similar topics but nothing that exactly fit or worked to solve my problem. The problem is this:

    I have an application that runs fine in Visual Studio. I can also run it by browsing to the location where it is built to and run the .exe file. If however I either copy those files to another computer or actually publish the application and install it on another computer, it does not work. First time around, I tried opening it on another computer and just got a very generic error like "[Application Name] has failed to start" or something like that. After searching around, I modified the code with a try/catch on the part that seemed to be causing the error. Now when trying to run on a different computer I get a message like this:

    "Error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

    The program includes a .ocx component from an SDK, but I have included that file in the same directory and registered in manually with regsvr32 successfully but still no go. After searching further on google, I came across the program "Dependency Walker", but when I run it on my application it discovers so many DLL files, most of which seem to be default windows/system32. The SDK I am using also includes an additional two .DLL files, which I also included in the publish directory. I also tried to manually register those but when I do I get "The module '[module name].dll' was loaded but the entry-point DllRegisterServer was not found." How do I know which components I need to specifically provide, and more importantly how do I know which one is causing the problem here? Anybody have any advice about this problem? Thank you so much!

    Thursday, September 23, 2010 12:50 AM

Answers

All replies

  • "Error: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"

     "The module '[module name].dll' was loaded but the entry-point DllRegisterServer was not found." How do I know which components I need to specifically provide, and more importantly how do I know which one is causing the problem here? Anybody have any advice about this problem? Thank you so much!

    The error indicates that the module.dll is not valid COM dll or ocx file that need to be registered. What regsvr32 does is that, it look for "DllRegisterServer" string at entry point for ocx or dll file.

    Do you try to register the ocx file on the target (client) machine? if not , try to do so because the system look for the file from the registered COM ocx or dll list in the system registry where they listed.

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Thursday, September 23, 2010 3:21 AM
  • Hi Kaymaf,

     

    Thank you for your response. I did try registering the DLL and OCX files, which is where I got that error: "The module '[module name].dll' was loaded but the entry-point DllRegisterServer was not found." Still stumped.. do you have any other suggestions? Thanks!

    Thursday, September 23, 2010 6:16 PM
  • Is the target machine 32 or 64 bit system?. That may be the issue because most of the activex are still in 32-bit.

    Also, on windows Vista / 7, try to resgister the file as administrator

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Friday, September 24, 2010 10:40 AM
  • Hi there,

    I also have a very similar problem, currently i have my VS project compiling and running perfectly on a windows 32-bit vista business edition, i have tried to transfer it to a brand new laptop running a windows 7 64-bit home edition and I am having problems loading the flash player, the project does not even compile and I have tried installing the latest version for flash player.

    I am getting the "COM exception was unhanded" with Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

    Any help will be extremely appreciate it!

    Sunday, September 26, 2010 5:57 AM
  • Hi there,

    I also have a very similar problem, currently i have my VS project compiling and running perfectly on a windows 32-bit vista business edition, i have tried to transfer it to a brand new laptop running a windows 7 64-bit home edition and I am having problems loading the flash player, the project does not even compile and I have tried installing the latest version for flash player.

    I am getting the "COM exception was unhanded" with Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

    Any help will be extremely appreciate it!

    As far as i know, adobe does support 64-bit flash COM for now. if you want to run the 32-bit COM flash on 64-bit, you needs to make your program target 32-bit (X86). Take a look at this link for setting http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvb/thread/27e98a7c-bfa4-43ae-87d7-ca153cac7546/

    kaymaf


    CODE CONVERTER SITE

    http://www.carlosag.net/Tools/CodeTranslator/.

    http://www.developerfusion.com/tools/convert/csharp-to-vb/.

    Sunday, September 26, 2010 11:15 AM