I'm trying to construct a RuleDescription for a broken rule and getting this exception:
Message="Invalid URI: The hostname could not be parsed."
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
The rule name has some sort of format that looks like this:
I'm not sure what changed here as I thought the rule format looked more straightforward in the 3.5.1 code.
The same rule in my 3.5.1 build looks like this:
EDIT: I see the code was changed to include the full declaring type name, but even changing it to use the short type name doesn't work. It chokes on this also:
I think the problem is the generic type names have the ` (reverse single quote if that doesn't show up) character in them and maybe those aren't valid in host names.
I'm sure you are right about the ` character. I think the value is encoded, but there's a different encoder required to catch that. Or maybe I had to write some extra manual encoding. In any case I know I hit this in the v4 code and had to fix it - didn't know it occurred in 3.8 code though...
Copyright (c) Marimer LLC