I have built a custom IHTTPModule to aquire session variables so I can rewrite to a page based on a session variable. I got everything to work on my local machine (IIS 7.5 Windows 7 Ultimate) but when I upload it the server (Windows 2008 R2) with the same version of .NET 4 and modules/handlers my IHTTPModule does not fire correctly.
These are the events that do not work properly on the server but do locally.
AddHandler Appl.PostAcquireRequestState, AddressOf Rewrite_PostAcquireRequestState
AddHandler Appl.PostMapRequestHandler, AddressOf Rewrite_PostMapRequestHandler
When I call those handlers on my local IIS 7.5 they run properly and do not get a 404 error but when I place them on the server I get a 404 Error. If the page exists, the handlers run as expected but that does me no good because I need them for the rewrite and the session.
AddHandler Appl.BeginRequest, AddressOf Rewrite_BeginRequest
AddHandler Appl.AuthenticateRequest, AddressOf Rewrite_AuthenticateRequest
This handler works properly and output to the page before a 404 error on both the server and local but I can not use these because I need a session.
Why would they act differently on the server than locally on my machine? I have tried everything I can think of. Any suggestions?
View Complete Post