在 iis7 上设置经典 asp 站点,站点运行但可以看到服务器标签 [英] setting up classic asp site on iis7, site runs but can see server tags

查看:11
本文介绍了在 iis7 上设置经典 asp 站点,站点运行但可以看到服务器标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我收到了一个在 IIS7 上设置的经典 asp 站点.我太年轻了,不知道任何关于经典 asp 的信息,而且我在网上找不到任何关于我的问题的文档.我已经安装了 asp 并且启用了 classicasp *.asp 处理程序.当我访问该站点时,主页加载正常,但我可以在页面顶部看到一个服务器标签:

Hi I have been sent a classic asp site to set up on IIS7. Im too young to know anything abuout classic asp and i cant find any documentation about my problem online. I have installed asp and the classicasp *.asp handler is enabled. When i go to the site the homepage loads ok but i can see a server tag at the top of the page:

<!--#include file="cp/inc_func.asp"-->

<% 
OpenDB()
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" -->
<head>

我可以在前端页面的顶部看到 <% OpenDB() %> 标签.

I can see the <% OpenDB() %> tag at the top of the page on the front end.

谁能帮帮我?

推荐答案

这意味着您的代码不是由 ASP Classic 引擎执行的.这意味着您在 IIS 中的 ASP Classic 设置可能不正确.

This means your code is NOT executed by the ASP Classic engine. This means that your ASP Classic setup in IIS may not be correct.

尝试以下有关在 IIS7 中设置 ASP Classic 的教程:

Try the following tutorial on setting up ASP Classic in IIS7:

在 IIS 7 上运行经典 ASP

让我知道这是否有效!

这里还有一些关于在 IIS7 上运行 Classic ASP 的常见技巧:

Also here are some common tips on running Classic ASP on IIS7:

IIS7 上的经典 ASP 开发人员提示

这篇关于在 iis7 上设置经典 asp 站点,站点运行但可以看到服务器标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