II7 – 处理程序映射不运行

我已经创build了一个脚本处理程序映射与IIS 7的Windows 2008 64位。该处理程序DLL永远不会被调用,并得到一个404错误。 在一个相同的盒子上,只运行32位Windows 2008,它运行良好。 下面是web.config中的处理程序映射:

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <handlers> <add name="DeltekTE" path="*.jsp" verb="*" modules="IsapiModule" scriptProcessor="D:\NewTime\DeltekTC\iisproxy.dll" resourceType="Unspecified" preCondition="bitness32" /> <add name="DeltekTC" path="*.msv" verb="*" modules="IsapiModule" scriptProcessor="D:\NewTime\DeltekTC\iisproxy.dll" resourceType="Unspecified" preCondition="bitness32" /> </handlers> </system.webServer> </configuration> 

在服务器级别的ISAPI和CGI限制中,允许运行dll。 networking服务用户和IIS_USRS被允许读取和执行该DLL。 为什么没有绘图工作?

您可能要确保您的应用程序池设置为32位,而不仅仅是您的处理程序。

尝试查看IISpipe理器中的应用程序池,单击应用程序池,然后单击高级设置。 将“启用32位应用程序”更改为true。

你也可以使用AppCMD来改变这个:

 C:\Windows\System32\inetsrv\AppCMD.EXE SET AppPool "DefaultAppPool" /enable32BitAppOnWin64:true 

您需要将“DefaultAppPool”更改为应用程序池名称:

 C:\Windows\System32\inetsrv\AppCMD.EXE LIST AppPool 

您也可以为此添加一个新的AppPool:

 C:\Windows\System32\inetsrv\AppCMD.EXE ADD AppPool /name:"New32BitPool" C:\Windows\System32\inetsrv\AppCMD.EXE SET AppPool "New32BitPool" /enable32BitAppOnWin64:true