B
Bijoy Naick
My web application has the following structure
RootFolder
- file1.aspx
- file2.aspx
- web.config
- admin_folder
- protectedFile1.aspx
- web.config
RootFolder is setup as a Virtual Directory and has script only
permissions.
The web.config file under root is standard and grants access to
everyone.
The web.config file in admin_folder has forms authentication turned on
denies access to all files. So when a user tries to access any file in
the admin_folder, he should be promoted to login.
Problem is when I access a protected page I get an 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.
How should I be setting up the config files to allow free access to
files under root and force login for files under admin_folder?
RootFolder
- file1.aspx
- file2.aspx
- web.config
- admin_folder
- protectedFile1.aspx
- web.config
RootFolder is setup as a Virtual Directory and has script only
permissions.
The web.config file under root is standard and grants access to
everyone.
The web.config file in admin_folder has forms authentication turned on
denies access to all files. So when a user tries to access any file in
the admin_folder, he should be promoted to login.
Problem is when I access a protected page I get an 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.
How should I be setting up the config files to allow free access to
files under root and force login for files under admin_folder?