Running .NET Core Web API default application gets HTTP Error 502.5 - Process Failure

Discussion in 'General troubleshooting' started by jerry1, Oct 21, 2016.

Tags:
  1. I built a default ASP.NET Core Web API app in Visual Studio 2015 which runs locally like http://localhost:64910/api/values and will return a string :
    ["value1","value2"] from the default ValuesController.

    I then deployed this using FTP from my project to a subdirectory "WebApplication1" on my site. The project deploys successfully to the subdirectory under the root. When I hit the url to my site: http://mydomain/WebApplication1/api/values I get:

    HTTP Error 502.5 - Process Failure

    Common causes of this issue:
    • The application process failed to start
    • The application process started but then stopped
    • The application process started but failed to listen on the configured port

    Here is my project.json file....tried using ASPNetCore version 1.0.0 and 1.0.1.

    {
    "dependencies": {
    "Microsoft.NETCore.App": {
    "version": "1.0.0",
    "type": "platform"
    },
    "Microsoft.AspNetCore.Mvc": "1.0.0",
    "Microsoft.AspNetCore.Routing": "1.0.0",
    "Microsoft.AspNetCore.Server.IISIntegration": "1.0.0",
    "Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
    "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0",
    "Microsoft.Extensions.Configuration.FileExtensions": "1.0.0",
    "Microsoft.Extensions.Configuration.Json": "1.0.0",
    "Microsoft.Extensions.Logging": "1.0.0",
    "Microsoft.Extensions.Logging.Console": "1.0.0",
    "Microsoft.Extensions.Logging.Debug": "1.0.0",
    "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0"
    },

    "tools": {
    "Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final"
    },

    "frameworks": {
    "netcoreapp1.0": {
    "imports": [
    "dotnet5.6",
    "portable-net45+win8"
    ]
    }
    },

    "buildOptions": {
    "emitEntryPoint": true,
    "preserveCompilationContext": true
    },

    "runtimeOptions": {
    "configProperties": {
    "System.GC.Server": true
    }
    },

    "publishOptions": {
    "include": [
    "wwwroot",
    "**/*.cshtml",
    "appsettings.json",
    "web.config"
    ]
    },

    "scripts": {
    "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
    }
    }
     
  2. Thanks, that worked! appreciate the quick response!
     
  3. No problem, glad it worked.
     
    Elshadriel likes this.

Share This Page