?
Solved

404 error - even though file exists - paypal IPN

Posted on 2014-01-10
3
Medium Priority
?
487 Views
Last Modified: 2016-03-24
I've been running a site for ages
ASP.net 2.0

there is a page called paypalIPN.aspx
This is hit by paypal to verify the payment and i update my DB to say they have paid

its been working fine for ages
and now all of a sudden it doesn't work

all the other pages in the site work (aspx) but this one doesn't
and redirects to http://mywebsite.com/GenericErrorPage.htm?aspxerrorpath=/store/IPNProcess.aspx

i'm stumped as i haven't changed anything
its on win 2008 server and IIS7
i've recycled app pool etc

If i browse to it via iis it sees the page (but throws a .net error about SMTP - i guess this is as its meant to send an email about the payment sucessful

The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at

Open in new window


HELP!!
0
Comment
Question by:websss
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 51

Expert Comment

by:Steve Bink
ID: 39772946
Are you sure it is a 404 error, and not a 500.  If you get an exception when running it locally, perhaps the remote side is, too.
0
 
LVL 29

Expert Comment

by:sammySeltzer
ID: 39773547
Since you didn't show any code for the email component, are you sure the email code has username/password?

You can also try adding this line to the code:

client.EnableSsl = false;

and see if it helps.
0
 
LVL 18

Accepted Solution

by:
Gary Davis earned 2000 total points
ID: 39773830
There are a few things to do. Log on to the PayPal account and look for the IPN History in the Reports pulldown. See what PayPal says is happening when it calls your IPN. It should say HTTP 200. If this is where you see HTTP 404, then there is something wrong with the notify url or it is getting to your IPN but the IPN code is returning a 404 for some reason or maybe it is redirecting to a bad location (I am not sure if PayPal support the redirect or not).

Generally, I like to log the input parameters as the first step in IPN logic so if there is a trap, I have all the info to know what's happening. A try/catch around the whole IPN process is helpful and in the catch, again log the exception.

Gary Davis
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question