Solved

404 error - even though file exists - paypal IPN

Posted on 2014-01-10
3
474 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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!
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

691 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