【问题标题】:App root is not working while deploying on IIS 10在 IIS 10 上部署时应用程序根无法正常工作
【发布时间】:2019-01-17 22:42:20
【问题描述】:

我是 Angular 4 的新手,正在开发一个网站。我在我的 localhost:4200 上运行代码,它工作正常,但是当我在 IIS 10 服务器上部署时,它没有显示任何视图。我认为它的问题与路由有关。看到执行检查元素时没有显示错误,我真的很奇怪。让我指导。任何帮助将不胜感激。 This is the view i am getting whiling running on local host.this is the view after deploying on IIS 10 server.我的 Asp.Net web api 工作正常

this is my ASp.NEt web api image.任何材料都可以提供任何帮助。我真的很担心。在此先感谢

【问题讨论】:

    标签: angular iis angular-ui-router iis-10 angular4-router


    【解决方案1】:

    问题在于 IIS 设置。

    请从“打开和关闭 Windows 功能”中启用以下设置

    Internet 信息服务 => 万维网服务 => 通用 HTTP 功能 => 静态内容

    【讨论】:

      猜你喜欢
      • 2012-09-20
      • 1970-01-01
      • 1970-01-01
      • 2020-07-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-23
      • 1970-01-01
      相关资源
      最近更新 更多