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

Commented Unassigned: Certain Attribute Routes Fail [1698]

$
0
0
Ran into an issue where certain routes defined on attributes fail. It seems to b only certain cases and I've documented them in the following StackOverflow question.

http://stackoverflow.com/questions/21871471/http-put-failing-on-iis-8-5

In essence the "root" route does not seem to work with a prefix. So in my specific example I can't have a prefix of api on the products controller and thus define a route as "api/products" and to a PUT to it. Only the "products" will work.
Comments: Request Headers: Request PUT /office/api/products HTTP/1.1 Content-Type application/json;charset=utf-8 Accept application/json, text/plain, */* Referer http://local.mydomain.com/office/products/ Accept-Language en-US,en;q=0.5 Accept-Encoding gzip, deflate User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko Host local.mydomain.com Content-Length 212 DNT 1 Connection Keep-Alive Cache-Control no-cache Cookie __utma=25115945.1882313138.1384833116.1388190505.1388710368.5; __utmz=25115945.1384833116.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); ASPSESSIONIDACDSRSCB=MPAHLEGBBGBJDJJPIELOALBO; BWLNAME=Montane; NETToken=T1OQB1G8z; BWLID=1; .ASPXAUTH=4D4CB5A9F5AC9FE661BE4B1CEB69F822036D2B8E3BCEE008263E6B0760E5A380FDF6C8D672649BBF7D75155E3F5290DD6A525A1A33F0820C09505F5A433A838406814C06FD89F2F7AD051D261F69B89F7F9597831793B0C52F8CCD8F928C75F54E5149A3; ASPSESSIONIDCCDRSQBD=JFEBGGHBNAAGKLDGBDDBIJAD; ASPSESSIONIDCCCTTRAC=FNKHCEBCKEMEPMOBEGGLLFLK; __utma=250875035.1878576503.1384833208.1388710541.1388794013.3; __utmz=250875035.1384833208.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none) Response Headers: Allow GET, HEAD, OPTIONS, TRACE Cache-Control private Content-Length 5473 Content-Type text/html; charset=utf-8 Date Fri, 21 Feb 2014 02:22:20 GMT Response HTTP/1.1 405 Method Not Allowed Server Microsoft-IIS/8.5 X-Powered-By ASP.NET

Viewing all articles
Browse latest Browse all 7215

Trending Articles



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