我无法在IIS上显示default.aspx页面。我正在运行一个Windows Server 2012的盒子。 IIS 8.该站点的根目录中有一个default.aspx页面。这是一个应用程序。该站点绑定到特定的IP地址。当我点击该IP时,我没有得到默认页面。当我定位页面10.10.10.10/default.aspx
时,我收到以下错误
HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.
Most likely causes:
•The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.
Things you can try:
•If you want to serve this content as a static file, add an explicit MIME map.
Detailed Error Information:
Module
StaticFileModule
Notification
ExecuteRequestHandler
Handler
StaticFile
Error Code
0x80070032
Requested URL
http://10.10.10.10/default.aspx
Physical Path
C:\inetpub\wwwroot\testSite\default.aspx
Logon Method
Anonymous
Logon User
Anonymous
More Information:
我不确定哪些配置错误。有什么建议吗?
答案 0 :(得分:0)
在Server 2012上默认未启用Asp.net。您需要使用“添加角色和功能”。在向导的“功能”选项卡上,确保选择安装正确版本的.Net并选择“HTTP激活”。