Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Issue: Web Api route parameters containing periods return 404. [372]

$
0
0
In ASP.NET Web Api, route parameters that contain periods are not matched.

Steps to reproduce:

In the default web api template update the Get (by id) method as below:

public string Get(string id)
{
return id;
}

A request to /api/values/foo returns "foo".

A request to /api/values/foo.bar returns a 404.


Comments: Have you tried to add the following configuration to see if this works? <system.webserver> <modules runAllManagedModulesForAllRequests="true">

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>