2017-09-01 16 views
0

.Net Core Webテンプレートを使用してVS 2017でアプリケーションを作成しました。実際にフル・フレームワーク・パッケージであるパッケージを参照する必要があることがわかりました。.Net Framework 4.62を対象とする.NETコアアプリケーションをAzureに展開する

対象フレームワークを4.6.2に変更しました。

HTTPエラー502.5 - プロセス障害この問題の 一般的な原因:ウェブアプリは紺碧に配備されている場合しかし、今、私は一貫して、エラーを取得しています

アプリケーションプロセスは アプリケーション・プロセスの起動に失敗しました。開始したが停止した アプリケーションプロセスが開始されたが、構成済みのポートでリッスンできなかった トラブルシューティング手順: システムイベントログでエラーメッセージを確認する アプリケーションプロセスのstdoutメッセージのログを有効にする アプリケーションプロセスにデバッガを接続して検査 詳細については、https://go.microsoft.com/fwlink/?LinkID=808681

開始することもできないように見えますが、この作業を行うためにはどのような変更が必要かはっきりしていません。私は、ログを有効

<?xml version="1.0" encoding="UTF-8"?> 
<configuration> 
<!--ProjectGuid: db77cdb1-05c4-450e-94d8-5dabc48c6d76--> 
<system.webServer> 
<handlers> 
<add resourceType="Unspecified" modules="AspNetCoreModule" verb="*" path="*" name="aspNetCore"/> 
</handlers> 
<aspNetCore stdoutLogFile=".\logs\stdout" stdoutLogEnabled="true" processPath=".\Genesis.IdentityServer.exe"/> 
</system.webServer> 
</configuration> 

:私は、web.configファイルは、これを含むサーバー、上に作成され、それを公開

。次のようにイベントで

エラー紺碧のデバッグコンソール上にログがある:

<Event> 
<System> 
<Provider Name=".NET Runtime"/> 
<EventID>1026</EventID> 
<Level>0</Level> 
<Task>0</Task> 
<Keywords>Keywords</Keywords> 
<TimeCreated SystemTime="2017-09-01T06:14:38Z"/> 
<EventRecordID>868107718</EventRecordID> 
<Channel>Application</Channel> 
<Computer>RD0003FFC3731F</Computer> 
<Security/> 
</System> 
<EventData> 
<Data>Application: Genesis.IdentityServer.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: Microsoft.Net.Http.Server.WebListenerException at Microsoft.Net.Http.Server.ServerSession..ctor() at Microsoft.Net.Http.Server.WebListener..ctor(Microsoft.Net.Http.Server.WebListenerSettings) at Microsoft.AspNetCore.Server.WebListener.MessagePump..ctor(Microsoft.Extensions.Options.IOptions`1<Microsoft.AspNetCore.Server.WebListener.WebListenerOptions>, Microsoft.Extensions.Logging.ILoggerFactory) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(Microsoft.Extensions.DependencyInjection.ServiceLookup.ConstructorCallSite, Microsoft.Extensions.DependencyInjection.ServiceProvider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitCallSite(Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite, System.__Canon) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(Microsoft.Extensions.DependencyInjection.ServiceLookup.ScopedCallSite, Microsoft.Extensions.DependencyInjection.ServiceProvider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton(Microsoft.Extensions.DependencyInjection.ServiceLookup.SingletonCallSite, Microsoft.Extensions.DependencyInjection.ServiceProvider) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].VisitCallSite(Microsoft.Extensions.DependencyInjection.ServiceLookup.IServiceCallSite, System.__Canon) at Microsoft.Extensions.DependencyInjection.ServiceProvider+<>c__DisplayClass16_0.<RealizeService>b__0(Microsoft.Extensions.DependencyInjection.ServiceProvider) at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(System.Type) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(System.IServiceProvider, System.Type) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.IServiceProvider) at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureServer() at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication() at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() at Genesis.IdentityServer.Program.Main(System.String[]) </Data> 
</EventData> 
</Event> 
<Event> 
<System> 
<Provider Name="IIS AspNetCore Module"/> 
<EventID>1000</EventID> 
<Level>0</Level> 
<Task>0</Task> 
<Keywords>Keywords</Keywords> 
<TimeCreated SystemTime="2017-09-01T06:14:38Z"/> 
<EventRecordID>868107937</EventRecordID> 
<Channel>Application</Channel> 
<Computer>RD0003FFC3731F</Computer> 
<Security/> 
</System> 
<EventData> 
<Data>Application 'MACHINE/WEBROOT/APPHOST/GENIDENTITYSERVER' with physical root 'D:\home\site\wwwroot\' failed to start process with commandline 'D:\home\site\wwwroot\Genesis.IdentityServer.exe ', ErrorCode = '0x80004005 : e0434352.</Data> 
</EventData> 
</Event> 
</Events> 

これは私の不可解され、私は単に私の.NETのコアアプリからフレームワーク462を対象とすることはできませんか?

EDIT

私は、詳細なエラーになって、今見る:

HTTPエラー502.5 - 不正なゲートウェイ は、指定されたCGIアプリケーションは、エラーが発生し、サーバーがプロセスを終了しました。

おそらく原因: CGIアプリケーションが有効なHTTPエラーセットを返しませんでした。 親ゲートウェイのエラーのために、プロキシまたはゲートウェイとして機能するサーバーが要求を処理できませんでした。

試してみるもの: DebugDiagを使用して、CGIアプリケーションのトラブルシューティングを行います。 プロキシまたはゲートウェイがこのエラーの原因であるかどうかを判断します。

詳細なエラー情報: モジュールAspNetCoreModule 通知ExecuteRequestHandler ハンドラaspNetCore エラーコード0x00000000の 要求されたURL http://GenIdentityServer:80/favicon.ico 物理パスD:\ホーム\サイト\ wwwrootの\ ログオン方法匿名 ログオンユーザーfavicon.icoを匿名

WebHostBuilder()の周りにtry catchを配置しました。コールを構築し、これがログに記録されているものです。

Access is denied at Microsoft.Net.Http.Server.ServerSession..ctor() 
    at Microsoft.Net.Http.Server.WebListener..ctor(WebListenerSettings settings) 
    at Microsoft.AspNetCore.Server.WebListener.MessagePump..ctor(IOptions`1 options, ILoggerFactory loggerFactory) 
