Hello,
https://docs.aspnetzero.com/aspnet-core-mvc/latest/Deployment-Angular-Publish-IIS
We have completed all the steps in the link above.
However, our Angular site is still not opening. We installed the programme from this link: https://www.iis.net/downloads/microsoft/url-rewrite.
We tried both placing the dist folder we obtained with npm run publish into the wwwroot directory and placing it into the project folder.
And also we tried below the code.

The last one API is working.
5 Answer(s)
-
0
Hi @MarturAbpUser
Could you please share your project version with us?
In the latest version of Angular, after running the
ng buildcommand, you need to copy or move the contents of the browser folder (located under the dist directory) into the project folder (named after your project) under inetpub/wwwroot in IIS Express.Could you please make sure that the files have been added as shown in the screenshot below? Is your configuration set up this way?
C:\inetpub\wwwroot\angularMarkdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Hi @MarturAbpUser
Thank you for the detailed information and screenshots. When publishing Angular, I recommend using the
yarn publishornpm run publishcommand instead of theng buildcommand, because the configuration won't be set to production. Therefore, it won't be using theappconfig.production.jsonfile. The information in theappconfig.production.jsonfile is assumed to be corrected to use the production environment URL.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)
-
0
This problem is resolved via remote support.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
[ismcagdas] said: This problem is resolved via remote support.
Thank you so much for your support and professionalism.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)








