Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
617 views
in Technique[技术] by (71.8m points)

iis 7 - setting up classic asp site on iis7, site runs but can see server tags

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>

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

Can anyone help me?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

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

Running classic ASP on IIS 7

Let me know if this worked!

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

Tips for Classic ASP developers on IIS7


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...