Hi all,
I posted this on the ASP.NET forums but with no response as yet. I am using maximumasp's IIS 7 Beta 2 trial to try and test some app features.
I have written a very simple httpmodule to fire on the BeginRequest event and redirect based on the incoming request url.
It works fine on my dev machine (XP Pro) but when I deploy it, the module doesn't get called. I know in IIS6 you can map all incoming requests to be handled by asp.net but I was under the impression that in IIS7 you can just add the following to the web config to get the httpmodule to be called.
<modules runAllManagedModulesForAllRequests="true">
<add name="UrlRewriter" type="UrlRewriter" />
</modules>
All I get is a 404 which is what I would have expected with IIS6 but not IIS7.
/* EDIT
I think it may be something to do with the fact that is running as a hosted web core applicationa and may need some special configuration but I don't know what it is!
here's the error:
Server Error in Application "xxxxxxx"
HTTP Error 404.0 - Not Found
Description: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Error Code: 0x80070002
Notification: MapRequestHandler
Module: IIS Web Core
Requested URL: http://xxxxxxx.maximumaspbeta.com:80/test123
Physical Path: m:\web\users\xxxxxxx\wwwroot\test123
Logon User: Anonymous
Logon Method: Anonymous
Failed Request Tracing Log Directory: m:\web\users\xxxxxx\logs\failedreqlogfiles
Handler: StaticFile
Anyone have any ideas?
Thanks,
pault