Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

failed to start process with commandline 'dotnet .\CVC.dll', ErrorCode = '0x80070002 : 0. #623

@Tarhesabz

Description

@Tarhesabz

This is my first attempt at deploying ASP.NET Core on our server that's running a ASP.NET Web App on .NET Frameword 4.6.1. I created a new project in Visual Studio 2017 and published it using webdeploy. After browsing to the page I get the following error:

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

Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect

There's not much information in event viewer logs:
Application 'MACHINE/WEBROOT/APPHOST/mysite' with physical root 'C:\Inetpub\vhosts\cvclegal.com\mysite' failed to start process with commandline 'dotnet .\CVC.dll', ErrorCode = '0x80070002 : 0.

I have the new runtime installed for ASP.NET Core 2.0.5 and followed the instructions for hosting on IIS.
Here is my web.config that's generated after deployment:

<configuration> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="dotnet" arguments=".\CVC.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" /> </system.webServer> </configuration>

and my program.cs:
`public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}

    public static IWebHost BuildWebHost(string[] args) =>
        WebHost.CreateDefaultBuilder(args)
            .UseStartup<Startup>()
            .Build();
}`

I enabled the stdoutLogFile, for each request it does create a .log file but it's 0k and empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions