Search code examples
angulariisangular-ui-routeriis-10angular4-router

App root is not working while deploying on IIS 10


I am new in angular 4 and developing a website. I run the code on my localhost:4200 its work fine but when i deploy on IIS 10 server its not showing any view.I thing its issue with routing . I am really strange to see that no error is showing while doing the inspect element. let me guide.Any help would be appreciated. This is the view i am getting whiling running on local host.this is the view after deploying on IIS 10 server. My Asp.Net web api is working acurately

this is my ASp.NEt web api image.Any material could be provided any help would be appricated. I am really worried.Thanks in Advance


Solution

  • The Issue is with IIS settings.

    please enable below setting from "Turn windows Features on and Off"

    Internet Information services => World Wide Web Services => Common HTTP Features => Static Content

    enter image description here