简体   繁体   English

如何设置 IIS 来调试经典 ASP?

[英]How do I set up IIS to debug classic ASP?

How do I set up IIS to debug classic ASP?如何设置 IIS 来调试经典 ASP?

Help Needed Setting up Classic ASP Debugging设置经典 ASP 调试需要帮助

According to what I have seen on social media, in order for me to set up my computer for writing and debugging Classic ASP, I need to set up IIS a certain way -- which I did -- and then I have to enable ASP by doing the following:根据我在社交媒体上看到的内容,为了让我的计算机能够编写和调试 Classic ASP,我需要以某种方式设置 IIS——我这样做了——然后我必须通过以下方式启用 ASP执行以下操作:

IIS7 - IIS > ASP > Compilation > Debugging Properties > Enable Server-side Debugging IIS7 - IIS > ASP > 编译 > 调试属性 > 启用服务器端调试

And I am stuck on this.我坚持这一点。 Please, someone give me an idea of what I need to click on.请有人告诉我我需要点击什么。

在此处输入图像描述

The steps to implement your requirements can be found easily from inte.net.可以从 inte.net 轻松找到实现您的要求的步骤。 The reason why you can't see " ASP " module in your screenshot is you didn't enable " ASP " feature.您在屏幕截图中看不到“ ASP ”模块的原因是您没有启用“ ASP ”功能。 Please refer to the steps below:请参考以下步骤:

1. Open your " Control Panel " --> " Programs " --> " Turn Windows feature on or off ". 1.打开“控制面板”-->“程序”-->“打开或关闭 Windows 功能”。

在此处输入图像描述

2. Then you can find " ASP " option under " Inte.net Information Services " --> " World Wide Web Services " --> " Application Development Features " like below screenshot. 2.然后你可以在“ Inte.net Information Services ”-->“ World Wide Web Services ”-->“ Application Development Features ”下找到“ ASP ”选项,如下图所示。

在此处输入图像描述

3. Just enable " ASP " and then go to your IIS manager, choose the site which you want to edit under " Sites ". 3.只需启用“ ASP ”,然后go到您的IIS经理,在“站点”下选择您要编辑的站点。 Then you can find " ASP " module.然后你可以找到“ ASP ”模块。

Hury Shen posted a very good answer. Hury Shen 发布了一个非常好的答案。 I might be ready now to have a go at making my first "Hello World" classic ASP program.我现在可能已经准备好使用 go 来制作我的第一个“Hello World”经典 ASP 程序。

The answer provides content that even the online Microsoft Documentation I have read has left off.答案提供的内容甚至连我阅读过的在线 Microsoft 文档都没有。 Namely, it is checking the ASP box.即,它正在检查 ASP 框。

I clicked on the help button and this lead me to a browser page which explained how to create an ASP page.我单击了帮助按钮,这使我进入了一个浏览器页面,该页面解释了如何创建 ASP 页面。 https://bbsimg.ngfiles.com/394000/iu_394915_8507221.png

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831768(v=ws.11)?redirectedfrom=MSDN https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831768(v=ws.11)?redirectedfrom=MSDN

This link offers this help:此链接提供此帮助:

在此处输入图像描述

and this takes me to a new page这将我带到一个新页面

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831387(v=ws.11) https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/hh831387(v=ws.11)

I have accomplished the prerequisite and step 1 on the list.我已经完成了列表中的先决条件和步骤 1。 So I go to step 2所以我 go 到第 2 步

