title: http://localhost/myapp/assets/i18n/en.json not found when angular 6 code deployed on windows 7 IIS server
body: <p>I am trying deploying my application to IIS server on windows 7 PC. The web address is </p>
  
  <p><a href="http://localhost/myapp" rel="nofollow noreferrer">http://localhost/myapp</a></p>
  
  <ol>
  <li>I installed URL rewrite.</li>
  <li>Here is my web.config content</li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;configuration&gt;
  &lt;system.webServer&gt;
    &lt;rewrite&gt;
      &lt;rules&gt;
        &lt;rule name="Angular Routes" stopProcessing="true"&gt;
          &lt;match url=".*" /&gt;
          &lt;conditions logicalGrouping="MatchAll"&gt;
           &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
           &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
          &lt;/conditions&gt;
         &lt;action type="Rewrite" url="/MyApp/" /&gt;
        &lt;/rule&gt;
      &lt;/rules&gt;
    &lt;/rewrite&gt;
  &lt;/system.webServer&gt;
  &lt;/configuration&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>My application runs very good using "ng serve" on my computer. When I deployed on IIS on windows 7 PC, the application cannot access resources like images, json files. I got 404 error. I think there is something wrong in my web.config file. The file, en.json, is located c:\inetpub\wwwroot\myapp\assets\i18n folder after it is deployed.
  Please help.</p>