Postări

Se afișează postări din iulie, 2015

GET,POST,PUT,DELETE - 404 Error - how to hack - Part 2

Another way to achieve the same thing with less config lines is this one: < system.webServer >     < handlers >       < remove   name = " ExtensionlessUrlHandler-Integrated-4.0 "  />       < remove   name = " OPTIONSVerbHandler "  />       < remove   name = " TRACEVerbHandler "  />       < add   name = " ExtensionlessUrlHandler-Integrated-4.0 "   path = " *. "   verb = " * "   type = " System.Web.Handlers.TransferRequestHandler "   preCondition = " integratedMode,runtimeVersionv4.0 "  />     </ handlers >   </ system.webServer >

GET,POST,PUT,DELETE - 404 Error - how to hack

If you bought a new pc like I did and forgot you made some config changes than you are in for a 404 / 405 Error surprise. Long story short is you need to make just a few tweeks to make it work: 1. Go here for some wuick documentation: http://www.iis.net/learn/extensions/introduction-to-iis-express/iis-express-faq  and look for:  Q: How do I enable verbs like PUT/DELETE for my web application? 2. In your config file the one that is holding your REST api put this: < system.webServer >     < validation   validateIntegratedModeConfiguration = " false "  />     < modules >       < remove   name = " WebDAVModule "  />     </ modules >     < handlers >       < remove   name = " WebDAV "  />       < remove   name = " Extensi...