How to deploy angular7 universal server side rendering to IIS

271 Views Asked by At

In Angular 7 project, deployed the code using ng build --prod to create a production build and copied the content of the dist folder to IIS folder and it works fine.

I tried to implement Angular SEO friendly using @ng-toolkit/universal, It is working fine on my local machine using npm run build:ssr and npm run serve:ssr. Now I need to deploy this application to IIS on webserver. I have copied the following folders

enter image description here

web.config (1) contains

enter image description here

web.config (2) contains

enter image description here

It throws the following error enter image description here

Please guide me how to resolve this issue. Thank you

0

There are 0 best solutions below