.NET Core app unable to start in IIS due to ErrorCode = '0x80004005 : 80008083

前端 未结 12 648
予麋鹿
予麋鹿 2020-11-30 01:41

I have a .NET Core application. It runs locally with VS2017 and Kestrel. It runs locally under IIS. However, on the server it fails to start with a 502.5 - Process Fai

12条回答
  •  误落风尘
    2020-11-30 02:07

    I had this problem as well and thought I'd post my solution. I'm not sure if this is intended or not, but I don't think dotnet core 2 supports Space characters in your Project Name.

    I created and published a Project called "Mikes App" and when trying to run the site with IIS I would get this error (.NET Core app unable to start in IIS due to ErrorCode = '0x80004005'). When I enabled stdoutLogs through the web.config file I found the error:

    No executable found matching command "dotnet-.\Mikes"

    Which I found strange because the web.config file did correctly show the dll path under arguments which was ".\Mikes App.dll"

    
    

    I created a new dotnet core 2 project in Visual Studio and named it "Mikes-App" instead, re-published it and updated the directory on my IIS site.

    Then the site worked fine!

提交回复
热议问题