The BindByName method of UriTemplate was called with an empty name in the collection of arguments for the bind. Note that ...

The BindByName method of UriTemplate was called with an empty name in the collection of arguments for the bind. Note that the NameValueCollection or the Dictionary passed to BindByName cannot contain an empty (or null) name as a key. See the documentation of UriTemplate for more details.