I'm trying to use forms-based authentication in my web application and it
works quite fine when I put web.config file in the root of my web directory.
But this results that all users make to login into the site which is not
desired. Obviously there are some parts in the root of the web directory
which must be allowed to public users. Actually I want a specific folder like
"Admin" be protected merely. When I put the web.config file inside the Admin
Directory (and put another regular web.config file with <authentication
mode="Windows" /> tag on the root ) then I got this error when trying to
reach my files inside the Admin directory:
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.<<
could anybody help please to fix this issue? thanks a lot
Kash