为什么我的 ASP.net MVC 站点不提供 Windows Server 2008 上的页面?
为什么我的 ASP.net MVC 站点不提供 Windows Server 2008 上的页面?该网站在集成模式下具有.net Framework 4.0的应用程序池下运行。它可以毫无问题地提供 .htm 文件。但是,当我尝试查看任何 MVC 页面时,我收到一个页面,显示“Internet Explorer 无法显示该网页”。我该如何解决这个问题?
Why is my ASP.net MVC site not serving pages on Windows Server 2008? The website is running under an application pool that has the .net framework 4.0 in integrated mode. It serves .htm files with no problem. However, when I try to view any of the MVC pages I get a page saying "Internet Explorer cannot display the webpage." How can I troubleshoot this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 IIS 7 的 Server 2008,您需要查看相关网站并转到 HandlerMappings 设置。您需要确保 .Net 映射设置为启用。
Server 2008 with IIS 7 you need to look at the website in question and go to the HandlerMappings settings. You need to make sure that the .Net mappings are set to enabled.
我发现问题出在哪里了。追踪起来很痛苦。该服务器托管 2 个网站。 HTTPS 绑定未与网站的 IP 地址关联。相反,IP 绑定设置为“全部未分配”。
解决方案是将 HTTPS 绑定与网站的 IP 地址关联起来。
I found out what the problem was. This was a pain to track down. The server hosts 2 websites. The HTTPS bindings were not associated with the IP address for the website. Instead, the IP binding was set to "All unassigned".
The solution was to associate the HTTPS binding with the website's IP address.