Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi ,

I have created web api with dot net core 2.0. I have hosted that under IIS and its working fine.
Now under the same api I am trying to add angular application in IIS. But I am not able to run it. When i try to run that app from the domain where api is hosted I get an
HTTP Error 502.5 - Process Failure
error for angular app.

What I have tried:

I have tried to host angular app under default application and it works well , but when i try to add application inside dot net core api , it doesnt work.

Please suggest
Posted
Updated 14-May-18 22:38pm
Comments
Torakami 22-Apr-18 4:11am    
I dont want to maintain seperate domain for the app. I want to host within the same domain where api is located and want to connect angular app to api within the same locatiuon
Kornfeld Eliyahu Peter 22-Apr-18 4:17am    
If the angular application is a separate one - it is possibly not running automatically with IIS...
Torakami 22-Apr-18 4:44am    
Yes , angular application is seperate one.
But I have seen people using the same domain to run seperate application from the same domain of api core
Kornfeld Eliyahu Peter 22-Apr-18 6:44am    
That's not the problem... The problem is that your IIS host runs on start-up only the API application... So the angular one does not run...
You can test it by manually running the angular from command prompt and then browsing the site...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900