468,103 Members | 1,252 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,103 developers. It's quick & easy.

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 1224
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Brett Robichaud | last post: by
2 posts views Thread by Thomas Scheiderich | last post: by
1 post views Thread by =?Utf-8?B?ZG90TmV0QnVkZHk=?= | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.