Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 17th, 2004, 04:31 PM
Authorized User
 
Join Date: Aug 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default redirection with windows authentication

I understand you can specify a login redirection page in your web config file if authentication is forms/passport.

Can you do that if you have windows authentication? Yes, I know you don't need a login page with windows authentication. What I'm after is a custom 401-3 error page which conforms to the theme of the application instead of the one found in ../iishelp/common/ directory.

Any ideas?

If I set the custom error page property in IIS to a page in my app, it will still not work, for the user will not have access to my app. Does this page need to be a part of another app perhaps?

TIA

 
Old May 18th, 2004, 07:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can build your own error pages and then map IIS to them in the console. Or you can specify the individual error pages in the web.config.

<configuration>
    <system.web>
        <customErrors mode="On" defaultRedirect="AppError.aspx">
            <error statusCode="404" redirect="notfound.aspx">
            <error statusCode="500" ... etc
        </customErrors>
    </system.web>
</configuration>

 
Old May 18th, 2004, 09:29 AM
Authorized User
 
Join Date: Aug 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply. Can this redirection page be a page of the app itself?
 
Old May 18th, 2004, 10:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Are you asking if it can be one you created?

 
Old May 18th, 2004, 10:24 AM
Authorized User
 
Join Date: Aug 2003
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you have an asp.net app, can the 401-3 error page be a page that is also a part of the app or does that page need to be not a part of the app so you have access to that page (even though you dont' have access to the app)

 
Old May 23rd, 2004, 06:38 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Typically, the custom error page is a page of the same application. When an error occurs on one page, it sends you to this error page. The page requests are separate so the error on the bad page *shouldn't* affect the run ability of the custom error page. If there IS an error on the error page, fortunately MS thought that thru and you don't end up in an error page loop. It just does what it can. Usually the error page will be a very simple page so it is less prone to errors.

Peter
-------------------------
Work smarter, not harder





Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Authentication OrbitalThread .NET Framework 2.0 0 December 5th, 2006 01:57 PM
Windows authentication eresina General .NET 5 June 2nd, 2004 09:16 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.