473,545 Members | 2,697 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 ='MachineToAppl ication' 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:

<configuratio n>
<system.web>

<authenticati on 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>

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

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

Nov 19 '05 #1
0 1049

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

Similar topics

2
14411
by: Jacky Luk | last post by:
Hi all, If I need to make a C# application, do I need to set up a virtual dir such as inetroot on the Harddisks. How do I set up such thingy? Thanks Jack
4
1382
by: Leszek | last post by:
Hello, I need to implement form based authentication in my WebForm application. When I deployed it I have received the following the error: ========= Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...
10
1505
by: mklapp | last post by:
Hello I have a proxy based upon a webservice. The machine.config reports it lacks access to load the proxy. What account name is associated with the attempt to load the Proxy and what permissions (other than the obvious read/execute) does that account need mklap
10
3629
by: Wm. Scott Miller | last post by:
We have a intranet site that allows one of our departments to search a set of pdfs and then look at them. Only problem is that only they and us geeks should be allowed to see the pdfs. We have it locked down except for when a person directly types in the url to a pdf. Currently, the PDFs are in a virtual directory off the root of the...
2
1329
by: John Boghossian | last post by:
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...
4
2937
by: david | last post by:
I basically use the following code to display the directory and file names in the WWWROOT, but can not show the virtual directory. ---- Dim path As String = Server.MapPath(x) Dim di As DirectoryInfo = New DirectoryInfo(path) Listing.DataSource = di.GetFileSystemInfos() Listing.DataBind() ---- Anyone can help me about how to list the...
0
806
by: Rudy | last post by:
Hello All! Been struggling with this for a few days. Taken many diffrent approches, but now I'm at the point I just need it to work. Everything I tried doesn't work, I'm sure it has something to do with my lack of understanding. So if anybody can give me a solution or some good articles to get me on the right track, that would be great!!! ...
2
2143
by: tshad | last post by:
I am trying to use my IIS web server on my local machine for testing my web site. The problem is that periodically it will not use the virtual directory for the root. This happens for my logon page, for instance. If I have the following Virtual Directory: Staff.
6
3507
by: Scott M. | last post by:
I didn't get a resolution to this in my earlier post, so I'll try again: System: Windows XP Pro. (SP2) with IIS installed and running PRIOR to VS 2008 Pro. installation. VS 2008 Pro. (full installation). Installations and testing is all done via an Administrator account. If I simply create a new ASP .NET Web Application Project (WAP)...
0
7502
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7434
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7692
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. ...
0
7946
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...
1
7457
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...
0
7791
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6026
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...
0
5078
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3470
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.