在IIS托管后aspx页面下载? [英] aspx pages downloads after hosting in IIS?
问题描述
我们托管在IIS网站。当我们测试我们网站的主页IIS突然提供下载aspx页面,而不是渲染。
We hosted the website in IIS. When we test the home page of our site IIS suddenly offering to download the aspx page instead of rendering .
我们托管在IIS 7.0的网站。网站开发与DotnetFramework 4.0。
We hosted the website in IIS 7.0. Website developed with DotnetFramework 4.0.
请帮我找出问题的底部。
Please help me in identify the bottom of the problem.
推荐答案
您需要拖放到命令提示符并导航到该文件夹;
You'll need to drop into the command prompt and navigate to the folder;
C:\\ WINDOWS \\ microsoft.NET \\框架\\ V4.0.30319 \\
c:\windows\microsoft.NET\Framework\V4.0.30319\
和类型为aspnet_regiis -i
and type the command aspnet_regiis -i
这将配置IIS服务器正确处理ASPX文件 - ?不知道为什么它会工作previously,然后突然停止工作,你有没有使用.NET的这个明确的版本的服务器之前
this will configure the IIS server to correctly process the aspx files - not sure why it would work previously and then suddenly stop working, have you used this explicit version of .NET on this server before?
这篇关于在IIS托管后aspx页面下载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!