简体   繁体   English

HTTP错误500.19 - 托管Angular 4应用程序后出现内部服务器错误

[英]HTTP Error 500.19 - Internal Server Error after hosting the Angular 4 app

I have hosted my Angular 4 application in server system ,Initially I got 404 error So I have added a web.config file with my production build folder .Now I got this error. 我在服务器系统中托管了我的Angular 4应用程序,最初我遇到了404错误所以我在生产构建文件夹中添加了一个web.config文件。现在我收到了这个错误。

But the app is running fine on my local system ,it throws error the server system.and I have tried some other systems which runs on win7,win10 but it's not running always shows the error of 500.19. 但是应用程序在我的本地系统上正常运行,它会抛出服务器系统的错误。我尝试了一些在win7上运行的其他系统,win10但是它没有运行总是显示500.19的错误。

I spend hours to solve this ,referred all the post in in stackoverflow which related to my post but nothing is worked. 我花了好几个小时来解决这个问题,在stackoverflow中引用了与我的帖子相关的所有帖子,但没有任何工作。

can anyone help me to solve this . 任何人都可以帮我解决这个问题。

Error Page : 错误页面:

enter image description here 在此输入图像描述

Web.Config Web.Config中

<configuration>
<system.webServer>
    <rewrite>
      <rules>
        <rule name="AngularJS Routes" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            <add input="{REQUEST_URI}" pattern="^/(api)" negate="true" />
          </conditions>
          <action type="Rewrite" url="/eCommerceWebsite" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

Your IIS is missing URL Rewrite module. 您的IIS缺少URL重写模块。

You can download and install it here from microsoft: https://www.iis.net/downloads/microsoft/url-rewrite 您可以从microsoft下载并安装它: https//www.iis.net/downloads/microsoft/url-rewrite

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 IIS 中托管 angular 4 应用程序后 HTTP 错误 500.19 内部服务器错误 - HTTP Error 500.19 Internal Server Error after hosting angular 4 application in IIS Angular 7 HTTP Post 500内部服务器错误 - Angular 7 HTTP Post 500 Internal Server Error Angular iis 主机给出 500 - 内部服务器错误 - Angular iis hosting is giving 500 - Internal server error 角度 2+ 中 http.post 上的 500(内部服务器错误) - 500 (Internal Server Error) on http.post in angular 2+ Angular 5 HTTP 发布内部服务器错误无法订阅组件 - Angular 5 HTTP post internal server error not able to subscribe in component ASP.NET 内核 2.2 Web API ZC31C335EF37283C451B18BA0DD317DE1。 托管服务提供商说 500 - 内部服务器错误 - ASP.NET Core 2.2 Web API Angular. Hosting provider says 500 - Internal server error 重新加载在 docker 中运行的 Angular 应用程序会出现 500 内部服务器错误 - Reloading Angular app running in docker gives 500 Internal Server Error http://localhost:8000/api/... 500 角度 5 中的内部服务器错误的 Http 失败响应 - Http failure response for http://localhost:8000/api/… 500 Internal Server Error in angular 5 在A2hosting Windows服务器上托管Angle 6时出错 - Getting Error in hosting angular 6 on A2hosting windows server 谷歌云存储 Angular 应用托管 401 托管错误 - Google Cloud Storage Angular App Hosting 401 Error on Hosting
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM