Suddenelfilio’s Weblog

Icon

Passionate about .net

IIS 7: HTTP POST, DefaultDocumentModule and a forgotten ‘/’

Yesterday I experienced some issues when I was trying to access a generic http handler (*.ashx) file using only the path without the filename e.g.: http://localhost/somefolder

The default document was set to uploadhandler.ashx. So i expected that if I connected to http://localhost/somefolder it would sent me to http://localhost/somefolder/uploadhandler.ashx but it didn’t. Appareantly it has got something to do with not adding a ‘/’ at the end.  For the exact problem and also the reason why it didn’t work as well as the solution have a look at post of mine put up at the iis.net fourms http://forums.iis.net/t/1155013.aspx

Filed under: .net 3.5, IIS