Asp.net mvc 内部服务器错误500 asp经典mvc应用程序

Asp.net mvc 内部服务器错误500 asp经典mvc应用程序,asp.net-mvc,asp.net-mvc-4,iis,asp-classic,Asp.net Mvc,Asp.net Mvc 4,Iis,Asp Classic,编辑: 我在一个Web服务器上有一个MVC应用程序,其中放置了一个经典的asp网站。我可以让经典的asp网站在我的本地机器版本的IIS上正常工作,但是当我发布到Web服务器时。发生了三件事 首先:我有一个横幅在页面顶部的一个框架,这是一个经典的asp文件。这没有问题。请参阅下面的代码 <!--#include file="./forms/chkfunc.asp"--> <% session("MySite") = ImportMySite(ToRootedVirtual("/w

编辑: 我在一个Web服务器上有一个MVC应用程序,其中放置了一个经典的asp网站。我可以让经典的asp网站在我的本地机器版本的IIS上正常工作,但是当我发布到Web服务器时。发生了三件事

首先:我有一个横幅在页面顶部的一个框架,这是一个经典的asp文件。这没有问题。请参阅下面的代码

<!--#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>

有人知道我应该在哪里解决这个问题吗。如果我每件事都有500个内部错误,我倾向于认为IIS有问题,但正确加载3个页面中的1个页面给我带来了一个曲线球。

所以在Web服务器上正确设置IIS之后,现在,几乎所有内容都正常工作:

500个内部服务器错误说明了什么问题,您是否了解触发错误的文件中哪一行的详细信息?如果没有,您是否在IIS中启用了详细错误?你能在没有代码的情况下发布工作文件的代码和一个出错文件吗?你希望得到什么帮助查看您在显示完整错误时是否遇到问题这应该会有所帮助-查看更新后的问题,这实际上取决于body.asp中包含的文件在做什么。您在body.asp中有很多。例如,如果它们实例化COM对象,您是否在部署站点的服务器上安装/注册了这些组件?只是为了让您知道列出的错误没有详细的错误,这是在错误未发送到浏览器时显示的默认错误。在IIS中的ASP部分检查“调试属性”下的“将错误发送到浏览器”是否设置为True。这适用于IIS 7及更高版本。很遗憾,我无法访问Web服务器的IIS。我已经向我的服务器管理员询问了这一点,所以希望我能尽快得到回复。
<!--#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>
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.