尝试确定在干净安装的Windows 10 + vs2015上托管您的应用程序的DNX进程的进程ID时发生错误 [英] An error occurred attempting to determine the process id of the DNX process hosting your application on clean installed windows 10 + vs2015

查看:44
本文介绍了尝试确定在干净安装的Windows 10 + vs2015上托管您的应用程序的DNX进程的进程ID时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个全新安装的Windows 10,以及一个带有RC1 ASP.NET工具的全新安装的VS 2015 Update 1.当我启动一个没有任何身份验证的新ASP.NET MVC项目时!并且按F5键,我收到尝试确定承载您的应用程序的DNX进程的进程ID时发生错误".

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

我没有VS或ASP.NET的任何较旧版本.一切都是最新的全新安装.我浏览了以下文档: http://docs .asp.net/en/latest/getting-started/installing-on-windows.html

I don't have any older version from VS or ASP.NET. Everything is the latest clean install. I went through on this document: http://docs.asp.net/en/latest/getting-started/installing-on-windows.html

我发现了这个

I found this topic, but this is not a duplicated question, because of I didn't upgrade anything, this issue is popping up just on clean installed windows 10 + VS 2015 Update 1 systems. I have a windows 8.1 and VS2013 + VS2015 system, and everything is working fine. I think on windows 10 there must be some plus step on set up the ASP.NET 5 environment.

您在这里,我的project.json文件:

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" ]
  }
}

推荐答案

张贴者说他们找到了问题的答案,但是我在RC1上遇到了相同的错误消息,并且接受的答案不能解决我的问题.我看到Sven Gillis还在寻找解决方案,所以我想分享为我解决问题的方法.

The poster has stated that they found the answer to their question but I experienced the same error message with RC1 and the accepted answer did not resolve my issue. I see that Sven Gillis is still hunting for a solution as well so I'd like to share what solved the issue for me.

结果表明,该错误可能是由R​​C1 Update 1(和所有以前的版本)中的错误触发的,如果通过带有空格的Windows登录名使用安装,则会发生该错误.例如蒂姆·史密斯".

Turns out that the error can be triggered by a bug in RC1 Update 1 (and all prior versions) which occurs if the installation is being used via a windows login name that has a space in it. e.g. "Tim Smith".

我找不到补丁,但可以解决.只需在没有空格的计算机上创建另一个用户帐户(例如"Tim"),然后在该帐户下使用Visual Studio.就我而言,这解决了问题.现在,我可以通过Asp.Net 5模板在Visual Studio 2015社区版更新1中创建Web项目,并可以在Visual Studio中通过F5和Ctl + F5运行它们,而我不再收到错误.

I was not able to find a patch but there is a work around. Just create another user account on the machine that doesn't have a space in it (e.g. "Tim") and to use visual studio under that account. In my case this solved the issue. I can now create web projects in Visual Studio 2015 Community Edition Update 1 via the Asp.Net 5 templates and can run them via F5 and Ctl+F5 from within visual studio and I no longer receive the error.

但是,如果我切换到其中有空格的计算机上的原始用户帐户,则尝试运行从同一模板生成的项目时,仍然会收到错误消息.相同的代码从两个不同的Windows用户帐户运行,产生两个截然不同的结果.我希望这对其他人有帮助,我浪费了整整7天的时间来寻找该问题的解决方案.

However if I switch to the original user account on the machine that has a space in it, I still receive the error when trying to run a project generated from the same template. Same code ran from two different windows user accounts producing two very different results. I hope this helps someone else, I wasted 7 full days hunting for the solution to this issue.

这篇关于尝试确定在干净安装的Windows 10 + vs2015上托管您的应用程序的DNX进程的进程ID时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