T
tshad
I am trying to use my IIS web server on my local machine for testing my web
site.
The problem is that periodically it will not use the virtual directory for
the root.
This happens for my logon page, for instance.
If I have the following Virtual Directory: Staff.
I would call this by using http://localhost/Staff/default.aspx.
This works fine most of the time. But if I tried to uset
http://localhost/Staff/App/page.aspx, I get a 404 error. You need to log on
to get to this page, so the program works as expected and calls my Logon
page, but it calls it without the Virtual Directory - even though the
Virtual Directory is in the ReturnURL parameter:
http://localhost/App/EELogin.aspx?ReturnUrl=/Staff/App/page.aspx
It should be:
http://localhost/Staff/App/EELogin.aspx?ReturnUrl=/Staff/App/page.aspx
As I said it works for other things that start from the root, such as my
images and buttons (/images/button.jpg for example).
Why doesn't it use the Virtual Directory for this case?
Thanks,
Tom
site.
The problem is that periodically it will not use the virtual directory for
the root.
This happens for my logon page, for instance.
If I have the following Virtual Directory: Staff.
I would call this by using http://localhost/Staff/default.aspx.
This works fine most of the time. But if I tried to uset
http://localhost/Staff/App/page.aspx, I get a 404 error. You need to log on
to get to this page, so the program works as expected and calls my Logon
page, but it calls it without the Virtual Directory - even though the
Virtual Directory is in the ReturnURL parameter:
http://localhost/App/EELogin.aspx?ReturnUrl=/Staff/App/page.aspx
It should be:
http://localhost/Staff/App/EELogin.aspx?ReturnUrl=/Staff/App/page.aspx
As I said it works for other things that start from the root, such as my
images and buttons (/images/button.jpg for example).
Why doesn't it use the Virtual Directory for this case?
Thanks,
Tom