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

Created Unassigned: Attributes without route string combined with RoutePrefix is not resolving the given method [1210]

$
0
0
Hi!

With the latest bits from myget (0809) I found a strange problem that a previously working route returned 404.

It turned out that if I've this config:

```
[RoutePrefix("accounts")]
public class AccountController : ApiController
{
[HttpGet]
public IHttpActionResult GetAccountList()
{
...
}
}

```
The /accounts request will not hit the GetAccountList method.

If I specify HttpGet("") then it works fine. I think there is a bug here, which was introduced between 07.20 and 08.09, since 07.20 build worked perfectly.

Thanks,
Attila

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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