2016-04-29 38 views
4

Visual Studio 2015でasp.net 5アプリケーションをデバッグしようとすると、次のエラーが発生します "プロセスIDを決定しようとしているときにエラーが発生しました。これは、Windows 10で起こっている2Visual Studio 2015でIIS Expressを使用してASP.NET 5をデバッグできません

DNXプロセスアプリケーションをホストしている」 enter image description here

UPDATEは、私は、Windows 7でテストされ、私はこのエラーに遭遇していない をしました。

Visual Studio 2015で "web"オプションを使用して実行できますが、IIS Expressでエラーが発生しています。 ctrl + F5(デバッグなしで実行)を押すと、ブラウザウィンドウが開き、何もしないで(カーソルが永遠に回転します)、そこに座ります。ツールバーの

スナップショット enter image description here

出力 - >デバッグウィンドウには、このエラーの根本的な原因が何であるかを確認してください空、そうではありません。私は他のエラーの詳細を探す必要がある場合は、確信しています。 enter image description here

私は

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

An error occurred attempting to determine the process id of the DNX process hosting your application on clean installed windows 10 + vs2015

に記載されているソリューションのほとんどを試してみましたが、それらのどれも働きました。

ここでは、誰かが見たい場合は、簡単なテストアプリケーションです。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 
+0

あなたは管理者としてVSを実行していますか? –

+0

はい、私はそのオプションも試してみました。 – Vinod

+0

あなたの 'dnvm list'出力は何を表示していますか? –

答えて

1

launchsettings.json再起動VSを編集してもう一度デバッグしてください。

{ 
    ... 
    "profiles": { 
    "IIS Express": { 
     "commandName": "IISExpress", 
     "launchBrowser": true, 
     "environmentVariables": { 
     "Hosting:Environment": "Development" 
     }, 
     "sdkVersion": "dnx-clr-win-x86.1.0.0-rc1-update2" 
    }, 
    ... 
} 
+0

lauchsettings.jsonを更新しました。同じエラーが発生しました。私はコンピュータを再起動し、管理者としてVSを開いた。また、Visual Studioがlaunchsettings.jsonからの変更を取得していることを確認し、プロジェクトプロパティウィンドウにUse specific version:1.0.0-rc1-update2と表示されることを確認しました。同じエラーが発生しました。 – Vinod

2

IISExpressで同じ問題が発生しました。 Windows 10でも。常に "アプリケーションをホストしているDNXプロセスのプロセスIDを特定しようとしてエラーが発生しました"が表示されます。変更と認証のない新しいWebアプリケーションの場合でも。上記のVinodにリストされたStackOverflowソリューションをすべて試してみました。

「Microsoft ASP.NETとWebツール」(バージョン14.1.20512.0 - 日付:5/18/2016 - https://visualstudiogallery.msdn.microsoft.com/c94a02e9-f2e9-4bad-a952-a63a967e3935)の最新の更新プログラムをインストールしていました。ほとんどすべてを試したあと、更新は文字通りその日だった。 Windows認証を有効にしたIISExpress上のアプリケーションのデバッグにも役立ちました。

これが役に立ちます。

+1

私は今朝もアップデートをダウンロードしました。その特定のエラーは消え去ったが、別の道路ブロックに当たった。 「Webサーバーの起動に予想以上の時間がかかる」というエラーが表示される何が起こっているのか把握するためにいくつかの研究に行きます。 – Vinod

+0

@Vinod、DNXの問題とは無関係ですが、私はIISexpressをバージョン1の代わりにバージョン8にダウングレードしました。当時、私はIISExpress 10を別のプロジェクトを開始するのに困っていました。 IISExpress 10にアップグレードしてもDNXの問題には役に立たなかったので、バージョン8に再度ダウングレードしました。たぶんダウングレードに試してみることができます。 – uonchiu

関連する問題