Can I run .Net 4.6 Application under .Net Core Site on IIS

232 views Asked by At

I inherited a project that is a collection of WCF Services that target .Net Framework 4.6.1. I wrote a front end SPA application that targets .Net Core 2.2 not realizing that the hosting model was such that both the UI (.Net Core) and the API (.Net 4.6.1) need to run under one Site on IIS.

I'm trying to get this to work on my local machine. I created a new Site in IIS -- Site A. I published my .Net Core application to Site A and set it up with an application pool set to "No Manged Code".

I then added an Application to Site A called API and added all my WCF services in that folder. I configured API to use an application pool that targets ".NET CLR 4.0".

I updated the web.config in the root of Site A to include all the necessary bits for WCF.

I'm able to hit Site A and get my SPA UI, but when I do anything that attempts to hit the backend API (including trying to hit it directly -- http://localhost:464646/api/test.svc), I get the following error:

HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

Is what I'm doing even possible? If so, what changes do I need to make in order to get this to work?

0

There are 0 answers