Last post Oct 16, 2008 03:36 AM by Erwin21
Oct 08, 2008 01:31 AM|HandOfFire|LINK
For my testing I am using the built-in VS2008 server to run my site, then it is placed on a local IIS instance to further test before deployment.
When testing, the BeginRequest is being called for every file request.e.g jpg,aspx,gif,xml
When placed on the local instance, only the aspx files are calling the BeginRequest.
I know this due to a http module that I have created, and stepping through it process' only those files (aspx) when it should be going through them all.
What would cause this? Is there something completely different about the way VS2008 runs apps?
Oct 08, 2008 03:29 AM|Erwin21|LINK
In the VS development web server all extensions are mapped by default. When you deploy your application to IIS you have to map the extensions e.g jpg, aspx, gif, xml to the "aspnet_isapi.dll" so all request on the extensions goes through the asp.net engine.
Below you can find info how to map the extensions.
Oct 15, 2008 11:35 PM|HandOfFire|LINK
Thanks, that was it. BUT there was one issue. Just a stupid bug that stops the OK button from being clicked when adding a Mapping.
If your ok button isn't working, click inside the file path box then inside the filter box, and then ok works.
More info here:
BTW I added the mapping .* to be handled by aspnet_isapi.dll
Now all requests go down the right path.
Oct 16, 2008 03:36 AM|Erwin21|LINK
No problem, thanks for the extra info.