473,811 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

froms authentication loginurl not found

TJS
i'm having problems where the user is not correctly redirected to login page
if starting in a folder below the webroot.
in these cases, it always tries to go to /foldername/login.aspx

this is the web.config code:
....
<authenticati on mode="Forms">
<forms name="testAuthC ookie" loginUrl="/_security/login.aspx" />
</authentication>
....
how do I reset path so it can find the "/_security/login.aspx " file ??
Nov 19 '05 #1
6 1639
In the we.config file it needs to be <forms name="testAuthC ookie"
loginUrl="_secu rity/login.aspx" />
Note no leading slash

"TJS" <no****@here.co m> wrote in message
news:uH******** ******@TK2MSFTN GP14.phx.gbl...
i'm having problems where the user is not correctly redirected to login
page if starting in a folder below the webroot.
in these cases, it always tries to go to /foldername/login.aspx

this is the web.config code:
...
<authenticati on mode="Forms">
<forms name="testAuthC ookie" loginUrl="/_security/login.aspx" />
</authentication>
...
how do I reset path so it can find the "/_security/login.aspx " file ??


Nov 19 '05 #2
TJS
I tried removing leading slash but it still does not find the file.
"Showjumper " <kds> wrote in message
news:Oq******** *****@tk2msftng p13.phx.gbl...
In the we.config file it needs to be <forms name="testAuthC ookie"
loginUrl="_secu rity/login.aspx" />
Note no leading slash

"TJS" <no****@here.co m> wrote in message
news:uH******** ******@TK2MSFTN GP14.phx.gbl...
i'm having problems where the user is not correctly redirected to login
page if starting in a folder below the webroot.
in these cases, it always tries to go to /foldername/login.aspx

this is the web.config code:
...
<authenticati on mode="Forms">
<forms name="testAuthC ookie" loginUrl="/_security/login.aspx" />
</authentication>
...
how do I reset path so it can find the "/_security/login.aspx " file ??


Nov 19 '05 #3
Thgsi is how mine looks. and it works. Is the underscore part of the folder
name?
<forms name=".ASPXAUTH " loginUrl="login/default.aspx" timeout="25"></forms>

"TJS" <no****@here.co m> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
I tried removing leading slash but it still does not find the file.
"Showjumper " <kds> wrote in message
news:Oq******** *****@tk2msftng p13.phx.gbl...
In the we.config file it needs to be <forms name="testAuthC ookie"
loginUrl="_secu rity/login.aspx" />
Note no leading slash

"TJS" <no****@here.co m> wrote in message
news:uH******** ******@TK2MSFTN GP14.phx.gbl...
i'm having problems where the user is not correctly redirected to login
page if starting in a folder below the webroot.
in these cases, it always tries to go to /foldername/login.aspx

this is the web.config code:
...
<authenticati on mode="Forms">
<forms name="testAuthC ookie" loginUrl="/_security/login.aspx" />
</authentication>
...
how do I reset path so it can find the "/_security/login.aspx " file ??




Nov 19 '05 #4
TJS
thanks for the example but I'm still not getting the right outcome.

yes, the underscore is part of the folder name
"Showjumper " <kds> wrote in message
news:ek******** ******@TK2MSFTN GP15.phx.gbl...
Thgsi is how mine looks. and it works. Is the underscore part of the
folder name?
<forms name=".ASPXAUTH " loginUrl="login/default.aspx"
timeout="25"></forms>


Nov 19 '05 #5
You forgot the ~ in front of the /. This is .NET way of saying go to the
root of the project and start looking from there.

Before:

<forms name="testAuthC ookie" loginUrl="/_security/login.aspx" />

After:

<forms name="testAuthC ookie" loginUrl="~/_security/login.aspx" />

--
TDAVISJR
aka - Tampa.NET Koder
"TJS" <no****@here.co m> wrote in message
news:e9******** ******@TK2MSFTN GP10.phx.gbl...
thanks for the example but I'm still not getting the right outcome.

