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

前端 未结 17 970
南方客
南方客 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:28

    Microsoft changed the hosting model as described in the release notes.

    In project.json replace the dependency

    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7"

    with

    "Microsoft.AspNet.Server.Kestrel": "1.0.0-beta8"


    In web.config in the handlers section remove every entry except

    
    

    The complete web.config will look like this:

    
    
      
        
          
        
        
      
    
    

    RC1: While using RC1 I had the error after moving the solution folder. After deleting the bin and obj folders everything worked again.
    As user764754 noted, simply restarting Visual Studio can also help.

提交回复
热议问题