I'm trying to set up a sample WCF service using a self-signed certificate. For some reason, I repeatedly get the error "FormatException - Invalid hexadecimal string format."
I was initially trying it in the config file but decided to try setting it up in code but still get the same error.
I then tried it on a different machine and it works just fine. I would appreciate any suggestions. Here are the details.
Environment: Windows 7 Home Premium, Visual Studio 2010 C# Express Edition, .NET 4.0
// Create the host
host = new
valueToFind = "66
31 bf 9e f7 4f 9e b6 c9 d5 a6 0c ba 6a be d1 f7 bd ef 7b";
The exact same code runs just fine on another machine. No complaints of an invalid hexadecimal value. Here are the details of the other machine:
Environment: Windows XP, Visual Studio 2010 C#
Premium, .NET 4.0
View Complete Post