I have an Angular 19 application that works very well in development with Visual studio 2022 as BE and VS code. Deployment to be executed by IIS 10 (Windows 10) has an issue. Index.html is executed, but the angular code in wwwroot cannot be loaded. I get an error 404 for all angular 19 modules. Also as an issue, the code in program.cs is not executed. IIS Site is Condo_QA -- wwwroot Inside Index.html I have the following: I tried with Also simple html statements (for debugging) inside Index.html work. So Index.html is found by IIS and executed.
Neither of these two options works.
So any suggestion would be very helpfull. Thanks
I have an Angular 19 application that works very well in development with Visual studio 2022 as BE and VS code. Deployment to be executed by IIS 10 (Windows 10) has an issue. Index.html is executed, but the angular code in wwwroot cannot be loaded. I get an error 404 for all angular 19 modules. Also as an issue, the code in program.cs is not executed. IIS Site is Condo_QA -- wwwroot Inside Index.html I have the following: I tried with Also simple html statements (for debugging) inside Index.html work. So Index.html is found by IIS and executed.
Neither of these two options works.
So any suggestion would be very helpfull. Thanks
Share Improve this question edited Mar 4 at 15:50 Guy Gallant asked Mar 4 at 15:16 Guy GallantGuy Gallant 3531 gold badge4 silver badges13 bronze badges 1- The exact steps you published the web app? Those must be part of the question. BTW, do you use Server Side Rendering? – Lex Li Commented Mar 4 at 15:39
1 Answer
Reset to default 0To deploy the angular application on iis you could follow the below steps:
First go to the directory of your application in the command prompt
Run below command to build the app
ng build
That will create dist folder under the project root folder
While creating site in iis use the folder path including
dist\projectname\browser
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745036111a4607528.html
评论列表(0条)