【发布时间】:2020-04-29 12:24:09
【问题描述】:
我在本地集群中托管了服务结构应用程序。应用程序中的一项服务在服务结构资源管理器中的健康状态为“错误”。
事件字段说
'MyApplication' reported Error for property 'BoundedContextRegistration'.
System.Fabric.FabricException: Entity not found in Health Store. ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80071C17
at System.Fabric.Interop.NativeClient.IFabricHealthClient4.EndGetServiceHealth2(IFabricAsyncOperationContext context)
at System.Fabric.FabricClient.HealthClient.GetServiceHealthEndWrapper(IFabricAsyncOperationContext context)
at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
--- End of inner exception stack trace ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at MyApplication2.ActivatorService.d__4.MoveNext()
后台代码:
namespace MyApplication2
{
public class ActivatorService : ActorService
{}
}
运行状况为 Error 的实际服务代码为:
namespace MyApplication.Activator
{
/// <remarks>
/// This class represents an actor.
/// Every ActorID maps to an instance of this class.
/// The StatePersistence attribute determines persistence and replication of actor state:
/// - Persisted: State is written to disk and replicated.
/// - Volatile: State is kept in memory only and replicated.
/// - None: State is kept in memory only and not replicated.
/// </remarks>
[ActorService(Name = "MyApplicationActivatorActorService")]
[StatePersistence(StatePersistence.Persisted)]
internal class Activator : Actor, IActivatorInitialize, IActor, IDestroyable, IActorManager, ILendingActivator, ICommandHandler
{
我找不到原因。并从 microsoft 文档和其他 Internet 搜索中了解。我确实重新启动了机器。我撤消源代码中的更改并重新构建和发布。但是健康状态仍然是错误的。如何查找此服务“MyApplicationActivatorActorService”的错误健康原因?
【问题讨论】: