November Happy Hour will be moved to Thursday December 5th.

YSOD when trying to create a payment i commerce manager

Vote:
 

Hi,

We are getting a YSOD when trying to create a payment. cms: 9.10.0.0, commerce: 9.16.0.1617. We have not edited the xml file PaymentPlan-ObjectView.xml. Thankful for any tips.

Server Error in '/' Application.

The file '/Apps/Core/MetaData/Controls/.ascx' does not exist.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Web.HttpException: The file '/Apps/Core/MetaData/Controls/.ascx' does not exist.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: 

[HttpException (0x80004005): The file '/Apps/Core/MetaData/Controls/.ascx' does not exist.]
   System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath) +4574825
   System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +549
   System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate) +146
   System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) +141
   Mediachase.Commerce.Manager.Core.MetaData.PaymentSelectEditTab.CreateChildControlsInternal() +909
   Mediachase.Commerce.Manager.Apps.Order.Modules.PaymentMethodSelectControl.BindMetaForm() +1273
   Mediachase.Commerce.Manager.Apps.Order.Modules.PaymentMethodSelectControl.CreateChildControls() +42
   System.Web.UI.Control.EnsureChildControls() +115
   System.Web.UI.Control.PreRenderRecursiveInternal() +55
   System.Web.UI.Control.PreRenderRecursiveInternal() +204
   System.Web.UI.Control.PreRenderRecursiveInternal() +204
   System.Web.UI.Control.PreRenderRecursiveInternal() +204
   System.Web.UI.Control.PreRenderRecursiveInternal() +204
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7675


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1055.07

#150987
Jul 06, 2016 10:42
Vote:
 

Which payment are you trying to create? It looks like certain controls are missing from configuration.

#150989
Jul 06, 2016 11:15
Vote:
 

The YSOD appears directly when clicking on the "Create Payment" button (so directly when the dialog opens).

#150990
Jul 06, 2016 11:28
Vote:
 

OK, so what payment gateways do you have? It looks like one or more payment gateways have wrong configuration. What do you have if you run 

SELECT *
FROM [ECFLocalDev].[dbo].[PaymentMethod]

in Commerce database, and what do you have in ~/Apps/Order/Payments/MetaData/ folder? Do they match?

/Q

#150991
Jul 06, 2016 11:49
Vote:
 

The MetaData folder does only contain a Authorize (inside images folder and a EditTab.ascx) folder.

What are you interested in seeing from the PaymentMethod table? Pasting the names as a first.

Name
Pago por telfono
Klarna Checkout
Pay By Credit Card
Customer Bonus
Klarna Checkout
Pay By Phone
Pay per Telefon
Customer Bonus
Gift Certificate
Customer Bonus
Gift Certificate
Gift Certificate
Klarna Checkout
ExchangePayment

But the swedish market has only got Customer Bonus, Gift Certificate, and Klarna Checkout when looking in commerce manager.

#150997
Edited, Jul 06, 2016 13:20
Vote:
 

When deactivating Gift Certificate and Customer Bonus, the dialog works!

Could you give me any tip on what I can check that may be configured wrong/missing?

#150998
Jul 06, 2016 13:28
Vote:
 

It seems that the fields we have added to the giftcardpayment method was of type nvarchar. When changing this to LongString instead the dialog works.

Strange that nvarchar as available as a MetaDataType if it does not work.

#151000
Jul 06, 2016 14:08
Vote:
 

Hi Support,

We are using two custom payment gateway in our project and working fine for the front end but facing issues in the create payment option in the commerce manager. We are getting "Object reference not set to an instance of an object." error when clicking on the "Create Payment".

Notice that if the payment method (both added by us) is turned off in payment method table, then at back end the create payment option opens
with a popup but with the blank drop-down for payment (for obvious reason) but the moment we are activating the payment gateway it is throwing error.

So of course, we have to do something to make the create payment option available for the commerce manager. Any solution regards to this will be appreciated.

#174179
Jan 20, 2017 15:53
Vote:
 

Hi Support,

We are using two custom payment gateway in our project and working fine for the front end but facing issues in the create payment option in the commerce manager. We are getting "Object reference not set to an instance of an object." error when clicking on the "Create Payment".

Notice that if the payment method (both added by us) is turned off in payment method table, then at back end the create payment option opens
with a popup but with the blank drop-down for payment (for obvious reason) but the moment we are activating the payment gateway it is throwing error.

So of course, we have to do something to make the create payment option available for the commerce manager. Any solution regards to this will be appreciated.

#174180
Jan 20, 2017 15:54
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.