Ask a Question related to ASP.NET Security, Design and Development.
-
Marcus Olsson #1
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
-
"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... -
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... -
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... -
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,... -
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... -
Mike Moore [MSFT] #2
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.
--------------------microsoft.public.dotnet.framework.aspnet.security: 7802> 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> 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



Reply With Quote

