我有一个干净安装的Windows 10,以及一个干净安装的VS 2015 Update 1与RC1 ASP.NET工具.当我开始一个没有任何身份验证的新的ASP.NET MVC项目!和Hit F5时,我得到"尝试确定托管您的应用程序的DNX进程的进程ID时出错"错误.
我没有VS或ASP.NET的任何旧版本.一切都是最新的干净安装.我浏览了这个文档: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环境必须有一些额外的步骤.
在这里,我的project.json文件:
{
"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" ]
}
}
我认为我的问题是因为我选中了"启用SSL"选项,但此计算机上未安装证书.
因此,使用Ctl + F5运行该站点安装了证书,然后我就能够调试解决我的问题的站点.