An error occurred attempting to determine the process id of the DNX process hosting your application

前端 未结 17 1009
南方客
南方客 2020-12-01 04:03

I get this error message when I\'m trying to start the application.

An error occurred attempting to determine the process id of the DNX process host

17条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 04:40

    It is possible to upgrade, i found i had to look through the new updated templates here.

    Update your web.config in wwwroot to include:

    
    

    You will also need to change the way the project debugs using Kestrel by modifying your project.json:

    "commands": {
      "web": "Microsoft.AspNet.Server.Kestrel"
    },
    "dependencies": {
      "Microsoft.AspNet.IISPlatformHandler": "1.0.0-beta8",
      "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8",
    }
    

    and modifying your hosting.ini

    server=Microsoft.AspNet.Server.Kestrel
    

    and adding this to the Configure method in startup.cs

    // Add the platform handler to the request pipeline.
    app.UseIISPlatformHandler(); 
    

    adding these references should allow you to run the project.

提交回复
热议问题