I\'ve installed Visual Studio 2013 and when I run my app I get the error below.
I\'ve got no idea as to where I\'m to initialized this object.
What to do?>
For me, the problem was that I was trying to use named parameters for query string fields in my routes:
[Route("my-route?field={field}")]
public void MyRoute([FromUri] string field)
{
}
Query string fields are automatically mapped to parameters and aren't actually part of the route definition. This works:
[Route("my-route")]
public void MyRoute([FromUri] string field)
{
}