最新消息:ww12345678 的部落格重装上线,希望大家继续支持。

反编译D365零售组件 / Decompiling D365 retail components

网络文摘 William 284浏览 0评论
Today I got a very nice tip from a colleague on how to better understand and see the source code for the retail components. I was experiencing that I was not able to post a CPOS sales, and in the eventlog I got the following “Cryptical” error: Customer with RECID 5637158076 is non-chargeable account. at Microsoft.Dynamics.Commerce.Runtime.Services.CustomerPaymentService.ValidateCustomerForOnAccountPayment(Customer customerToPayWith, RequestContext context, Boolean isPositiveAmount) The thing with the retail server, is that we don’t have the source code on all the components. But luckily there are a way around it: JetBrains dotPeek (just google it, and download) This tool let you decompile all components, and have an advanced search capability. Just all the K:\RetailServer\WebRoot\bin\Microsoft.Dynamics * files, and then search for the term ValidateCustomerForOnAccountPayment: Solution to my problem, was that the InvoiceAccount on the customer record was blank. So now you know how to see all sourcecode in Dynamics 365 Commerce/RetailServer components Happy!
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址