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

4
  • 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 Commented Jun 7, 2018 at 9: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 Commented Jun 7, 2018 at 10:06
  • 1
    Ok! Check the server eventviewer for detailed error. Commented Jun 7, 2018 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. stackoverflow.com/a/46789683/5584692 Commented Jun 7, 2018 at 11:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.