Simple problem with custom errors and forms authentication

From: Dirt (darran_hayes@hotmail.com)
Date: 09/25/02


From: darran_hayes@hotmail.com (Dirt)
Date: 25 Sep 2002 06:03:43 -0700


Hi all,

I have forms authentication set up on our asp.net website which works
fine (up until now).

We've just started to round up our site and are adding our custom
errors for the good old http 404 file not found.

Our forms authentication settings basically say "secure everything,
and only allow anonymous access to a small number of resources"
(default.aspx, login.aspx and logout.aspx).

When I navigate to a page that does not exist, I first have to login,
before my custom 404 page gets displayed.

Is there any way to solve this without having to change my forms
authentication settings as a user should have to log in to discover
they've gone to the wrong url?

Cheers,

d



Relevant Pages

  • RE: Membership Provider Woes
    ... in forms authentication context. ... how do I actually store the custom information? ... limited by the natural of cookie. ... Doens't the membership provider set a forms auth cookie for me ...
    (microsoft.public.dotnet.framework.aspnet)
  • Forms authentication in a subfolder problem, please help
    ... When I create forms authentication at root level it works but when I move my ... <!-- CUSTOM ERROR MESSAGES ... Application-level tracing enables trace log output for every page ... private void Page_Load ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: * * * C# Application and Database Security Model * * *
    ... I've noticded that your main concern here is to provide security ... If you're going to do authentication and authorization against windows ... authenticate user against custom security account database and authroize ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.languages.csharp)
  • Runtime error when customErrors are Off
    ... "On" Always display custom messages. ... This section sets the authentication policies of the application. ... Application-level tracing enables trace log output for every page ... <!-- SESSION STATE SETTINGS ...
    (microsoft.public.dotnet.framework.aspnet)
  • RE: Membership Provider Woes
    ... perform forms authentication in your ASP.NET web application. ... you also want to add additional custom datainto the ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)