Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

Commented Issue: Complex Types with TypeConverters are not resolved properly [354]

$
0
0
Complex types with type converters are not resolved properly when evaluating matches. The following works:

void Get() {...}

void Get(int id) {...}

However if I change the second method to use a complex type with a type converter:

void Get() {...}

void Get(ObjectId id) {...}

then the server gives the following error:

"ExceptionMessage":"Multiple actions were found that match the request"

If I change the controller to only expose:

void Get(ObjectId id) {...}

then the type converter is correctly invoked.
Comments: We need to address scenario like this.

Viewing all articles
Browse latest Browse all 7925

Trending Articles