angular19 - Angular 19 cannot be loaded from IIS - Stack Overflow

I have an Angular 19 application that works very well in development with Visual studio 2022 as BE and

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
Add a comment  | 

1 Answer 1

Reset to default 0

To deploy the angular application on iis you could follow the below steps:

  1. First go to the directory of your application in the command prompt

  2. Run below command to build the app

    ng build

That will create dist folder under the project root folder

  1. While creating site in iis use the folder path including

    dist\projectname\browser

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745036111a4607528.html

相关推荐

  • angular19 - Angular 19 cannot be loaded from IIS - Stack Overflow

    I have an Angular 19 application that works very well in development with Visual studio 2022 as BE and

    10小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信