IIS 6 ASP.NET处理程序在虚拟应用程序中不起作用 [英] IIS 6 ASP.NET handlers not working in virtual application

查看:85
本文介绍了IIS 6 ASP.NET处理程序在虚拟应用程序中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个虚拟目录(配置为应用程序).它将接受对所有现有文件的请求,但不会调用处理程序(system.web/httpHandlers).

I have a virtual directory (configured as an application). It will accept requests for all files that exist, but it will not call handlers (system.web/httpHandlers).

有什么想法吗?

    <httpHandlers>
        <remove verb="*" path="*.asmx"/>
        <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
        <add verb="GET" path="*.smjs" type="SmartMax.SightMax.AgentInterface.JSHandler, SmartMax.SightMax.AgentInterface, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b9f7c69b7e2ca2dc"/>
        <add verb="GET" path="*.smgif" type="SmartMax.SightMax.AgentInterface.GifHandler, SmartMax.SightMax.AgentInterface, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b9f7c69b7e2ca2dc"/>
    </httpHandlers>

这是应用程序使用的URL.

this is the url that the application uses.

http://www.datalineonline. com/SightMaxAgentInterface/chat.smgif?accountID = 1& siteID = 1& queueID = 2

推荐答案

使用IIS6,我认为您必须将两个扩展名smjs/smgif映射到.net框架.我认为是C:\ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_isapi.dll,无论如何,aspx都映射到相同的目录.否则IIS只会拒绝请求.

With IIS6, i think you have to map the two extensions smjs/smgif to the .net framework. Which i think is C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll, well the same one that aspx is mapped to anyway. Otherwise IIS just rejects the requests.

或者您可以将所有请求映射到asp.net

Or you can map all requests to asp.net

https://serverfault.com/questions/102695/iis6-wildcard-mapping-to-asp-net-no-file-extension-results-in-iis-404

这篇关于IIS 6 ASP.NET处理程序在虚拟应用程序中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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