R
raizen
I have a sub-directory named admin and when a user tries to access the page
inside "admin" folder I would like to use form authentication to validate the
user. It says on many forums that I need the "admin" folder to be virtual
directory which is set as an application so I did. The login page inside
"admin" folder uses code-behind. When I compile and try to view the
login.aspx page I get a "Could not load type 'xxxxxx.login'" Sorta figured
that the page cannot find the bin directory which is in the root directory so
I coded without using code-behind and wrote the authentication script inside
the login.aspx page and this worked. However after the page redirect to the
another page inside "admin" folder. That page fails cause it cannot find the
"bin" directory...
If I don't set "admin" folder as virtual folder and as application, I
receive the following error:
"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 am desparate...I've been at this problem for last 5 days. Been to all
forums and searched all over internet website.
Could anyone help me out why this is not working properly?
Thanks in advance.
inside "admin" folder I would like to use form authentication to validate the
user. It says on many forums that I need the "admin" folder to be virtual
directory which is set as an application so I did. The login page inside
"admin" folder uses code-behind. When I compile and try to view the
login.aspx page I get a "Could not load type 'xxxxxx.login'" Sorta figured
that the page cannot find the bin directory which is in the root directory so
I coded without using code-behind and wrote the authentication script inside
the login.aspx page and this worked. However after the page redirect to the
another page inside "admin" folder. That page fails cause it cannot find the
"bin" directory...
If I don't set "admin" folder as virtual folder and as application, I
receive the following error:
"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 am desparate...I've been at this problem for last 5 days. Been to all
forums and searched all over internet website.
Could anyone help me out why this is not working properly?
Thanks in advance.