Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 11 of 11

Thread: EventHandler Problem

  1. #1
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default EventHandler Problem

    Hi,

    As a newbie, my question is about EventHandler mechanism.
    I searched almost all posts but still can't figure out.

    What we want to accomplish is:
    Whenever a visitor creates an account (and becomes a customer) on storefront, we want to detect this situation, get the new customer id and customer details and insert them into the ERP database.

    Using EventHandlers it seems to be an easy task but so far it's not..

    What we did is:
    • We created a folder (WSI) and an aspx page (NewAccount.aspx) inside under storefront project.
    • We wrote the listener code in Page_Load method of this aspx file.
    • Using admin page, we edited CreateAccount eventhandler.
    • As callout url, we entered: http://localhost/WSI/NewAccount.aspx
    • We also set Active and Debug properties to true


    However, when an account is created our URL is not invoked by storefront.

    What did we do wrong?

    Thanks in advance.

  2. #2
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    No one used those eventhandlers before?

  3. #3
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    Anyone has an idea about what we are doing wrong when implementing Event Handlers?

  4. #4
    andyhay is offline Junior Member
    Join Date
    Jul 2011
    Posts
    12

    Default

    Quote Originally Posted by dincer80 View Post
    Anyone has an idea about what we are doing wrong when implementing Event Handlers?
    I see you are getting as many answers and my question on WSI.

    I would be interested in an answer to your question since I will be working on the same issue soon.

  5. #5
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    Thanks for your interest andyhay..
    I am still waiting for a hand but still nothing

  6. #6
    AspDotNetStorefront Staff - Erik is offline Senior Member
    Join Date
    Nov 2010
    Location
    Ashland, OR
    Posts
    168

    Default

    The EventHandlers in v9 (and MSx) are not functioning at this time (known bug). Unfortunately we also don't have a timeframe for the fix.

    This has proven to be wrong. EventHandlers are functioning but they do require that you disable validation on your listener page (typical issue being missed by users)
    Last edited by AspDotNetStorefront Staff - Erik; 04-10-2012 at 04:24 PM.
    Erik Sutton
    AspDotNetStorefront Technical Support

  7. #7
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    Quote Originally Posted by AspDotNetStorefront Staff - Erik View Post
    The EventHandlers in v9 (and MSx) are not functioning at this time (known bug).
    Actually, we are using ML v8. I hope it doesn't have the same bug, does it?

    Quote Originally Posted by AspDotNetStorefront Staff - Erik View Post
    Unfortunately we also don't have a timeframe for the fix.
    So how do you expect (or recommend) us to integrate with the ERP system easily when a order is taken place for example?

  8. #8
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    What do you recommend us to do if we want to update the ERP system every time an order takes place?

  9. #9
    dincer80 is offline Junior Member
    Join Date
    Apr 2011
    Posts
    11

    Default

    Anyone who has experience with EventHandlers before?

    What are you guys doing to handle ERP integration issues?

  10. #10
    scode is offline Junior Member
    Join Date
    Dec 2005
    Posts
    13

    Default

    Quote Originally Posted by dincer80 View Post
    Anyone who has experience with EventHandlers before?

    What are you guys doing to handle ERP integration issues?
    I'm also experiencing the same issue (8.0.1.4ML). Please take a look at the following thread.

    http://forums.aspdotnetstorefront.co...astel&p=109282

  11. #11
    glennewing is offline Junior Member
    Join Date
    Oct 2005
    Posts
    15

    Default Event Handler problems

    There are at least two significant .net 4 related problems associated with Event Handlers. In the AspdnsfEventHandler.CallEvent method the call to BeginGetResponse throws an exception. This is easily fixed but requires source code. The other problem is running the Listener in .net 4. See the thread mentioned by scode.

    dincer80, I believe that the event handler code in v.8 and v.9 is identical and works if you run it in .net 3.5. In either case you still have the ValidationMode issue at any .net 4 Listener.

    Event handlers are very "handy" for integration, once you get them to work.