Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / February 2008

Tip: Looking for answers? Try searching our database.

Application_AuthorizeRequest not firing in HTTPModule

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DotNetNewbie - 05 Feb 2008 15:50 GMT
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?
Peter Bromberg [C# MVP] - 07 Feb 2008 01:25 GMT
DotNetNewbie,
This is really an asp.net group question, not a c# language newsgroup
question.
Try posting at the aspnet group.
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
MetaFinder: http://www.blogmetafinder.com 

> Hi,
>
[quoted text clipped - 12 lines]
>
> What is going on?
Misbah Arefin - 07 Feb 2008 17:27 GMT
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.

--
Misbah Arefin

> Hi,
>
[quoted text clipped - 12 lines]
>
> What is going on?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.