473,396 Members | 2,016 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,396 software developers and data experts.

Forms Authentication error

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 error is:
************************************************** **************************
****
Server Error in '/' Application.
----------------------------------------------------------------------------
----

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 your configuration file appropriately.

Parser 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.

Source Error:

Line 1: <configuration>
Line 2: <system.web>
Line 3: <authentication mode="Forms">
Line 4: <forms name="ASPXAUTH" loginUrl="password.aspx">
Line 5: <credentials />
Source File: c:\inetpub\wwwroot\contour\VDW\web.config Line: 3
************************************************** **************************
****

I am not really sure what this means. My root directory is set as a virtual
folder directory with the application field set.

The web.config file in my folder is:

************************************************** **************************
**************
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="ASPXAUTH" loginUrl="password.aspx">
<credentials />
</forms>
</authentication>
</system.web>
</configuration>
************************************************** **************************
**************

I am racing a deadline here, and don't understand why this won't work.

Thanks,

Tom
Nov 18 '05 #1
2 1408
I can seem to get it to work if I put the authentication code in the
web.config in the root directory, but not in the sub directory, which is the
only one I want to protect.

If I put the web.config file in the root directory/folder, all the folders
will get the logon message.

How do I get around this?

Thanks,

Tom.

"Thomas Scheiderich" <tf*@deltanet.com> wrote in message
news:10*************@corp.supernews.com...
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 error is:
************************************************** ************************** ****
Server Error in '/' Application.
-------------------------------------------------------------------------- -- ----

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 your configuration file appropriately.

Parser 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.

Source Error:

Line 1: <configuration>
Line 2: <system.web>
Line 3: <authentication mode="Forms">
Line 4: <forms name="ASPXAUTH" loginUrl="password.aspx">
Line 5: <credentials />
Source File: c:\inetpub\wwwroot\contour\VDW\web.config Line: 3
************************************************** ************************** ****

I am not really sure what this means. My root directory is set as a virtual folder directory with the application field set.

The web.config file in my folder is:

************************************************** ************************** **************
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="ASPXAUTH" loginUrl="password.aspx">
<credentials />
</forms>
</authentication>
</system.web>
</configuration>
************************************************** ************************** **************

I am racing a deadline here, and don't understand why this won't work.

Thanks,

Tom

Nov 18 '05 #2
I figured part of this out.

I can only put the authentication portion in the root directory and this is
good for all the folders under it.

The authorization section can go in any folder. This is what allows me to
control which folders are controlled.

Tom.

"Thomas Scheiderich" <tf*@deltanet.com> wrote in message
news:10*************@corp.supernews.com...
I can seem to get it to work if I put the authentication code in the
web.config in the root directory, but not in the sub directory, which is the only one I want to protect.

If I put the web.config file in the root directory/folder, all the folders
will get the logon message.

How do I get around this?

Thanks,

Tom.

"Thomas Scheiderich" <tf*@deltanet.com> wrote in message
news:10*************@corp.supernews.com...
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 error is:

************************************************** **************************
****
Server Error in '/' Application.


--------------------------------------------------------------------------
--
----

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 your configuration file appropriately.

Parser 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.

Source Error:

Line 1: <configuration>
Line 2: <system.web>
Line 3: <authentication mode="Forms">
Line 4: <forms name="ASPXAUTH" loginUrl="password.aspx">
Line 5: <credentials />
Source File: c:\inetpub\wwwroot\contour\VDW\web.config Line: 3

************************************************** **************************
****

I am not really sure what this means. My root directory is set as a

virtual
folder directory with the application field set.

The web.config file in my folder is:

************************************************** **************************
**************
<configuration>
<system.web>
<authentication mode="Forms">
<forms name="ASPXAUTH" loginUrl="password.aspx">
<credentials />
</forms>
</authentication>
</system.web>
</configuration>

************************************************** **************************
**************

I am racing a deadline here, and don't understand why this won't work.

Thanks,

Tom


Nov 18 '05 #3

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

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
1
by: MJ | last post by:
I'm building an application that has a file structure similar to the following: /myapp/user_login.aspx /myapp/user_page_1.aspx /myapp/user_page_2.aspx /myapp/user_page_3.aspx...
1
by: techfuzz | last post by:
I'm posting my problem experience and solution I found here for other ASP.NET developers. I have a web application that uses Forms Authentication with Active Directory to control access. In...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
4
by: Andrew Banks | last post by:
Can anyone help me out with why the following code in web.config <authentication mode="Forms" /> <forms loginUrl = "Secure/Login.aspx" /> </authentication> gives me the following error ...
0
by: Anonieko Ramos | last post by:
ASP.NET Forms Authentication Best Practices Dr. Dobb's Journal February 2004 Protecting user information is critical By Douglas Reilly Douglas is the author of Designing Microsoft ASP.NET...
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...
1
by: Sumaira Ahmad | last post by:
Hi, Please help me with this.. I am trying to use Forms Authentication in a sample project. I basically want to have two folders in my application , one in which I store pages that can be...
2
by: Darrel | last post by:
My app has an 'admin' folder. This is the only directory i need to apply forms authentication to. Googling seems to indicate that the solution is to just give the admin folder it's own config...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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...
0
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...
0
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,...

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.