- 主题: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.*
有省事办法吧?
【 在 ottffsse (nothing) 的大作中提到: 】
: 自己编一个,读出来,然后response出去
--
FROM 211.99.222.*
7,配置好弄么
【 在 ottffsse (nothing) 的大作中提到: 】
: 没搞过。你是IIS的什么版本?可考虑试试 handler.
--
FROM 211.99.222.*
试过么?就是iis handle mappings里加,用了几个现成 type都不成哈
System.Web.Handlers.TransferRequestHandler
。。。。
thx!
【 在 ottffsse (nothing) 的大作中提到: 】
: 在web.config中
: <system.webServer>
: <handlers>
: ...................
--
FROM 211.99.222.*
不用写
iis handle mapping 里把 *.asp 临时改成 *.act 即可
【 在 ottffsse (nothing) 的大作中提到: 】
: 自己写一个吧。10行。TextStream.Read(); TextStream.Write()搞定。
--
FROM 211.99.222.*