473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Form authentication in a virtual directory

Is it possible to get forms authentication to work for a virtual directory
in a site?
I have been trying with the simplest MSDN sample but it doesn't seem to
work. I have tried in a virtual directory on my dev box and on a virtual
directory on a production server, but I never get authenticated, the login
page is the ony thing shown. If I on the other hand put it in the root of a
site it works.

Regards
John Boghossian
Nov 18 '05 #1
2 1322
On 8/20/2004 1:28 AM, John Boghossian wrote:
Is it possible to get forms authentication to work for a virtual directory
in a site?
I have been trying with the simplest MSDN sample but it doesn't seem to
work. I have tried in a virtual directory on my dev box and on a virtual
directory on a production server, but I never get authenticated, the login
page is the ony thing shown. If I on the other hand put it in the root of a
site it works.

Regards
John Boghossian

Sure have, most of my development is that way of course (don't setup
multiple sites, use virt directories). Are you sure that ASP.NET is
installed correctly (re-run aspnet_regiis -i)...also, are you positive
that you are authenticating the correct info; I mean, how are you
authenticating? Web.config entries, custom roles, etc. Have you
debugged it (if possible) and made sure it's not invalid credentials
compared to what the server wants?

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 18 '05 #2
Hello Craig,

thanks for your input.

I actually got it to work yesterday after rebooting the machine. Strange
huh...
Regards
John

"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:et*************@tk2msftngp13.phx.gbl...
On 8/20/2004 1:28 AM, John Boghossian wrote:
Is it possible to get forms authentication to work for a virtual directory in a site?
I have been trying with the simplest MSDN sample but it doesn't seem to
work. I have tried in a virtual directory on my dev box and on a virtual
directory on a production server, but I never get authenticated, the login page is the ony thing shown. If I on the other hand put it in the root of a site it works.

Regards
John Boghossian

Sure have, most of my development is that way of course (don't setup
multiple sites, use virt directories). Are you sure that ASP.NET is
installed correctly (re-run aspnet_regiis -i)...also, are you positive
that you are authenticating the correct info; I mean, how are you
authenticating? Web.config entries, custom roles, etc. Have you
debugged it (if possible) and made sure it's not invalid credentials
compared to what the server wants?

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET

Nov 18 '05 #3

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

Similar topics

4
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the...
4
by: Matt | last post by:
The ASP.NET application connects to MS-SQL database, and I already disabled Anonymous access in IIS, and add ASPNET user in it. When I run the application, it throws the following error on windows...
12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
2
by: Thomas Scheiderich | last post by:
I am trying to set up forms authentication in my IIS pages. I have a folder inside of my root folder I am trying to protect and I am getting an error when a page in the folder is accessed. The...
13
by: david | last post by:
I can not figure out what is the problem that I can protect ASP.NEt form resource but not some other type of files, for example, images. All my aspx forms located in Demo folder and image files...
0
by: COHENMARVIN | last post by:
I have a web site where I put my asp.net application in a folder called /asp.net/hotelallocation. I want it to be protected by a password, so I put a web.config file in that folder. But now when...
1
by: =?Utf-8?B?ZG90TmV0QnVkZHk=?= | last post by:
Hi, I have a created a new website (Default web site is stopped) for a classic ASP application. The local path under Home Directory is F:\inetpub\wwwroot\codebase and the Anonymous access, Basic...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.