Hello,
Welcome to Microsoft Q&A!
I made a simple test here. I created a C# sample and a C++/CX sample. Both of them are associated with the same app in the Store. Actually, both of the UWP apps gives me the same ID value when calling EasClientDeviceInformation
Object. But you might need to modify the value a little bit because the format is different.
From the C++/CX sample, the string I got is {b3cf16ff-147d-df55-602f-e7e9973fc99c}.
From the C# sample, the string I got is b3cf16ff-147d-df55-602f-e7e9973fc99c.
The ID string from the C# sample lack "{" and "}" compared to the ID string from the C++/CX sample.
I think this should be the reason for your behavior. Please take a look at the values you've got and check it.
So, the solution is that you just need to add "{" and "}" in the beginning and the end of the string you get from the C# code.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.