Visual Studio 2015でasp.net 5アプリケーションをデバッグしようとすると、次のエラーが発生します "プロセスIDを決定しようとしているときにエラーが発生しました。これは、Windows 10で起こっている2Visual Studio 2015でIIS Expressを使用してASP.NET 5をデバッグできません
UPDATEは、私は、Windows 7でテストされ、私はこのエラーに遭遇していない をしました。
Visual Studio 2015で "web"オプションを使用して実行できますが、IIS Expressでエラーが発生しています。 ctrl + F5(デバッグなしで実行)を押すと、ブラウザウィンドウが開き、何もしないで(カーソルが永遠に回転します)、そこに座ります。ツールバーの
出力 - >デバッグウィンドウには、このエラーの根本的な原因が何であるかを確認してください空、そうではありません。私は他のエラーの詳細を探す必要がある場合は、確信しています。
私は
Microsoft Visual Studio Professional 2015 Version 14.0.25123.00 Update 2
Microsoft .NET Framework Version 4.6.01038
Windows 10 pro v1511 OS build 10586.218
DNVM 1.0.0-rc1-15540
Microsoft .NET Development Utility Clr-x86-1.0.0-rc1-16609
を持っている私も、エラーはまだ発生している-CLR-WIN-x86.1.0.0-RC1-アップデート2がDNXするDNXをアップグレードdnvmのアップグレードを、試してみました。
私は
An error occurred attempting to determine the process id of the DNX process hosting your application
と
に記載されているソリューションのほとんどを試してみましたが、それらのどれも働きました。
ここでは、誰かが見たい場合は、簡単なテストアプリケーションです。https://github.com/vinodbadugu/aspnet5test
launchsettings.json(UPDATE 1)
{
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:44342/",
"sslPort": 0
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "http://localhost:44342/",
"environmentVariables": {
"Hosting:Environment": "Development"
},
"sdkVersion": "dnx-clr-win-x86.1.0.0-rc1-update2"
},
"web": {
"commandName": "web",
"environmentVariables": {
"Hosting:Environment": "Development"
}
}
}
}
project.json
{
"version": "1.0.0-*",
"compilationOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Microsoft.AspNet.IISPlatformHandler": "1.0.0-rc1-final",
"Microsoft.AspNet.Server.Kestrel": "1.0.0-rc1-final",
"Microsoft.AspNet.Diagnostics": "1.0.0-rc1-final"
},
"commands": {
"web": "Microsoft.AspNet.Server.Kestrel"
},
"frameworks": {
"dnx451": { },
"dnxcore50": { }
},
"exclude": [
"wwwroot",
"node_modules"
],
"publishExclude": [
"**.user",
"**.vspscc"
]
}
startup.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.AspNet.Http;
using Microsoft.Extensions.DependencyInjection;
namespace Tutorial1
{
public class Startup
{
// This method gets called by the runtime. Use this method to add services to the container.
// For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app)
{
app.UseIISPlatformHandler();
app.UseDeveloperExceptionPage();
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});
}
// Entry point for the application.
public static void Main(string[] args) => WebApplication.Run<Startup>(args);
}
}
dnvmリスト
Active Version Runtime Architecture OperatingSystem Alias
------ ------- ------- ------------ --------------- -----
1.0.0-rc1-update1 clr x64 win
1.0.0-rc1-update1 clr x86 win
1.0.0-rc1-update1 coreclr x64 win
1.0.0-rc1-update1 coreclr x86 win
* 1.0.0-rc1-update2 clr x86 win default
1.0.0-rc1-update2 coreclr x86 win
あなたは管理者としてVSを実行していますか? –
はい、私はそのオプションも試してみました。 – Vinod
あなたの 'dnvm list'出力は何を表示していますか? –