I have been tasked to debug an ASP website but have little experience with how ASP applications work within the iis web server.
Setup:
WinNT 4.0 service pak 6
MDAC 2.10
iis
ASP
Originally developed using Visual Interdev.
The issue: The site previously worked but after the server was wiped clean, re-installed, and then the backed up data was put back on, the site no longer functions properly.
Details:
First- the site is broken into two areas, We'll call them application desk and search. The application desk is the portal where the user actually logs in and reaches the rest of the web's functionality. When the logged in user clicks on the link to go to the search area, the user_id is supposed to be getting passed from the application desk to the search area but it doesn't appear that it is.
The iis folder structure:
Project
-Project name
--Application desk (iis' icon identifies this as an app)
---global.asa
---other application desk files
--Search (iis does not identify this as an app)
---search files
The code:
<%@ Language=VBScript %>
<% Response.Buffer = True
If Session("userid"
= "" Then
Response.Redirect "error message.htm"
End If
%>
Result:
The user is always redirected to the error message.
Sidenote:
I have the same website running on another server but the iis does not identify either one as an application. (In the properties, the setting is "default" and it is greyed out. It works in this configuration)
From reading my ASP book, I know the original folder configuration is probably not correct (the search folder should be under the application folder with the application object).
Any tips or help would be greatly appreciated.
Thanks.
Setup:
WinNT 4.0 service pak 6
MDAC 2.10
iis
ASP
Originally developed using Visual Interdev.
The issue: The site previously worked but after the server was wiped clean, re-installed, and then the backed up data was put back on, the site no longer functions properly.
Details:
First- the site is broken into two areas, We'll call them application desk and search. The application desk is the portal where the user actually logs in and reaches the rest of the web's functionality. When the logged in user clicks on the link to go to the search area, the user_id is supposed to be getting passed from the application desk to the search area but it doesn't appear that it is.
The iis folder structure:
Project
-Project name
--Application desk (iis' icon identifies this as an app)
---global.asa
---other application desk files
--Search (iis does not identify this as an app)
---search files
The code:
<%@ Language=VBScript %>
<% Response.Buffer = True
If Session("userid"
Response.Redirect "error message.htm"
End If
%>
Result:
The user is always redirected to the error message.
Sidenote:
I have the same website running on another server but the iis does not identify either one as an application. (In the properties, the setting is "default" and it is greyed out. It works in this configuration)
From reading my ASP book, I know the original folder configuration is probably not correct (the search folder should be under the application folder with the application object).
Any tips or help would be greatly appreciated.
Thanks.