470,647 Members | 1,187 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,647 developers. It's quick & easy.

BeginRequest event not fired when using SSL - MORE - On_Load notinvoked

After trying to solve this, I noticed another strange thing. When in
secure connection Page_Load method of page is not invoked (Load event
not fired). I looked where this method is assigned to this event, it's
in On_Init method. Tested, this method is not invoked too. This happens
only in when in SSL. Can anyone help me?

Artur wrote:
I'm trying to write a code that will change prefix (http to https and
vice versa). It half works now, because I can reach
Application_BeginRequest method in Global.asax file only when NOT in
secure connection. If I open ay page with http, the methodod is fired,
and if with https, it is not fired. I tried to do the same thing,
creating a module and setting event handlers to BeginReuest event in
Init method, hovewer the Init method is not invoked too, when in secure
Do you have any ideas why this could happen? I working on Windows 2003
Server with IIS 6.0.
As I see on Usenet and forums, Global.asax's Application_BeginRequest
method is commonly used to solve http/https thing, as well as adding
event handler to Application obiect (creating module), so probably it's
not a general fault. If anyone ever met something like this and has a
solution, I would be very grateful.

Sep 28 '06 #1
0 1356

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Andy Read | last post: by
7 posts views Thread by sanjana | last post: by
1 post views Thread by baroque Chou | last post: by
9 posts views Thread by jeff | last post: by
1 post views Thread by Tim.Forbess | last post: by
reply views Thread by Artur | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.