Search code examples
asp.net-mvciisweb-configweb-deploymentangular8

how to publish an angular 8 app to the subfolder of asp.net application?


I want to publish an angular application in a subfolder. In the main folder, an Asp.Net Mvc web application is running. But I get error.

In the attachments, you can access Web config structure, Error and folder structure.

ERROR MESSAGE

WEB CONFIG

Folder Structure

index.html


Solution

  • I solved to add following to web.config.

     <system.webServer>
       <modules>
           	<remove name="ApplicationInsightsWebTracking" />
        </modules>
     </system.webServer>