Application_AuthorizeRequest not firing in HTTPModule

  • Thread starter Thread starter DotNetNewbie
  • Start date Start date
D

DotNetNewbie

Hi,

I did a simple response.write in my httpmodule in both the
Application_AuthorizeRequest and Application_BeginRequest events.



The Application_BeginRequest is firing, but the authorizerequest event
is not.

I first go to login.aspx, log in and then do a:

FormsAuthentication.SetAuthCookie(user.ID.ToString(),
cbRememberMe.Checked);

Then when I view the page only the begin request event fires.

What is going on?
 
try the sample here
http://www.aspspider.com/rss/Rss7330.aspx

ALSO
the built-in webserver included with visual studio wil handle all page
request. the same is not true of iis. iis will only route designated
request (based on extension) to aspnet_isapi.dll

when you make a request for a folder without supplying a page name, it does
not get handled by the asp.net runtime. to route those types of requests to
asp.net so you can rewrite them, you would need to implement wildcard
mapping in IIS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top