Could not find the Payment with PaymentMethodName:''
When i checked my servers event log, found lot of exceptons saying that 'Could not find the Payment with PaymentMethodName:''8', the details of the exceptions added below, anyone knows how this exception is happening and any solution for this?
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 27/08/2012 02:08:55
Event time (UTC): 27/08/2012 01:08:55
Event ID: d24c6a6ba507462091804eaa769923b3
Event sequence: 185095
Event occurrence: 1326
Event detail code: 0
Process information:
Process ID: 7736
Process name: w3wp.exe
Account name: IIS APPPOOL\MySite
Exception information:
Exception type: NullReferenceException
Exception message: Could not find the Payment with PaymentMethodName: '8', and one of PaymentId: '467' or PaymentGuid: ''.
at UCommerce.Transactions.Payments.UrlPaymentExtractor.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.ExternalPaymentMethodService.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.GenericPaymentHandler.Execute(HttpContext context, IPaymentWindow& paymentWindow, Payment& payment)
at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
uCommerce tries to look up a given payment method by name or id. If the payment method you're using doesn't have id 8 that's the issue.
Which provider are you using? Some provider require the callback URL to be set up manually in the backend. Maybe the config is out of sync with what uCommerce knows?
Weird that SagePay is doing callbacks on non-existing payments. Might it be a simple matter of old callbacks being reissued or a mix-up between a development and production environment?
Could not find the Payment with PaymentMethodName:''
When i checked my servers event log, found lot of exceptons saying that 'Could not find the Payment with PaymentMethodName:''8', the details of the exceptions added below, anyone knows how this exception is happening and any solution for this?
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 27/08/2012 02:08:55
Event time (UTC): 27/08/2012 01:08:55
Event ID: d24c6a6ba507462091804eaa769923b3
Event sequence: 185095
Event occurrence: 1326
Event detail code: 0
Process information:
Process ID: 7736
Process name: w3wp.exe
Account name: IIS APPPOOL\MySite
Exception information:
Exception type: NullReferenceException
Exception message: Could not find the Payment with PaymentMethodName: '8', and one of PaymentId: '467' or PaymentGuid: ''.
at UCommerce.Transactions.Payments.UrlPaymentExtractor.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.ExternalPaymentMethodService.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.GenericPaymentHandler.Execute(HttpContext context, IPaymentWindow& paymentWindow, Payment& payment)
at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Request information:
Request URL: http://www.mysite.com/8/467/PaymentProcessor.axd
Request path: /8/467/PaymentProcessor.axd
User host address: 195.170.169.18
User:
Is authenticated: False
Authentication Type:
Thread account name: IIS APPPOOL\MySite
Thread information:
Thread ID: 28
Thread account name: IIS APPPOOL\MySite
Is impersonating: False
Stack trace: at UCommerce.Transactions.Payments.UrlPaymentExtractor.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.ExternalPaymentMethodService.Extract(HttpRequest httpRequest)
at UCommerce.Transactions.Payments.GenericPaymentHandler.Execute(HttpContext context, IPaymentWindow& paymentWindow, Payment& payment)
at UCommerce.Transactions.Payments.PaymentProcessor.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
uCommerce tries to look up a given payment method by name or id. If the payment method you're using doesn't have id 8 that's the issue.
Which provider are you using? Some provider require the callback URL to be set up manually in the backend. Maybe the config is out of sync with what uCommerce knows?
Hi Soren,
We are using SagePay provider. We are seeing this exception as a warning in the event log.
Best regards,
Basil
Do you have a payment method with ID "8" in the Payment Methods section?
Yes there is only one payment method named 'SagePay' and its ID is '8'
Is there a payment with ID 467?
No there is no payment with ID 467.
Good morning, I'm having this same issue. What have you done to solve it?
Regards,
João Ferreira
is working on a reply...