User Registered Event Handler Problem

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/19/2010 5:55:51 PM
Gravatar
Total Posts 20

User Registered Event Handler Problem

I wrote some code to capture a session variable that sets an association between a user and an affiliate. However, I'm having a problem with the custom userregisteredhandler. I used the documentation for adding a custom user registered handler. I setup the config file exactly as described. I also setup the post build events & made sure that everything was going where it was suppose to go but...

 

it gives me the following error:

"Could not load type 'mycustomnamespace.SetupAffiliateUserRegisteredHandler' from assembly 'mycustomnamespace.Business'."

 

This is the last thing I need to get running so my subscriber module & custom cart module will run for my client.

 

Thanks in Advance

Des

3/20/2010 6:43:21 AM
Gravatar
Total Posts 18439

Re: User Registered Event Handler Problem

If it can't load the type then there is an error in the config file for your handler or else the dll  is not in the bin.

Are you sure that mycustomnamespace.SetupAffiliateUserRegisteredHandler is the correct fully qualified type name of your handler?

Does it exist in mycustomnamespace.Business.dll and does mycustomnamespace.Business.dll exist in your Web/bin folder?

Hope it helps,

Joe

3/21/2010 11:36:15 AM
Gravatar
Total Posts 20

Re: User Registered Event Handler Problem

Ok, I got that figured out but I now need to know how I can capture the new user's userGuid because apparently it doesn't exist yet in this context.

3/23/2010 6:50:31 AM
Gravatar
Total Posts 18439

Re: User Registered Event Handler Problem

Hi,

The user is passed as part of the UserRegisteredEventArgs, so you can access the userGuid like this:

e.SiteUser.UserGuid

Not sure why you think it does not exist yet in this context, when I step through the code for the included DoNothingUserEventRegisteredHandler I can see the siteuser and inspect the userGuid.

Hope it helps,

Joe

3/23/2010 2:51:43 PM
Gravatar
Total Posts 20

Re: User Registered Event Handler Problem

Thank you so much Joe!

I actually opened my eyes and looked at it again and was able to catch that. I'm nearly done with a 3 different custom modules tied to an ecommerce concept from hard goods and subscriptions.

I'm going to work on a couple of other ecommerce ideas, registerable events, billable accounts and downloadable products in the coming weeks.

Right now everything is tied to ElementPS.com's hosted payment solution & tokenization elements. That was rough, their documentation wasn't so good. I got losts of help from their support tech Jeff Gross.

So now, I just have to build a couple of reports, put it up for testing.. and then deploy it for my client.

Again, great application.

You must sign in to post in the forums. This thread is closed to new posts.