EDITED: I've got an MVC application on a webserver inside which a classic asp website is placed. I can get the classic asp website to work correctly on my local machine version of IIS but when I publish to the webserver. Three things happen.
Firstly: I have a banner at the top of the page in a frame, this is a classic asp file. This loads correctly no problem. See code below.
<!--#include file="./forms/chkfunc.asp"-->
<%
session("MySite") = ImportMySite(ToRootedVirtual("/web.config"), "mysite", false)
%>
<HTML>
<HEAD>
<link REL="stylesheet" TYPE="text/css" href="main.css">
</HEAD>
<BODY class='top'>
<DIV id="logobox">
<IMG SRC="./images/crest.jpg">
</DIV>
<%
If session("MySite")="restart.dev" Then
response.write("<DIV id='logotext'>Neurosciences - RESTART - Development</DIV>")
End If
If session("MySite")="restart.training" Then
response.write("<DIV id='logotext'>Neurosciences - RESTART - Training</DIV>")
End If
If session("MySite")="restart" Then
response.write("<DIV id='logotext'>Neurosciences - RESTART </DIV>")
End If
%>
<DIV id="logoslice" align='center'>
<IMG SRC="./images/RESTART_logo_only.png">
</DIV>
<DIV id="upperbar"><DIV>
<%
response.write(formatdatetime(now(),1))
%>
</DIV>
</BODY>
</HTML>
Secondly: I have a navigation bar on the left hand side of the page in a separate frame which loads a simple asp file called navbar.asp. When loading this page gives me an internal server 500 error and no further details.
Thirdly: I have a main sectio to the right of the navigation bar in a separate frame which loads a simple asp file called body.asp. When loading this page gives me an internal server 500 error and no further details. See code below
<!--#include file="dbconnect.asp"-->
<HTML>
<HEAD>
<link REL="stylesheet" TYPE="text/css" href="main.css">
</HEAD>
<BODY class='main'>
<!--#include file="./MyActions/Notifications.asp"-->
<DIV class='textheader'>
Introduction
</DIV>
<DIV class='textbody'>
Welcome to the Restart web portal.
<P>
<%
'if session("authenticated")="" Then
If session("authenticated")=1 then %>
Please select an item from the menu on the left to continue. Or click on any outstanding notifications above.<BR>To enlarge the font on any of these pages, please depress the CTRL and + keys on your keyboard. Use CTRL and – keys to decrease font size.<BR>To return to the main RESTART site, click here
<% else %>
Please select LOGIN from the navigation bar, on the lefthand menu, to continue using this site.<BR>To enlarge the font on any of these pages, please depress the CTRL and + keys on your keyboard. Use CTRL and – keys to decrease font size.<BR>To return to the main RESTART site, click
<%End if%>
</DIV>
<!--#include file="incbot.asp"-->
</FORM>
</BODY>
</HTML>
I'm stumped as the topbar.asp has classic asp code, an include file and html and as such contains similar code to the other 2 files but these won't load.
With errorMode='Detailed'
enabled the error message received is:
An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator please click here to find out more about this error.
Does anyone have an idea as to where I should look to resolve this issue. If I was getting internal 500 errors for everything I'd be inclined to believe there was an issue with IIS but loading 1 out of 3 pages correctly has thrown me a curveball.