SSL Redirect
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > SSL Redirect




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    SSL Redirect  
Jim


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-04 01:35 AM

We have setup a custom error to redirect users when they try to access a
site without using https.  This work fine for any site that doesn't use
asp.net.  When you goto a site that uses asp.net you get the following
error:
The specified request cannot be executed from current Application Pool

It is acting like it hasn't hit the 403.4 error yet, so my custom script
hasen't redirected to https yet.

Thanks,
Jim Field
fieldj@roberts.edu







[ Post a follow-up to this message ]



    Re: SSL Redirect  
Jerry Pisk


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-04 04:34 AM

Asp.Net is using its own set of error pages. Take a look at the
configuration file, it's in there...

Jerry

"Jim" <fieldj@roberts.edu> wrote in message
news:u4LkrczJEHA.2844@TK2MSFTNGP10.phx.gbl...
> We have setup a custom error to redirect users when they try to access a
> site without using https.  This work fine for any site that doesn't use
> asp.net.  When you goto a site that uses asp.net you get the following
> error:
> The specified request cannot be executed from current Application Pool
>
> It is acting like it hasn't hit the 403.4 error yet, so my custom script
> hasen't redirected to https yet.
>
> Thanks,
> Jim Field
> fieldj@roberts.edu
>
>







[ Post a follow-up to this message ]



    Re: SSL Redirect  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-04 05:34 AM

a) In ASP.NET you need to edit the <customErrors> section of the web.config
file.
b) The actual error page needs to be served from the same Web Application
Pool that the error is being generated from.

Cheers
Ken

"Jim" <fieldj@roberts.edu> wrote in message
news:u4LkrczJEHA.2844@TK2MSFTNGP10.phx.gbl...
: We have setup a custom error to redirect users when they try to access a
: site without using https.  This work fine for any site that doesn't use
: asp.net.  When you goto a site that uses asp.net you get the following
: error:
: The specified request cannot be executed from current Application Pool
:
: It is acting like it hasn't hit the 403.4 error yet, so my custom script
: hasen't redirected to https yet.
:
: Thanks,
: Jim Field
: fieldj@roberts.edu
:
:







[ Post a follow-up to this message ]



    Re: SSL Redirect  
WenJun Zhang[msft]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-21-04 08:34 AM

Hello Jim,

This is a knwon issue, matching the following two points can resolve
it:

1) In Web.config, just leave customError disabled to allow IIS handle
the 403.4 error code.
<customErrors mode="Off" />

2) Yes, as the error message indicated, the ASP.net application's
AppPool must be the same one as which the redirection page located.
For example:

ASP.net app in /WebApplication1
redirect.asp in root directory /
403.4 is pointed to /redirect.asp
The site root(home) directory's AppPool is DefaultAppPool.

Set WebApplication1 to also use DefaultAppPool and the error will no
longer occur.
Another work around is place a copy of redirect.asp into
/WebApplication1 and map /WebApplication1's 403.4 to use this local
page.

Best regards,

WenJun Zhang
Microsoft Online Support
This posting is provided "AS IS" with no warranties, and confers no
rights.
Get Secure! - www.microsoft.com/security






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 03:03 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register