I ran into the same issue. The message Uri is too long completely threw me off since I wasn't expecting my data to travel in the URL at all. After much research I found a resolution to my problem.
Here's what I did.
- Downloaded the source code from GitHub.
- Began debugging to identify the point of failure. I traced it down to a part which tries to HTML encode the text using the method Uri.EscapeDataString()
- So in order to resolve this issue: I replaced the default UrlEncode() extension method which used to look like this:
public static string UrlEncode(this string input)
{ return Uri.EscapeDataString(input); }
to
public static string UrlEncode(this string input)
{
int limit = 65519;
StringBuilder sb = new StringBuilder();
int loops = input.Length / limit;
for (int i = 0; i <= loops; i++)
{
if (i < loops)
{
sb.Append(Uri.EscapeDataString(input.Substring(limit * i, limit)));
}
else
{
sb.Append(Uri.EscapeDataString(input.Substring(limit * i)));
}
}
return sb.ToString();
}
- Rebuilt the solution and copied the new dlls
- Problem resolved :)