Error page that is not in "Forms Auth"

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Error page that is not in "Forms Auth"

    Hi!

    My web application directory is under Forms
    Authentication. So if you go to page1.aspx you will be
    redirected to login.aspx. login.aspx checks the database
    for user and password information. But...

    if the connection to the database is broken I want to
    redirect to an error page that is not under Forms
    Authentication, but located inside the web application
    and its directory.

    Is there a way to exclude certain page/pages from the
    Forms Authentication inside the webconfig? or how do I
    solve the problem the best/right way?

    Please help!

    Regards
    /Marcus
    Marcus Olsson Guest

  2. Similar Questions and Discussions

    1. "Page" and "Rect" props of the Field prop in Javascript API
      Page property of the Field property in Javascript Acrobat API returns an array of pages that this field exists in. On the other hand, "rect" property...
    2. Getting error "No document is currently open"using SDK 9 forms automation
      I have Acrobat Pro 9 installed and am trying to use the FormsAutomation VB.net project without modification. (I am using VS2008.) It goes through...
    3. Error Message when using "Link-->Create New Page" withTemplates
      I have a site that used a custom CMS before, but now we are porting it over to ASP and using contribute. I got all the files set up right and made...
    4. One of those "send this page to a friend forms"
      Does anyone know how to to create one of these?? Are they hard to create? (working in PHP) EG. http://www.ciao.co.uk/send.php/Pid/1%2C13 Also,...
    5. Error: System.Windows.Forms.SendKeys.SendWait("%{T}")
      I am trying to send the key Alt + T using the send wait method: syntax: System.Windows.Forms.SendKeys.SendWait("%{T}") But I am receiving the...
  3. #2

    Default RE: Error page that is not in "Forms Auth"

    Hi Marcus,

    You can use "Location" in the web.config file. Here's a portion of my
    web.config which allows annonymous access to two pages, the login page plus
    "ShowUsers.aspx".

    <configuration>

    <system.web>

    <authentication mode="Forms">
    <forms loginUrl="/FormsAuth1/login.aspx" name="MyAuthCookie"
    protection="All" path="/FormsAuth1" timeout="20" >
    </forms>
    </authentication>

    <authorization>
    <deny users ="?" />
    <allow users = "*" />
    </authorization>

    </system.web>

    <location path="ShowUser.aspx">
    <system.web>
    <authorization>
    <allow users ="?" />
    </authorization>
    </system.web>
    </location>

    </configuration>

    Thank you, Mike
    Microsoft, ASP.NET Support Professional

    Microsoft highly recommends to all of our customers that they visit the
    [url]http://www.microsoft.com/protect[/url] site and perform the three straightforward
    steps listed to improve your computer’s security.

    This posting is provided "AS IS", with no warranties, and confers no rights.


    --------------------
    > Content-Class: urn:content-classes:message
    > From: "Marcus Olsson" <anonymous@discussions.microsoft.com>
    > Sender: "Marcus Olsson" <anonymous@discussions.microsoft.com>
    > Subject: Error page that is not in "Forms Auth"
    > Date: Mon, 8 Dec 2003 08:29:34 -0800
    > Lines: 20
    > Message-ID: <05cc01c3bda8$76c42fb0$a001280a@phx.gbl>
    > MIME-Version: 1.0
    > Content-Type: text/plain;
    > charset="iso-8859-1"
    > Content-Transfer-Encoding: 7bit
    > X-Newsreader: Microsoft CDO for Windows 2000
    > Thread-Index: AcO9qHbEomIgWxJyRJyKsI7pFN4f6w==
    > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
    > Newsgroups: microsoft.public.dotnet.framework.aspnet.security
    > Path: cpmsftngxa07.phx.gbl
    > Xref: cpmsftngxa07.phx.gbl
    microsoft.public.dotnet.framework.aspnet.security: 7802
    > NNTP-Posting-Host: tk2msftngxa08.phx.gbl 10.40.1.160
    > X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
    >
    > Hi!
    >
    > My web application directory is under Forms
    > Authentication. So if you go to page1.aspx you will be
    > redirected to login.aspx. login.aspx checks the database
    > for user and password information. But...
    >
    > if the connection to the database is broken I want to
    > redirect to an error page that is not under Forms
    > Authentication, but located inside the web application
    > and its directory.
    >
    > Is there a way to exclude certain page/pages from the
    > Forms Authentication inside the webconfig? or how do I
    > solve the problem the best/right way?
    >
    > Please help!
    >
    > Regards
    > /Marcus
    >
    Mike Moore [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139