Problem with Web.Config - TechRepublic
General discussion
July 6, 2004 at 11:47 PM
aniruddha_mukherjee

Problem with Web.Config

by aniruddha_mukherjee . Updated 21 years, 8 months ago

While trying to access the admin section error ocuring :”
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 have a web site called KK developed in Asp.Net, this site will be accessed by anonymous users and hence in the web.config file the authentication mode is “none” and the IIS auth is also anonymous. But if some body trying to access the ADMIN section then it has to redirect to the login page for which I have taken a login page. I have a folder called “Admin” in the application and I am placing another web.config file there mentioning the authentication mode=”Form” and the loginurl as the url of the page. But while accessing the admin pages showing the above error.
Folks I seek help immediately

This discussion is locked

All Comments