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?
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?