Dot Net AdpService Guid Issue

Dot Net AdpService Guid Issue

It is a great support from community admin for creating Dot Net App for IADP. Support can be from the following link But I have some problem with .Net Guid. What Iam doing here is Iam taking ADP Guid and converting it to .Net Guid. Then Iam passing it as a parameter to IsAuthorized(Guid). But it is not authorized. Can u tell me where Iam going wrong. Code used for conversion is "guidstr" is GUID given by ADP after creating App public Guid ParseStoreGuid(string guidstr) { guidstr = guidstr.Replace("0x", "").Replace(" ", "").Replace(",", "").Replace("\r", "").Replace("\n", ""); byte[] buf = new byte[guidstr.Length / 2]; for (int i = 0; i < buf.Length; i++) Byte.TryParse(guidstr.Substring(i * 2, 2), System.Globalization.NumberStyles.HexNumber, null, out buf[((3 - (i % 4)) + ((i / 4) * 4))]); return new Guid(buf); }
2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.


I do not have a laptop in front of me, but this is a good way to diagnose your issue.

1.) Start ATDS
2.) Run your .NET code locally so the Authorize method is called
3.) Copy and paste the results shown in the ATDS window here so we can verify that the guid you are passing in looks the same to ATDS

Leave a Comment

Please sign in to add a comment. Not a member? Join today