如何在 IIS 5.1 (WinXP Pro) 下与 .NET 和 .NET 一起运行经典 ASP 脚本 CF?

发布于 2024-07-07 03:38:28 字数 354 浏览 5 评论 0原文

我在设置开发环境时遇到问题。 我一直在研究 ColdFusion 和 .NET 应用程序,直到最近我还不需要接触 IIS。 现在,我必须为一些一次性工作设置一个经典的 ASP 应用程序。

我在 IIS 中添加了一个虚拟目录,并将其指向本地计算机上的实际代码库。 然后我将安全性设置为低(对于 ISAPI 扩展,即 ASP)并允许脚本执行。 但由于某种原因,如果我点击任何 .asp 页面,它就会说找不到该页面。 然而,HTML 和静态文件加载得很好。

编辑:URLScan 修复似乎已经完成了。 在另一个浏览器(即不是 IE6)中启动该应用程序,我得到了更好的错误报告。 看起来我们缺少一些包含,但它正在执行脚本。 谢谢!

I'm running into a problem setting up my development environment. I've been working on ColdFusion and .NET applications up until recently I haven't needed to touch IIS. Now, I have to set up a classic ASP application for some one-off work.

I added a virtual directory in IIS and pointed it at the actual codebase on my local machine. I then set the security to low (for ISAPI extensions, i.e. ASP) and allowed for script execution. For some reason though, if I hit any .asp page it says the page cannot be found. However, HTML and static files load up just fine.

EDIT: URLScan fix seems to have done it. Fired up the app in another browser (i.e. not IE6), and I'm getting better error reporting. Looks like we're missing some includes, but it is executing the scripts. Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

被你宠の有点坏 2024-07-14 03:38:28

您需要确保“Active Server Pages”Web 服务扩展设置为允许状态。

查看:http ://classicasp.aspfaq.com/general/why-does-iis-hang-and/or-stop-serving-asp-pages.html

另外,您应该意识到虚拟目录可能会影响包含asp 页面本身的文件路径。 如果原始 asp 应用程序不使用虚拟目录,那么您的本地副本也不应使用虚拟目录。

You need to make sure that the "Active Server Pages" web service extension is set to an allowed status.

Check out: http://classicasp.aspfaq.com/general/why-does-iis-hang-and/or-stop-serving-asp-pages.html

Also, you should be aware that a virtual directory may affect the include file paths in the asp pages themselves. If the original asp application does not use a virtual directory, then your local copy shouldn't either.

ぇ气 2024-07-14 03:38:28

查看您的 URL 扫描设置,看看 .asp 是否是允许的文件扩展名

在我的 XP 计算机上,相关文件位于 C:\WINDOWS\system32\inetsrv\urlscan\urlscan.ini

Take a look at your URL scan settings and see if .asp is an allowed file extension

On my XP machine the relevant file is located at C:\WINDOWS\system32\inetsrv\urlscan\urlscan.ini

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文