如何在 Windows 7 上为 Classic ASP 设置 IIS 7.5? [英] How do I setup IIS 7.5 for Classic ASP on windows 7?

查看:40
本文介绍了如何在 Windows 7 上为 Classic ASP 设置 IIS 7.5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名 Java 开发人员,负责一些经典的 ASP 工作.我正在尝试在 Windows 7 64 位中设置 IIS 7.5,并且能够将服务器配置为获取 IIS 的 localhost 屏幕以显示.我找到了这个 setup 链接来自 MS,但它只有基础知识.

I'm a java developer that has been tasked with some Classic ASP work. I'm trying to setup IIS 7.5 in Windows 7 64 bit and was able to get the server configured to get the localhost screen for IIS to show up. I found this setup link from MS, but it just had the basics.

我正在尝试显示 ASP 并设置 Visual Studio 以进行调试,但我在网上找到的内容至少可以说令人困惑.

What I'm attempting is to display the ASP's and also to setup Visual Studio for debugging, but what I've found on the web has been confusing to say the least.

我有 Visual Studio 2010,asp 不在常规文件夹结构中,如 c:inetpubwwwroot,而是在主目录中,如 c:/projects/asps/以及其他名为 include、css 的文件夹,图片等... asps都在asps里面,包括目录.

I have Visual Studio 2010 and the asp's aren't in the regular folder structure like c:inetpubwwwroot, but are in a main directory, like c:/projects/asps/ with other folders called includes, css, images, etc... The asps are all in the asps and includes directories.

在给定此文件夹结构的情况下,为 Windows 7 设置经典 asp 以进行显示和调试的最简单方法是什么?顺便说一句,我相信我们在这个应用程序中使用的是 ASP 2.0,但我不确定如何判断.

What is the simplest way to setup classic asp's for display and debugging for windows 7, given this folder structure? By the way, I believe we are using ASP 2.0 in this application, but I'm not sure how to tell.

现在我在尝试访问根目录中的 default.asp 文件时遇到此错误:

Right now I'm getting this error trying to hit a default.asp file in the root:

服务器对象错误ASP 0177:800401f3"Server.CreateObject 失败/LM/W3SVC/2/ROOT/global.asa,第 48 行 800401f3

Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /LM/W3SVC/2/ROOT/global.asa, line 48 800401f3

这是它第一次尝试在 global.asa 文件中创建一个对象,所以也许我需要注册一个 dll 或其他什么?

It's when it first tries to create an object in the global.asa file, so maybe I need to register a dll or something?

推荐答案

我使用了这个链接中的信息:如何为经典 ASP 设置 IIS 7.尽管我使用的是 IIS 7.5,但我还是按照相同的说明进行操作,只是我添加了一个虚拟目录.

I used the information from this link: How to setup IIS 7 for Classic ASP. Even though I was using IIS 7.5, I followed the same instructions, except that I added in a virtual directory.

然后我注释掉了 global.asa 文件中的违规行.基本上它指向注册表以获取服务器信息,因此当我尝试在我的机器上本地运行时出现错误.

Then I commented out the offending lines in the global.asa file. Basically it was pointing to the registry to get server information, hence my error as I was trying to run things locally on my machine.

之后,我可以在根目录下点击 default.asp 并将其打开.

After that I was able to hit the default.asp at the root and bring it up.

这篇关于如何在 Windows 7 上为 Classic ASP 设置 IIS 7.5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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