IIS6行为古怪,当我请求一个URL以映射到ASP.NET ISAPI扩展的扩展 [英] IIS6 behaves weirdly when I request a URL with an extension mapped onto ASP.NET ISAPI extension

查看:206
本文介绍了IIS6行为古怪,当我请求一个URL以映射到ASP.NET ISAPI扩展的扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图部署IIS6 ASP.NET应用程序。我创建了一个虚拟目录 MyApp的,它映射到硬盘驱动器上的文件夹,从我的应用程序到该文件夹​​复制所有的东西。

I tried to deploy an ASP.NET application in IIS6. I created a virtual directory MyApp, mapped it to a folder on the hard drive, copied all the stuff from my application to that folder.

现在,当我要求的http://主机/ MyApp的/ 我得到HTTP 403,并且请求被记录在IIS日志。当我要求 HTTP://host/MyApp/default.aspc (有没有这样的文件),我得到HTTP 404和请求也记录

Now when I request http://host/MyApp/ I get HTTP 403 and that request is logged in the IIS log. When I request http://host/MyApp/default.aspc (there's no such file) I get HTTP 404 and that request is also logged.

但是,当我要求 HTTP://host/MyApp/default.aspx (该文件是虚拟目录映射到文件夹中的present) Internet Explorer中只是说,它无法显示网页,该请求没有登录。当我跟踪使用Fiddler请求它显示在客户端空回复,HTTP code 0 的.aspx 扩展当然是映射到ASP.NET ISAPI扩展。

But when I request http://host/MyApp/default.aspx (that file is present in the folder which the virtual directory is mapped to) Internet Explorer just says it "cannot display the web page", that request is not logged. When I trace requests with Fiddler it shows empty reply and HTTP code 0 on the client side. .aspx extension is of course mapped onto ASP.NET ISAPI extension.

ASP.NET 2.0安装到IIS。当我运行为aspnet_regiis -lk 它产生的输出如下:

ASP.NET 2.0 is installed into IIS. When I run aspnet_regiis -lk it produces the following output:

W3SVC/  2.0.50727.0
W3SVC/1/ROOT/   2.0.50727.0
W3SVC/2/Root/   2.0.50727.0 

有什么不对?为什么IIS6表现得如此奇怪的是,当我请求映射到ASP.NET ISAPI文件,以及如何解决这个问题?

What's wrong? Why does IIS6 behave so strangely when I request files mapped to ASP.NET ISAPI and how do I resolve this?

推荐答案

这特殊的怪胎通常由ASP.NET造成未在Web服务扩展启用

This particular oddity is normally caused by ASP.NET not being enabled under "Web Service Extensions"

步骤:


  1. 控制面板 - >管理工具> IIS管理器

  2. 展开设备的节点树

  3. 单击Web服务扩展

  4. 在右侧列表上相应的ASP.NET版本单击鼠标右键,选择允许

希望这是你所遇到的问题!

Hopefully this is the issue you're having!

这篇关于IIS6行为古怪,当我请求一个URL以映射到ASP.NET ISAPI扩展的扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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