HTTP错误502.5 InteropServices.COMException Fabric.FabricConnectionDeniedException [英] HTTP Error 502.5 InteropServices.COMException Fabric.FabricConnectionDeniedException
问题描述
All ,
我正在尝试此示例
https://github.com/Azure-Samples/service-fabric-dotnet-web-reference-app/blob/master/Docs/architecture.md
https://github.com/Azure-Samples/service-fabric-dotnet-web-reference-app/blob/master/Docs/architecture.md
当我运行应用程序时..i显示502错误 在浏览器中.
when i run the application ..i get 502 error shown in browser .
事件日志中有此错误..
event log has this error ..
-----
应用程序:Web.Service.exe
框架版本:v4.0.30319
说明:进程由于未处理的异常而终止.
异常信息:System.Runtime.InteropServices.COMException
at System.Fabric.Interop.NativeRuntime.FabricEndGetNodeContext(IFabricAsyncOperationContext)
at System.Fabric.FabricRuntime + NativeFabricRuntimeFactory.GetNodeContextEndWrapper(IFabricAsyncOperationContext)
at System.Fabric.Interop.AsyncCallOutAdapter2`1 [[System .__ Canon,mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089]].Finish(IFabricAsyncOperationContext,Boolean)
异常信息:System.Fabric.FabricConnectionDeniedException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Microsoft.ServiceFabric.Services.Runtime.RuntimeContext +< GetOrCreateAsync> d__14.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Microsoft.ServiceFabric.Services.Runtime.ServiceRuntime +< RegisterServiceAsync> d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
在Web.Service.Program.Main()
Application: Web.Service.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Runtime.InteropServices.COMException
at System.Fabric.Interop.NativeRuntime.FabricEndGetNodeContext(IFabricAsyncOperationContext)
at System.Fabric.FabricRuntime+NativeFabricRuntimeFactory.GetNodeContextEndWrapper(IFabricAsyncOperationContext)
at System.Fabric.Interop.AsyncCallOutAdapter2`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Finish(IFabricAsyncOperationContext, Boolean)
Exception Info: System.Fabric.FabricConnectionDeniedException
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Microsoft.ServiceFabric.Services.Runtime.RuntimeContext+<GetOrCreateAsync>d__14.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at Microsoft.ServiceFabric.Services.Runtime.ServiceRuntime+<RegisterServiceAsync>d__0.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at Web.Service.Program.Main()
--------------------------------------
--------------------------------------
我尝试将其放在我的webs.service app.config文件中.但是它不会生成任何日志文件.
i tried putting this in my webs.service app.config file .. but it does not generate any log file.
< configuration>
< runtime>
< gcServer enabled ="true"/>
</runtime>
< system.webServer>
<处理程序>
< add name ="aspNetCore"; path ="*"动词="*" modules ="AspNetCoreModule"; resourceType =未指定" />
</handlers>
< aspNetCore processPath ="dotnet"
stdoutLogEnabled =真"
stdoutLogFile =.\ logs \ stdout" />
</system.webServer>
</configuration>
<configuration>
<runtime>
<gcServer enabled="true"/>
</runtime>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet"
stdoutLogEnabled="true"
stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
-----------
-----------
我该如何调试此问题?
how do i debugs this issue ?
谢谢
推荐答案
这是指向实际分步示例的链接,您可以考虑以下步骤以查看是否有帮助: 
This is a link to an actual step by step example you might consider following to see if that helps:
https://github.com/Azure-Samples/service-fabric-dotnet -web-reference-app
您也可以下载zip文件以简化操作
You can also just download the zip file to make things simpler
https://azure.microsoft.com /en-us/resources/samples/service-fabric-dotnet-web-reference-app//
https://azure.microsoft.com/en-us/resources/samples/service-fabric-dotnet-web-reference-app//
这篇关于HTTP错误502.5 InteropServices.COMException Fabric.FabricConnectionDeniedException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!