## Impossible CLASS_NOT_REG on Windows XP?

### Visual Confirmation

To prevent automated access and spam, you are required to confirm that you are human. Please place a check mark next to all images of monkeys or apes. If you cannot see any images, please contact the Board Administrator.

Smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review

### Re: Impossible CLASS_NOT_REG on Windows XP?

Thank you very much, this seems to have solved the problem, at least on my test computers. I'll get it tested on some other computers too, and I'll come back if there's problems.

### Re: Impossible CLASS_NOT_REG on Windows XP?

Can you try to make two .BAT files in MM folder containing:
MMRegisterCOM.bat -> "MediaMonkey.exe /elevate /regcomserver"
MMUnRegisterCOM.bat -> "MediaMonkey.exe /elevate /unregcomserver"

Please let me know the results either here or in Ticket.

### Re: Impossible CLASS_NOT_REG on Windows XP?

I assume this is the reason:

- Starting MediaMonkey as administrator: The default user on XP is an administrator. Run As -> myself (Administrator) did nothing.

Although I can't see why that would fry the API registration.

And I haven't tried on Windows 2000 or earlier, so it may be everything before Vista for all I know.

### Re: Impossible CLASS_NOT_REG on Windows XP?

Hmmm that looks right. And that Installer trick of saying Yes at the end of the Installation usually fixes any issues for me. I am stumped as to why only Win XP SP3 is having the issue.

### Re: Impossible CLASS_NOT_REG on Windows XP?

Thanks for giving me another thing to try. Unfortunately, it does not seem to work either. I have tried on several computers, and it looks like Windows XP does not like the MediaMonkey API at all.

Any other suggestions are welcome.

If it helps, this is how I connect to the API (I guess there aren't many other ways to do it):
Code: Select all
SDBApplication SDBA = new SongsDB.SDBApplication();

### Re: Impossible CLASS_NOT_REG on Windows XP?

One thing I always do is install MM and at the end of the Installation when it says "Launch MediaMonkey Now?" say YES. That reregisters the COM object in the registry properly. I have found this has fixed 99% of my issues related to SDBApplication class in coding.

### Impossible CLASS_NOT_REG on Windows XP?

Hi there!

I'm developing a C# application which uses SDBApplication to communicate with MediaMonkey. It works nicely on all computers I have tested it on, except Windows XP Home (and possibly other versions of XP, which I haven't tried).

When running the application there, I get the well known CLASS_NOT_REG exception, which should be easy enough to resolve. It is on newer OSes, at least. However, on XP, nothing seems to work.

What I have tried:
- Reinstalling MediaMonkey (and checking "Start MediaMonkey now" at the end): Did nothing.
- Starting MediaMonkey as administrator: The default user on XP is an administrator. Run As -> myself (Administrator) did nothing.
- Starting my application as administrator, both with and without MediaMonkey running (if it isn't running it starts when my app tries to connect). Did nothing.
- Rebooting countless times after having tried all the other options here. Did nothing.
- Installing Windows Script 5.6: Already installed on SP3. Did nothing.
- Regsvr32 path\to\MediaMonkey.exe
- Regsvr32 path\to\MediaMonkey (non-skinned).exe
- Regsvr32 path\to\MediaMonkeyCOM.exe (MediaMonkeyCOM.exe did not exist. Seems it isn't installed on XP? I copied it from my Windows 8 installation and tried anyway.)

The Regsvr32 queries returns "The module 'path\MediaMonkey.exe' was loaded but the entry-point DllRegisterServer was not found. Make sure that 'path\MediaMonkey.exe' is a valid DLL or OCX file and then try again". This is the same error message I get when trying to use Regsvr32 on my Windows 8 installation, but on Windows 8 all I need to do is to launch MediaMonkey as administrator, and it fixes itself.

This is on a completely new installed system with only Windows XP SP3, all Windows updates for XP, and MediaMonkey installed, so nothing else can interfere.

Any suggestions to what more I can try?

Top