我无法通过IIS访问托管页面

时间:2019-10-22 20:04:43

标签: c# .net iis

我购买了一个新的VPS,并在其中配置了IIS管理器,用于托管应用程序,就像通​​常在以前的服务器上托管的那样。我无法访问托管项目的aspx页面,但可以访问项目的HTML页面。怎么了?

这些是我尝试托管应用程序的步骤:

将所有文件复制到: <input name = "newDirectory" class=<%=style.getEditor()%> type="file" webkitdirectory directory multiple size='100' tabindex="1"/>

Adding application by Right click Default Web Site > Add Application

Provided root project link to application and set Windows User to connect

Checking project is published and running in browser, by Right Click Project > Browse

Browser returning 404.3 - Not Found type error that is: The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

浏览器返回404.3-未找到类型错误,即“由于扩展​​名配置,无法提供您所请求的页面。如果该页面是脚本,请添加处理程序。如果应下载文件,请添加MIME地图。”

1 个答案:

答案 0 :(得分:0)

正如Peter Schneider所说,您需要检查服务器中是否安装了正确的.netfamwork。

例如,如果您的应用程序是使用asp.net 4.6构建的。您应该确保已为asp.net安装了严格的版本。

您可以按照以下步骤进行检查”

控制面板->程序和功能->打开或关闭Windows功能

Internet信息服务具有“万维网服务/应用程序开发功能”小节

enter image description here

如果已安装该程序,建议您在命令行中运行以下命令以再次为IIS注册asp.net。

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir
相关问题