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

Commented 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
Comments: Thanks, for the explanation. This is the 3rd issue I hit because of using the latest bits and trying to help you by reporting such things. Is that possible to maintain 1 wiki page for the dogfooders about these kind of changes? It could save us hours and I think its less time for you to maintain such a list than if we add all time of all devs who is running on the latest bits :-) Thanks, Attila

Viewing all articles
Browse latest Browse all 7215

Trending Articles