PDA

View Full Version : Authentication Config within an Application


davidseye
05-03-2003, 06:44 AM
I am building an app that does not require authentication for the main process, only if the user selects to go into a certain part of the application, contained in a sub-directory of the application.

My problem.
If I put authentication in the web config file at the application's root it wants to authenticate every user that enters. When I put authentication in a web.config in the sub-directory, an error is generated that says that authentication cannot exist out of the application level, because 'allowDefinition="MachineToApplication'. I changed the value to "Everywhere" in the machine.config file in the root of the .Net Framework but I got the error that it cannot be set for a subdirectory.

My question:
How do I use authentication in a sub-directory of an application only?

davidseye
05-03-2003, 07:03 AM
I worked it out. I thought that making the sub-directory an application root would solve the problem but though I did it did not seem to work. I gave the sub-directory it's own app name. When I tried it again I gave the sub-application root a name with the application name in it 'application/subapplication' and it worked.