PDA

View Full Version : "Invalid Class String" with new action


SamS
06-18-2007, 10:19 AM
Hi

I've just written a user action but when I try running it I get an "Invalid Class String" message.

The exact message is :-
Error creating custom action 'UnbreakerSetRef': Invalid class string"

I can't see anything different to some user actions I wrote a couple of years ago. The content of the "Action" file was very slightly different to the old ones but I've made sure the format of both is the same, but this made no difference.

My new action is correctly registered (as far as I can see).

THis is VBP 6.3

Any suggestions on where to start looking?

Thanks

Sam

kevina
06-18-2007, 10:30 PM
Either post here or send your .action file to support@kinook.com and we will take a look at it.

SamS
06-19-2007, 04:46 AM
Hi

Thanks... here's the .action

As I mentioned I modified it a little so that it looked the same as other .action files (which I created in the earlier version of VBP). This was mainly replacing single quotes with double etc. Note that it wasn't working BEFORE I made these edits.

Anyway, here it is.....

Sam

kevina
06-19-2007, 08:11 AM
The .action file works for me (I removed the reference to your dll and inserted some vbscript to test).

Apparently there is something wrong with your UnbreakerSetRefs.dll file. I would recommend that you create a stripped down version of this file (that maybe only shows a dialog), verify that it works, then incrementally add your functionality back in until the error is reproduced.

SamS
07-05-2007, 10:54 AM
Kevin

Sorry for the delay in getting back to you on this.... been swamped with other things and haven't had a chance to think about builds.


Anyway, thanks for looking at this. The solution was far too embarrasing to post here, but it's sorted.

Sam