An error occurred while trying to determine the process ID of the DNX process that your application is hosted on on cleared installed 10 + vs2015 windows

I have clean installed windows 10 and a clean version of VS 2015 Update 1 with RC1 ASP.NET Tools. When I start a new ASP.NET MVC project without authentication ! And Hit F5, I got "An error occurred while trying to determine the process ID of the DNX process for hosting your application."

I do not have an old version from VS or ASP.NET. All this is the last clean install. I looked at this document: http://docs.asp.net/en/latest/getting-started/installing-on-windows.html

I found this topic , but this is not a duplicate question, due to the fact that I did not update anything, this problem only appears on clean installed windows 10 + VS 2015 Update 1 of the system. I have a Windows 8.1 system and VS2013 + VS2015, and everything works fine. I think that in Windows 10 there should be some plus step in setting up the ASP.NET 5 environment.

Here you are, my project.json file:

{ "version": "1.0.0-*", "compilationOptions": { "emitEntryPoint": true }, "dependencies": { "Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final", "Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final", "Microsoft.AspNet.Mvc": "6.0.0-rc1-final", "Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-rc1-final", "Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final", "Microsoft.AspNet.StaticFiles": "1.0.0-rc1-final", "Microsoft.AspNet.Tooling.Razor": "1.0.0-rc1-final", "Microsoft.Extensions.Configuration.FileProviderExtensions" : "1.0.0-rc1-final", "Microsoft.Extensions.Configuration.Json": "1.0.0-rc1-final", "Microsoft.Extensions.Logging": "1.0.0-rc1-final", "Microsoft.Extensions.Logging.Console": "1.0.0-rc1-final", "Microsoft.Extensions.Logging.Debug": "1.0.0-rc1-final", "Microsoft.VisualStudio.Web.BrowserLink.Loader": "14.0.0-rc1-final" }, "commands": { "web": "Microsoft.AspNet.Server.Kestrel" }, "frameworks": { "dnx451": { }, "dnxcore50": { } }, "exclude": [ "wwwroot", "node_modules" ], "publishExclude": [ "**.user", "**.vspscc" ], "scripts": { "prepublish": [ "npm install", "bower install", "gulp clean", "gulp min" ] } } 
+5
source share
5 answers

The poster stated that it had found the answer to its question, but I came across the same error message with RC1, and the accepted answer did not solve my problem. I see that Sven Gillis is still hunting for a solution, so I would like to share what solved the problem for me.

It turns out that the error can be caused by an error in RC1 Update 1 (and all previous versions), which occurs if the installation is used through the Windows login, in which there is a space. like Tim Smith.

I could not find the patch, but there is work. Just create another user account on the computer in which there is no place (for example, "Tim"), and use the visual studio under this account. In my case, this solved the problem. Now I can create web projects in Visual Studio 2015 Community Edition Update 1 using Asp.Net 5 templates and run them through F5 and Ctl + F5 from the visual studio, and I no longer get the error.

However, if I switch to the original user account on a machine that has a space, I still get an error message when I try to start a project generated from the same template. The same code was run from two different Windows user accounts, creating two very different results. Hope this helps someone else, I spent 7 days looking for a solution to this problem.

+4
source

I think my problem was that I had the option "Enable SSL", but the certificate was not installed on this computer.

So, starting the site with Ctl + F5 installed the certificate, and then I was able to debug the site, solving my problem.

+15
source

Finally, I found a solution. As I said, I do not use authentication in this project, so I turned off "Enable Anonymous Authentication" and "Enable Windows Authentication". But it seems that we should not disable “Enable Anonymous Authentication”, because we get that “An error occurred while trying to determine the process ID of the DNX process that is accepting your application.”

So the solution is to enable “Enable Anonymous Authentication” even if you are not using authentication.

+2
source

I got this error when I was trying to debug an ASP.NET Core (RC1) project with the Enable SSL option. I previously moved the IIS Express Development Certificate to the Local Machine\Trusted Root Certificates folder in Local Machine\Trusted Root Certificates Manager to prevent SSL errors from appearing in Chrome. It turns out that this certificate is needed in the Local Machine\Personal folder. Copying the certificate there resolved the problem.

+2
source

For me, with my clean installation, the lack of installing the Rewrite URL extension caused this error.

http://www.iis.net/downloads/microsoft/url-rewrite

After installation, I no longer get the error.

The authentication responses above did not matter in my case.

0
source

Source: https://habr.com/ru/post/1237829/


All Articles