By default the application was created with “Enable 32-Bit Applications” set to true.
After changing this to “false”, the error was resolved.
Failed to start application ‘/LM/W3SVC/3/ROOT’, ErrorCode ‘0x800700c1’.
Could not find ‘aspnetcorev2_inprocess.dll’. Exception message:
Unable to load ‘D:\Websites\VBV.\hostfxr.dll’. This might be caused by a bitness mismatch between IIS application pool and published application.