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: @attilah: yeah, right...this is an expected behavior...we made changes recently to make specifying the route template explicit...however, we are re-considering this behavior and in future would be coming up with a different design which would address this issue (issues #1204,#1205 & #1206 are related to this)..thanks again for your feedback.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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