【发布时间】:2011-01-24 18:44:51
【问题描述】:
我正在将网站从 asp.net 2.0 更新到 asp.net 4.0。
我正在运行 IIS 7.0。
如果我创建 test.asp 并浏览它就可以了。
如果我重命名文件 test.html 它不会解析 asp。
由于我们使用的 CMS,我需要将 html 解析为 asp。
test.html 中的相关代码:
<%
Response.Write ("The time on the server is: " & Time())
%>
我认为我的问题来自 .net 4.0 处理请求的方式。
如何让 IIS 将 html 解析为 asp?
【问题讨论】:
-
asp-classic标签特指pre-.Net ASP。
标签: iis-7 .net-4.0 web-config