468,133 Members | 1,120 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

What should be my virtual directory using Form authentication in asp.net?

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 I try to access
any page in that folder, I get an error message:
"it is an error to use a section registered as
allowDefinition='MachineToApplication' beyond application level. This
error can be caused by a virtual directory not being configured as an
application in IIS"
I looked at the message, and I wasn't clear what should be a virtual
directory and what should be an application.
Should I tell my server administrator to make /asp.net/hotelallocation
into a virtual directory? should I tell him to make it into an
application? How would he do this? What does it mean?
The (short) web.config file follows:


<authentication mode="Forms">
<forms name="MyApp02" path="/asp.net/hotelallocation/" loginUrl =
protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="agent" password="test" />

<allow users="agent" />
<deny users="?" />

Thanks for any help.

Nov 19 '05 #1
0 908

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Jacky Luk | last post: by
10 posts views Thread by mklapp | last post: by
10 posts views Thread by Wm. Scott Miller | last post: by
2 posts views Thread by John Boghossian | last post: by
4 posts views Thread by david | last post: by
reply views Thread by Rudy | last post: by
6 posts views Thread by Scott M. | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.