Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > What should be my virtual directory using Form authentication in asp.net?

Reply
Thread Tools

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

 
 
COHENMARVIN
Guest
Posts: n/a
 
      08-18-2005
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:

<configuration>
<system.web>

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

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

</system.web>
</configuration>
Thanks for any help.
Marvin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
include virtual in virtual directory? rockdale ASP General 3 09-04-2008 02:36 PM
physical path to virtual path under virtual directory =?Utf-8?B?SmVmZiBCZWVt?= ASP .Net 4 08-01-2007 02:59 PM
Form authentication in a virtual directory John Boghossian ASP .Net Security 1 08-25-2004 12:29 PM
Form authentication in a virtual directory John Boghossian ASP .Net 2 08-23-2004 06:14 AM
Should 'public virtual' always become 'private virtual'? & using private inheritance qazmlp C++ 19 02-04-2004 12:37 AM



Advertisments