--- End of stack trace from previous location where exception was thrown --- 
    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, ServiceProvider provider) 
    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument) 
    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitScoped(ScopedCallSite scopedCallSite, ServiceProvider provider) 
    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitSingleton(SingletonCallSite singletonCallSite, ServiceProvider provider) 
    at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(IServiceCallSite callSite, TArgument argument) 
    at Microsoft.Extensions.DependencyInjection.ServiceProvider.<>c__DisplayClass16_0.<RealizeService>b__0(ServiceProvider provider) 
    at Microsoft.Extensions.DependencyInjection.ServiceProvider.GetService(Type serviceType) 
    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType) 
    at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider) 
    at Microsoft.AspNetCore.Hosting.Internal.WebHost.EnsureServer() 
    at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication() 
    at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build() 
    at Genesis.IdentityServer.Program.Main(String[] args) 
[OK]を
+0

イベントログのスタックトレースはほとんど読めなくなり、何らかの理由で原因と思われる「WebListenerException」に関連付けられたメッセージがありません。あなたの 'Main'メソッドの' WebHostBuilder.Build() 'への呼び出しをtry-catchで囲み、あなたがそれを読むことができるようにスローされた例外をログに記録することをお勧めします(' exception.ToString() 'ログに)。 'WebListenerException'を取得する理由の1つは、プロセスがアクセスできない、またはすでに使用中のポートにバインドしようとしているためです。 –

+0

私は、詳細なエラーログに表示されるエラーの欄を更新しました –

答えて

0

私はこれがコードに追加されたことを認識していなかった。

//.UseWebListener(options => // {// options.ListenerSettings.Authentication.Schemes = AuthenticationSchemes.Negotiate | AuthenticationSchemes.NTLM; // options.ListenerSettings.Authentication.AllowAnonymous =真;もちろん紺碧の上では動作しません//})

関連する問題