I have upgraded angular 17 to angular 18. I am now using standealone components with lazy load routing. The asp.net core (8.0.6) did not changed. When I start up angular with
npm start ("start": "ng serve --proxy-config proxy.conf.js",) in package.json
I can see all the chunk files being created. I can see the following:
Local: http://localhost:4200/
Then I start Visual studio 2022 . In the command window I can see the following:
Request starting HTTP/1.1 GET http://localhost:5000/ – null null
SPA proxy is ready. Redirecting to http://localhost:4200.
Request finished HTTP/1.1 GET http://localhost:5000/ – 302 0 null 70.4862ms
All the html, chunk files , images ..etc are loaded. I can enter user id in login page.
My first api(http Post) call: http://localhost:4200/api/CoOwner/GetCoOwnerByEmail
returns a error 404
I tried other http get requests and none of them can access the controller.
I also tried to execute visual studio as administrator
1