Impossible CLASS_NOT_REG on Windows XP?

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Impossible CLASS_NOT_REG on Windows XP?

Postby Degeim » Sun May 27, 2012 7:00 am

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?
Last edited by Degeim on Fri Jun 08, 2012 2:37 am, edited 1 time in total.
Degeim
 
Posts: 39
Joined: Fri Sep 02, 2011 3:34 am
Location: Trondheim, Norway

Re: Impossible CLASS_NOT_REG on Windows XP?

Postby Melloware » Sun Jun 03, 2012 5:02 pm

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.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
MonkeyTunes - DACP Server for MediaMonkey
Intelliremote - Take Back Control of your HTPC!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware
 
Posts: 329
Joined: Mon Aug 18, 2008 9:46 am
Location: Philadelphia, PA, US

Re: Impossible CLASS_NOT_REG on Windows XP?

Postby Degeim » Wed Jun 06, 2012 4:23 pm

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();
Degeim
 
Posts: 39
Joined: Fri Sep 02, 2011 3:34 am
Location: Trondheim, Norway

Re: Impossible CLASS_NOT_REG on Windows XP?

Postby Melloware » Wed Jun 06, 2012 6:30 pm

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.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware Inc.
MonkeyTunes - DACP Server for MediaMonkey
Intelliremote - Take Back Control of your HTPC!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Melloware
 
Posts: 329
Joined: Mon Aug 18, 2008 9:46 am
Location: Philadelphia, PA, US

Re: Impossible CLASS_NOT_REG on Windows XP?

Postby Degeim » Thu Jun 07, 2012 2:39 am

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.
Degeim
 
Posts: 39
Joined: Fri Sep 02, 2011 3:34 am
Location: Trondheim, Norway

Re: Impossible CLASS_NOT_REG on Windows XP?

Postby Peke » Mon Jun 18, 2012 8:02 pm

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.
Best regards,
Pavle
MM Core Developer and Fan (check HAPPYMONKEYING Site)
Image
Image
Peke
 
Posts: 7551
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia

Re: Impossible CLASS_NOT_REG on Windows XP?

Postby Degeim » Wed Jun 20, 2012 1:34 am

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.
Degeim
 
Posts: 39
Joined: Fri Sep 02, 2011 3:34 am
Location: Trondheim, Norway


Return to Addons developer forum

Who is online

Users browsing this forum: No registered users and 0 guests