IIS 6 ASP.NET处理程序在虚拟应用程序中不起作用 [英] IIS 6 ASP.NET handlers not working in virtual application
问题描述
我有一个虚拟目录(配置为应用程序).它将接受对所有现有文件的请求,但不会调用处理程序(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.
推荐答案
使用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
这篇关于IIS 6 ASP.NET处理程序在虚拟应用程序中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!