Check out the latest Commerce updates!Learn about the key capabilities and features of Dynamics 365 Commerce and experience some of the new features.
Download overview guide | Watch Commerce video
2020 release wave 1Discover the latest updates and new features to Dynamics 365 planned through September 2020
Release overview guides and videos Release Plan | Preview 2020 Release Wave 1 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
I am following the steps in this link: community.dynamics.com/.../debugging-commerce-runtime-in-the-new-dynamics-ax-ax7
However it uses MPOS and I am using CloudPOS.
I made sure that for step 2 I have the breakpoints in my project where I want to debug.
For step 3, I assume I have to run cloudPOS using VS. So opening RetailSDK\POS\CloudPOS in VS and run it.
For step 4, I go back to the VS where I have my project open in step (2). If I now click on Attach to Process and choose all the w3wp.exe I get the error:
This is due to the cloudPOS that I have open and clicked on run in step 3.
If I do not attach a process for the VS where my CRT project is, then the cloudPOS session isn't recognizing any breakpoints.
Do I run cloudPOS through LCS? Will that even see the breakpoints in VS? It just doesn't make sense to me that it would.
I also make sure that I run cloudPOS in step 3 using Internet explorer because of the comment in: community.dynamics.com/.../debug-d365-retail-cpos-mpos-extensions
Any suggestions how I can test my CRT change by itself and in the end with cloudPOS to see if I reference the extension property correctly to show its value on the product search view extension I have in POS.Extensions.
I in the end figure out that I need to add CloudPOS Pos.Web to my solution that has the CRT project so that it can have an executable.
I did that and now when I run it I go back to attach al the w3wp.exe. It attaches without a problem.
And it runs by opening POS and I can type in a string to do product search.
However it still doesn't run the breakpoints.
My post trigger is type of: GetProductSearchResultsDataRequest. I need to add values to extension properties for the Product SearchView, thus the type of GetProductSearchResultsDataRequest.
I have a breakpoint on SupportedRequestTypes, OnExecuted and OnExecuting. So it should hit at least one of them.
I have my DLL inside RetailServer\WebRoot\Bin\Ext
I also added it to RetailSdk\Assets\CommerceRuntime.Ext.Config.
The RetailSdk is where my changes are and which is linked to source control, not the one under ServiceVolume
I even added the DLL in the end to retailServer\Webroot\Bin\CommerceRuntime.Ext.Config under the CommerseRuntimeExtensions>Composition. didn't help
I not just entered a string for Product search, I also selected a product from the grid to get to the product details to see if it will trigger the breakpoint but nothing.
I also on the Inventory lookup view enter a product number on the right where the Search Products control is but this doesn't trigger the break point either.
I made sure all the w3wp.exe processes were attached.
Any ideas what I'm missing with the debugging?
Hi, which process are you attaching to? It should be w3wp process of Retail server, not w3wp process of CPOS.
Also there is no need to use CPOS solution at all, you can attach from your CRT extension.
If you have IISExpress running - then debugger should be attached to it, not to w3wp
GetProductSearchResultsDataRequest - did you try to test, if breakpoint is hit when you enter search text in POS?
I am not using IIS. I switched my Dev box to IIS . This link: docs.microsoft.com/.../new-environments-visual-studio-teams-branch-retail-projects, suggested it in Step 4 under Prepare Development Environment.
To speed up the development experience, switch to Microsoft Internet Information Services (IIS). For instructions, see MSDyn365FO. How to switch from IIS Express to IIS on development VM. This step can be done only on the Tier 1 VM where you have administrative privileges (cloud-hosted environment).
What do I run to trigger the CRT extension if I do not use CPOS. I can't find information on the internet that is clear enough to show me how to do it. If I just press <F5> in VS to run my C# code without any executable then it tells me that a class library cannot be a startup project.
"GetProductSearchResultsDataRequest" is not hit when I type in the search text. IT is almost as if it is not seeing my extension or I just can't figure out how to set up the debugging. It is most probably the latter
CRT is a part of Retail server, that is web application. To trigger CRT, some application needs to trigger retail server first.
POS app > Retail server > CRT
If you start CPOS in browser and trigger product search, it will call Retail server - and your CRT extension will be triggered.
Debugger should be attached to Retail server IIS process in this case to make things work.
Thanks for your help Oksana. I in the end re-did my project to remove all underscores in the names of the solution and class library so that the DLL doesn't get generated with an underscore in its name. I also made sure the name of the lass library is the name of the name space inside the classes below it. I also followed the steps in this link : community.dynamics.com/.../debugging-commerce-runtime-in-the-new-dynamics-ax-ax7, diligently and the debug finally worked.
The sequence was very important
Business Applications communities