yes, the underscore is part of the folder name
"Showjumper " <kds> wrote in message
news:ek******** ******@TK2MSFTN GP15.phx.gbl...
Thgsi is how mine looks. and it works. Is the underscore part of the
folder name?
<forms name=".ASPXAUTH " loginUrl="login/default.aspx"
timeout="25"></forms>

Nov 19 '05 #6
TJS
thanks, but this does not work either
"TDAVISJR" <an*******@micr osoft.com> wrote in message
news:uz******** ******@TK2MSFTN GP10.phx.gbl...
You forgot the ~ in front of the /. This is .NET way of saying go to the
root of the project and start looking from there.

Before:

<forms name="testAuthC ookie" loginUrl="/_security/login.aspx" />

After:

<forms name="testAuthC ookie" loginUrl="~/_security/login.aspx" />

--
TDAVISJR
aka - Tampa.NET Koder
"TJS" <no****@here.co m> wrote in message
news:e9******** ******@TK2MSFTN GP10.phx.gbl...
thanks for the example but I'm still not getting the right outcome.

yes, the underscore is part of the folder name
"Showjumper " <kds> wrote in message
news:ek******** ******@TK2MSFTN GP15.phx.gbl...
Thgsi is how mine looks. and it works. Is the underscore part of the
folder name?
<forms name=".ASPXAUTH " loginUrl="login/default.aspx"
timeout="25"></forms>


Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
4845
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms Authentication set up and it worked just fine. Then I realized that I needed to have some pages unsecure. I then created 2 directories. One named Secure and the other named Public. I placed my web.config file in my
1
2522
by: MJ | last post by:
I'm building an application that has a file structure similar to the following: /myapp/user_login.aspx /myapp/user_page_1.aspx /myapp/user_page_2.aspx /myapp/user_page_3.aspx /myapp/admin/admin_login.aspx /myapp/admin/admin_page_1.aspx /myapp/admin/admin_page_2.aspx
2
1281
by: Kian Goh | last post by:
Hi there, I am trying to use an entry level security for my resources website. I followed the procedures in the MS published Self-Paced Training Kit, everything seems working as expected. However, I found that the authentication cookie never expires. I thought the default timeout is 30 minutes. Please tell me if I miss any step...
3
4874
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be protected by forms authentication. When I create forms authentication at root level it works but when I move my code up to the subfolder I get this error: Server Error in '/TestProjects/FormsAuthenticationTestingArea' Application.
9
4640
by: Hermit Dave | last post by:
Hi, I am making a web application (rather two applications) one which is host and used by customers when they are just browsing through products. The second application resides on a secure server. This is going to hold all account related information for the customers and will also be used for admin The login is implemented using forms authentication and i was just reading up about that... but as everyone already knows.... its all...
5
2881
by: Gavin Stevens | last post by:
I'm trying to figure out the ASP.NET Forms Auth I have 3 or 4 pages i want to allow anonymous access to.. Then I have 5 or 6 pages I placed in another directory in the webproject. These I want to manually authenticate users to provide acess My project has 2 web.config files... the default file <authentication mode="Forms"><forms loginUrl="Login.aspx" protection="All" timeout="30"...
4
2432
by: David | last post by:
When using forms authentication on my asp web app, I get the following error Parser Error Message: Unrecognized attribute 'loginURL' Source Error: Line 58: -- Line 59: <authentication mode="Forms" > Line 60: <forms name="TBG_PDC_Auth" loginURL="Login.aspx" path="/" timeout="30" protection="All" Line 61: </forms
4
2836
by: nicholas | last post by:
Hi, Got an asp.net application and I use the "forms" authentication mode defined in the web.config file. Everything works fine. But now I would like to add a second, different login page for the users that go in a specific folder. How can I do this?
5
1524
by: Sebastian | last post by:
Hello, I am attempting to share forms authentication between two applications but running into problems. The documentation I've been able to dig up says (to summarize) if the the Web.Config settings are the same between the apps they should work happily together. The only difference I have between the apps Web.Config settings is their <forms> loginUrl, which isn't supposed to make a difference. App1 Web.Config: <authentication...
0
10648
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10402
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9205
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3018
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.