Hi all,
i'm working through the Begininng ASP.Net E-Commerce wrox book, using the actual examples and code samples downloaded and i've got to the stage where i'm adding the functionality for authorising and processing credit cards to the application - thats chapter 13. If im at the shopping cart and i select the 'place order' click button, and the payment processing begins, i receive the error message :
An error has occured during the processing of your order.
Details: Error occured, order aborted. Details mailed to administrator.
If you have an enquiry regarding this message please e-mail
[email protected]
Back to shop
The email sent to the administrator contains the error message :
Message: Error occured while checking funds.
Source: 1
Order ID: 73
At the orders admin page, Order 73 auditing shows the following :
order status is :
73 22/07/2003 22:39:00 Awaiting confirmation of funds 3 user1
the auditing shows the following :
22/07/2003 22:38:31 Order Processor started. 10000
22/07/2003 22:38:31 PSInitialNotification started. 20000
22/07/2003 22:38:32 Notification e-mail sent to customer. 20002
22/07/2003 22:38:32 PSInitialNotification finished. 20001
22/07/2003 22:38:32 PSCheckFunds started. 20100
22/07/2003 22:38:34 Order Processing error occured. 10002
22/07/2003 22:38:34 Order Processor finished. 10001
So to find out where the problem is, i walked through the code, and i found that this is last line of code executed before we attempt to catch an error. The error occurs in DataCashRequest.
VB -
serializer As XmlSerializer = _
New XmlSerializer(GetType(DataCashRequest))
At this point, i'm stuck, and dont have a clue how to debug any further and am no closer to finding out why this happens?
Can anyone help me to determine what is the cause of this error, or how to debug any further.
In walking through the code, with the locals window open, i see the following :
PS Check Funds
_currentCustomer = _processor.CurrentCustomer
AuthCode <error: an exception of type: {System.InvalidCastException} occurred> Object
Reference <error: an exception of type: {System.InvalidCastException} occurred> Object
PSCheckFunds
Request.transactions.txndetails
Xml <error: an exception of type: {System.IO.FileNotFoundException} occurred> Object
i really dont know where to take this from here - i've checked the code, and it is as it should be when compared to the download.
Any help would be greatly appreciated
Cheers
Steelo