尝试确定在干净安装的 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

查看:11
本文介绍了尝试确定在干净安装的 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

我发现了这个 主题,但这不是重复的问题,因为我没有升级任何东西,这个问题只是在干净安装的 Windows 10 + VS 2015 Update 1 系统上弹出.我有一个 Windows 8.1 和 VS2013 + VS2015 系统,一切正常.我认为在 Windows 10 上设置 ASP.NET 5 环境必须有一些额外的步骤.

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.

事实证明,该错误可能由 RC1 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 Community Edition Update 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天全站免登陆