Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Guid string should only contain hexadecimal characters

Tags:

c#

guid

What is wrong exactly with this Guid? I get the error in the subject.

531fe55b-9qa5-4be3-af52-112e5adqe7a7

I am very sure that it was generated through .NET from the beginning.

like image 804
serializer Avatar asked Aug 15 '12 12:08

serializer


3 Answers

The problem is that it contains the letter q.

531fe55b-9qa5-4be3-af52-112e5adqe7a7
          ^                    ^

This is not a valid hexadecimal character.

like image 109
Mark Byers Avatar answered Sep 28 '22 20:09

Mark Byers


A guid should not contain any q

like image 32
MortenRøgenes Avatar answered Sep 28 '22 22:09

MortenRøgenes


From a quick trawl (about validating a Guid):

How to validate GUID is a GUID

Basically, you can only have hex characters in a Guid, so the 'q's in your GUID above are not valid.

I sincerely doubt that this originally came from the framework.

like image 42
Paddy Avatar answered Sep 28 '22 22:09

Paddy