1

Step 1 - Have a running .Net Core app (with React as front end) in IIS on Windows Server.
Step 2 - Setup a MVC app within the Core app using 'Add Application' option in IIS. (Nested apps)

Note: AppPools of the 2 apps are different and point to appropriate Core/framework versions.

Result - When try to access the MVC app, get "HTTP Error 502.5 - Process Failure" error. From the logs in Event viewer, it appears the MVC app is trying to start the dll of the Core app and not MVC (message below).

Application 'MACHINE/WEBROOT/APPHOST/COREAPP/MVCAPP' with physical root 'PATH TO MVC APP' failed to start process with commandline 'dotnet .*COREAPP*.dll', ErrorCode = '0x80004005' : 80008091.

Believe the MVC app should somehow be forced to run in framework pointing to appropriate dll/startup file. Could someone point me in the right direction? Any thoughts would be appreciated!

Have below setting in MVC app's mvcapp.runtimeconfig.json file

{
  "runtimeOptions": {
    "framework": {
      "name": ".net framework",
      "version": "4.8"
    },
    "configProperties": {
      "System.GC.Server": true
    }
  }
}
4
  • Add new Pool to MVC application Commented Nov 22, 2019 at 4:51
  • Both apps are already configured to run on their own Apppool. No luck with that. Commented Nov 22, 2019 at 11:26
  • To my knowledge, Nested apps use the parent App pools. So it would require you to setup the application as an independent one don't nest it under .net core Commented Nov 22, 2019 at 13:04
  • From IIS, I can see the nested MVC app uses it's own AppPool targeting framework. Commented Nov 22, 2019 at 17:14

1 Answer 1

2

Got it working by forcing the parent app to NOT inherit it's config on to child app. Set the inheditChildApplication setting to false in parent config. In this case, I do not want any settings to be inherited to child, have to be cautious when wanting certain settings to be inherited.

<location path="." inheritInChildApplications="false">

<system.webServer>
     Settings goes here
</system.webServer>

</location>

Sign up to request clarification or add additional context in comments.

Comments

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.