473,396 Members | 2,013 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.

Web.config File Problem

Hello
I want to implement the forms based authentication. for a sub directory in my webapplication.
I have allready applied Forms based authentication in my webapplication ,,
I have added a folder in my webapplication for the admin side of the webside and want to implement forms based authentication. so that admin users can be checked for security. i added a web.config file. but when i add the code below
<authorization>

<deny users="?" />

</authorization>

<authentication mode="Forms">

<forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login_form.aspx" />

</authentication>

It Gives me error in the webconfig file .

/************************************************** **************
Server Error in '/GPM' 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 5: <deny users="?" />
Line 6: </authorization>
Line 7: <authentication mode="Forms">
Line 8: <forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login.aspx" />
Line 9: </authentication>
Source File: c:\inetpub\wwwroot\GPM\User_Module\web.config Line: 7

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

Version Information: Microsoft NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

/************************************************** ****************

how can i correct it

Thanks
Software Developer
Chemmed Corporation USA
as**@chemmed.com
Nov 18 '05 #1
1 1277
has the virtual directory been configured as an application in IIS?

Av.
"Malik Asif Joyia" <an*****@hotmail.com> wrote in message news:u1**************@TK2MSFTNGP09.phx.gbl...
Hello
I want to implement the forms based authentication. for a sub directory in my webapplication.
I have allready applied Forms based authentication in my webapplication ,,
I have added a folder in my webapplication for the admin side of the webside and want to implement forms based authentication. so that admin users can be checked for security. i added a web.config file. but when i add the code below
<authorization>

<deny users="?" />

</authorization>

<authentication mode="Forms">

<forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login_form.aspx" />

</authentication>

It Gives me error in the webconfig file .

/************************************************** **************
Server Error in '/GPM' 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 5: <deny users="?" />
Line 6: </authorization>
Line 7: <authentication mode="Forms">
Line 8: <forms name=".ASPXAUTH" protection="All" timeout="60" loginUrl="login.aspx" />
Line 9: </authentication>
Source File: c:\inetpub\wwwroot\GPM\User_Module\web.config Line: 7

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

Version Information: Microsoft NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573

/************************************************** ****************

how can i correct it

Thanks
Software Developer
Chemmed Corporation USA
as**@chemmed.com
Nov 18 '05 #2

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

Similar topics

1
by: José Joye | last post by:
Hello, I have an assembly that is used by a VB6 application. This application can be a normal exe or an ActiveX (called through CCW). My assembly needs to get extra info from a config file. In...
1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
7
by: hplloyd | last post by:
i have a windows app which has an app.config file in the solution. The config file holds information such as connection string details. When I create a setup project and include the primary...
5
by: AAguiar | last post by:
I have an asp.net project where the code behind the aspx page calls a c# class which makes calls to a managed static C++ class. The C# class works fine when the asp net worker process starts, when...
25
by: n3crius | last post by:
hi, i just got a web host with asp.net , seemed really cool. aspx with the c# or vb IN the actual main page run fine, but when i use codebehind and make another source file ( a .cs) to go with...
2
by: Luke Dalessandro | last post by:
I have an application with the following layout /root/ /root/Default.aspx /root/web.config /root/child/ /root/child/web.config web.config has a custom configuration section "testSection"...
1
by: savajx1 | last post by:
I am using the new "web deployment addin" in VS 2005 to output my web site. The web site is correctly output (assemblies generated in the \bin subdirectory). The web site on my developement...
3
by: Richard Lewis Haggard | last post by:
I have a test application that is calling an assembly that reads some strings out of a config file. Normally, this assembly supports a web application and the information can be read just fine....
13
by: Khodr | last post by:
Hello, I am using VS.NET 2003 and vb. I build my application MyApp and it generates MyApp.exe.config. So now MyApp.exe reads parameters from MyApp.exe.config. Great and no problem! I need to...
12
by: dbuchanan | last post by:
Hello, (Is this the proper newsgroup?) === Background === I am building a solution with two projects. One project is my data access layer which contains my DataSet as an xsd file. The XSD...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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...
0
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,...
0
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...
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...

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.