Hi all,
We recently switched servers from a Windows Server 2003 box to a Windows Server 2012 box.
We use SIM for taking payments and after the switch we are having some problems.
Somtimes we have a payment go through just fine, but other times we are having issues.
The only difference we see is that on all the payments we have issues with the "__PREVIOUSPAGE" field is missing.
When the field is sent to use we have no problems.
Does anyone know why sometimes that field would be sent and why sometimes it is missing?
07-15-2015 10:32 AM
http://www.drdobbs.com/cross-page-postback-in-aspnet-20/184406025
Are you setting the PostTargetUrl all the time?
07-15-2015 11:17 AM
I took a look and I don't see where we set that at all.
We have a .aspx page with a form and the action is the authorize SIM page.
Somehow when the information comes back to our site our code thinks the page is a post back and doesn't execute our code.
But it is inconsistent and only started once we changed servers.
Any thoughts?
07-16-2015 08:51 AM
How are you doing the form post to authorize.net?
Are you on a web farm?
Somtimes we have a payment go through just fine, but other times we are having issues.
What kind of issue? not going to the SIM CC form? not getting to the relay response url?
07-16-2015 09:36 AM
This is our form header to test at tleast:
form name="form1" method="post" action="https://test.authorize.net/gateway/transact.dll"
We are not on a web farm.
We do go out to the SIM CC form and that works fine and CC get charged.
Authorize is getting back to our server as we see the traffic.
The issue is in our C# code we have a check for Page.IsPostBack and sometimes it evaluates as true and our code for accepting the payment is never run.
It is odd that it is not consistent.
07-16-2015 09:56 AM
Is the relay response url the same as the form post url? why it is checking for is postback?
07-16-2015 12:15 PM - edited 07-16-2015 12:17 PM