2

I have an asp.net core website (say https://www.somesite.com) where I need to host an asp.net web api (.net framework 4.6) in https://www.somesite.com/api, but I keep getting HTTP Error 502.5 - Process Failure for the API and the asp.net core website works just fine. Please help how can I achieve this.

This has always worked before ASP.NET Core

Mxo Sibeko
  • 147
  • 4
  • 14
  • 1
    Ensure that your .NET Framework 4.6 sub-application is assigned an ApplicationPool which has .NET CLR version as `v 4.0` and your .net core website is using a different Application Pool with .NET CLR version `No Managed Code` – Mohsin Mehmood Jun 07 '18 at 09:57
  • it's exactly like that. The sub-application is using the IIS default app pool and I created a different app pool for asp.net core. I still get the error – Mxo Sibeko Jun 07 '18 at 10:06
  • 1
    Ok! Check the server eventviewer for detailed error. – Mohsin Mehmood Jun 07 '18 at 10:08
  • 1
    Thanks for the tip. the log said it was trying to run the web API using "dotnet somesite.dll", so I had to exclude "aspnetcore" handler in the API web.config file. Ref. https://stackoverflow.com/a/46789683/5584692 – Mxo Sibeko Jun 07 '18 at 11:00

0 Answers0