I have a NancyFx application where I've setup an Virtual Directory under the path /photos
. However, when I browse to it I get a 404. I have made sure permissions etc.. are correct so I'm wondering if it is something to do with NancyFx hijacking the request and looking for a route defined under my /photos
path?
Asked
Active
Viewed 1,605 times
4

CallumVass
- 11,288
- 26
- 84
- 154
1 Answers
6
The easiest way would be to tell IIS to not use Nancy in the /photo directory. You can do this by adding the location in your web.config like so:
<location path="photo">
<system.webServer>
<handlers>
<remove name="Nancy"/>
</handlers>
</system.webServer>
</location>
Documentation can be found here:
https://github.com/NancyFx/Nancy/wiki/Managing-static-content#letting-iis-handle-static-content

Phill
- 18,398
- 7
- 62
- 102