SpiceLogic Inc.
                                                                                                     SpiceLogic Inc. Home PageProductsJournalMy AccountHelp DeskContact Us
 
Knowledge base  : ASP.NET PayPal Control for Website Payments Standard    - Standard Edition
Welcome Guest   Login

Skip Navigation Links. ASP.NET PayPal Control for Website Payments Standard

Documentation  Documentation

Download   Download the latest version

Back to the home of knowledgebase forum IPN not working (with Membership)

An user   9/28/2009 3:06:15 PM

Hi.
I am not able to get the IPN to work. I have been trying it with the PayPal Sandbox but it isn't working. I did my original testing with a site that was not yet live but it was available as a subdomain of the hosting company. I thought maybe this was the reason it wasn't working so now I've made the site live.
 
I was able to get the PalPal_Returned event but the IPN_Notified event does not happen.
 
I changed over to the live PayPal and it works the same.
 
I am using a buy now button. I have a single page that handles the click event, the return event and the ipn event.  i have checked the Enable PostBack on the BuyNowButton Tasks dialog bux.
 
My hosting company has set my website to FULL trust.
 
Any ideas?
 
I did try to use the SendMail inside my IPN handler to send me some mail messages to let me know if the system ever executed anything inside the handler. 
 
I also did set my return URL and IPN Notification URL inside my PayPal profile to point to the common page (PayPalProcessor.aspx). I assume that your control will override that with it's own address? But maybe that doesn't work?
 
Thanks,
Bob
 



An user   10/2/2009 10:04:17 AM

I tried various permissions but could not run your script file. Then I remembered that I'm using Microsoft's Membership role provider to secure my website. So I moved your script to *****/SpiceLogicTester.aspx and set access to allow all users there. Then when I went there I could see  your script.
 
I'm wondering if the problem might be that access to my folder is denied for all but logged in users. I may have to create a special rule for the PayPal IPN. Anyway you can try your script from the above address. I didn't run it but could if you want me to. I didn't know what all it does.
 
Thanks,
Bob



An user   10/2/2009 10:08:23 AM

Maybe I need to put the following into my web.config
<location path="MemberDues/PayPalprocessor.aspx">
   <system.web>
       <authorization>
             <allow users="*"/>
       </authorization>
    </system.web>
</location path>
 
or create a specific page for the IPN return and set its access in this manner.



Resolution:
An user   10/2/2009 3:22:09 PM

OK. I believe my problem is that I DO need to add the following section to my web.config:
<location path="MemberDues/PayPalprocessor.aspx">
   <system.web>
       <authorization>
             <allow users="*"/>
       </authorization>
    </system.web>
</location path>
 
After doing this then the IPN event handler is firing. Now I just need to clean that up and put some additional checks in the code to only let PayPal IPN into that code block.
Thanks,
Bob



Home  || Products  || Journal  || My Account  || HelpDesk  || Contact Us

Website and Software Copyright ©2010, SpiceLogic Inc., All Rights Reserved.