- 主题:IIS怎么执行其他后缀
比如 *.act 都是 html,
IIS handler mappings里添加对 *.act script的处理文件
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll
%windir%\system32\inetsrv\asp.dll
提示出错:
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
--
FROM 211.99.222.*
自己编一个,读出来,然后response出去
【 在 yesim (yesim) 的大作中提到: 】
: 比如 *.act 都是 html,
: IIS handler mappings里添加对 *.act script的处理文件
: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll
: ...................
--
FROM 59.175.226.*
有省事办法吧?
【 在 ottffsse (nothing) 的大作中提到: 】
: 自己编一个,读出来,然后response出去
--
FROM 211.99.222.*
没搞过。你是IIS的什么版本?可考虑试试 handler.
【 在 yesim (yesim) 的大作中提到: 】
: 有省事办法吧?
--
FROM 59.175.226.*
7,配置好弄么
【 在 ottffsse (nothing) 的大作中提到: 】
: 没搞过。你是IIS的什么版本?可考虑试试 handler.
--
FROM 211.99.222.*
在web.config中
<system.webServer>
<handlers>
<add name="html" verb="*" path="*.acb" type="namespace.Type(自己写的或者用已有的),assembly(dll)" />
</handlers>
<security>
<requestFiltering>
<fileExtensions>
<remove fileExtension=".acb" />
<add allowed="true" fileExtension=".acb" />
</fileExtensions>
</requestFiltering>
</security>
</system.webServer>
【 在 yesim (yesim) 的大作中提到: 】
: 7,配置好弄么
--
FROM 59.175.226.*
试过么?就是iis handle mappings里加,用了几个现成 type都不成哈
System.Web.Handlers.TransferRequestHandler
。。。。
thx!
【 在 ottffsse (nothing) 的大作中提到: 】
: 在web.config中
: <system.webServer>
: <handlers>
: ...................
--
FROM 211.99.222.*
自己写一个吧。10行。TextStream.Read(); TextStream.Write()搞定。
【 在 yesim (yesim) 的大作中提到: 】
: 试过么?就是iis handle mappings里加,用了几个现成 type都不成哈
: System.Web.Handlers.TransferRequestHandler
: 。。。。
: ...................
--
FROM 59.175.226.*
不用写
iis handle mapping 里把 *.asp 临时改成 *.act 即可
【 在 ottffsse (nothing) 的大作中提到: 】
: 自己写一个吧。10行。TextStream.Read(); TextStream.Write()搞定。
--
FROM 211.99.222.*