I use the WCF REST service (4.0) to expose the JSON API .. but not get the job done WebFaultException.
I have the following method:
if (!int.TryParse(Id, out idValue))
{
throw new WebFaultException<string>(string.Format(WebExceptionMessages.NotIntegerAsParameter),
HttpStatusCode.BadRequest);
}
and when I try to call a service on fiddler, I always get the same error message:

I have been trying to find a solution for some time ... please help.
source
share