title: ASP.net Core 2.0 Application as Sub Application
body: <p>I have an existing Web Application hosted in IIS which an ASP.NET MVC application. Say this is hosted as <code>www.mysite.com</code>. I am trying to host a .NET Core 2.0 web application as a sub-application to this. </p>
  
  <p>But when I try to access this as <code>www.mysite.com/subaApp</code>, IIS is looking for all my static files (<code>js</code>, <code>css</code> etc.) in the root path (<code>www.mysite.com</code>). </p>
  
  <p>Please let me know if any solution is available for this. (My .Net Core 2.0 application is serving an Angular 5 app)</p>
  
  <p>My default file (<code>index.html</code>) is generated as part of the Angular 5 build and it looks like this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="inline.318b50c57b4eba3d437b.bundle.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="polyfills.bf95165a1d5098766b92.bundle.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="main.e0d3a51586e8e9fd039d.bundle.js"&gt;&lt;/script&gt;
  </code></pre>