Step 2: Add a Classic ASP Website You can perform this procedure by using the user interface (UI), by running Appcmd.exe commands in a command-line window, by editing configuration files directly, or by writing WMI scripts.第 2 步:添加经典 ASP 网站 您可以通过使用用户界面 (UI)、在命令行 window 中运行 Appcmd.exe 命令、直接编辑配置文件或编写 WMI 脚本来执行此过程。 To add a website by using the UI Open IIS Manager.使用 UI 添加网站 打开 IIS 管理器。 For Windows Server 2012, on the Start page click the Server Manager tile, and then click OK.对于 Windows Server 2012,在开始页面上单击服务器管理器磁贴,然后单击确定。 On the Server Manager Dashboard, click the Tools menu, and then click Inte.net Information Services (IIS) Manager.在服务器管理器仪表板上,单击工具菜单,然后单击 Inte.net 信息服务 (IIS) 管理器。 For Windows 8, on the Start page type Control Panel, and then click the Control Panel icon in the search results.对于 Windows 8,在开始页面上键入控制面板,然后单击搜索结果中的控制面板图标。 On the Control Panel screen, click System and Security, click Administrative Tools, and then click Inte.net Information Services (IIS) Manager.在控制面板屏幕上,单击系统和安全,单击管理工具,然后单击 Inte.net 信息服务 (IIS) 管理器。 In the Connections pane, right-click the Sites node in the tree, and then click Add Website.在“连接”窗格中,右键单击树中的“站点”节点,然后单击“添加网站”。 In the Add Website dialog box, type a friendly name for your website in the Site name box.在“添加网站”对话框的“网站名称”框中,为您的网站键入一个好记的名称。 If you want to select a different application pool than the one listed in the Application Pool box, click Select. In the Select Application Pool dialog box, select an application pool from the Application Pool list and then click OK.如果您想要 select 与应用程序池框中列出的应用程序池不同,请单击 Select。在 Select 应用程序池对话框中,select 应用程序池列表中的应用程序池,然后单击确定。 In the Physical path box, type the physical path of the Web site's folder, or click the browse button (...) to navigate the file system to find the folder.在“物理路径”框中,键入 Web 站点文件夹的物理路径,或单击浏览按钮 (...) 在文件系统中导航以查找文件夹。 If the physical path that you entered in step 5 is to a remote share, click Connect as to specify credentials that have permission to access the path.如果您在步骤 5 中输入的物理路径指向远程共享,请单击“连接为”以指定有权访问该路径的凭据。 If you do not use specific credentials, select the Application user (pass-through authentication) option in the Connect As dialog box.如果不使用特定凭据,select 连接为对话框中的应用程序用户(传递身份验证)选项。 Select the protocol for the Web site from the Type list. Select 类型列表中 Web 站点的协议。 The default value in the IP address box is All Unassigned. IP地址框默认为全部未分配。 If you must specify a static IP address for the Web site, type the IP address in the IP address box.如果必须为 Web 站点指定 static IP 地址,请在 IP 地址框中键入 IP 地址。 Type a port number in the Port text box.在端口文本框中键入端口号。 Optionally, type a host header name for the Web site in the Host Header box.或者,在主机 Header 框中键入 Web 站点的主机名称 header。 If you do not have to make any changes to the site, and you want the Web site to be immediately available, select the Start Web site immediately check box.如果您不必对站点进行任何更改,并且希望 Web 站点立即可用,请选中 select 立即启动 Web 站点复选框。 Click OK.单击确定。

It has been a long time since I have done anything like this.我已经很久没有做过这样的事情了。 Basically, I assume I am turning my desktop computer into a web server.基本上,我假设我正在将我的台式计算机变成一台 web 服务器。 Am I right?我对吗? If this is so, do I have to follow through with all the overhead and steps in buying a namespace?如果是这样,我是否必须完成购买命名空间的所有开销和步骤? I hope not.我希望不是。

I have questions about step 4: "If you want to select a different application pool than the one listed in the Application Pool box, click Select. In the Select Application Pool dialog box, select an application pool from the Application Pool list and then click OK."我对步骤 4 有疑问:“如果您想要 select 与应用程序池框中列出的应用程序池不同,请单击 Select。在 Select 应用程序池对话框中,select 应用程序池列表中的应用程序池,然后单击好的。” As I type out the site name, the field for "Application pool" repeats what I type for the site name.当我输入站点名称时,“应用程序池”字段会重复我为站点名称输入的内容。 Since I am not creating a new application pool -- or I do not want to -- I click on select and choose the DefaultAppPool.由于我没有创建新的应用程序池——或者我不想创建——我单击 select 并选择 DefaultAppPool。

Since I am only wanting to write test code locally, I connect as an application user.因为我只想在本地编写测试代码,所以我以应用程序用户的身份连接。

I did not put in an IP address.我没有输入 IP 地址。

It complained that I was using port 80. So I switched it to port 79 and clicked ok.它抱怨说我使用的是 80 端口。所以我将它切换到 79 端口并单击确定。

So now I think I have an asp website.所以现在我想我有一个asp网站。 What do you think?你怎么认为?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM