Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure service fabric “如何修复服务结构运行状况错误”;在健康商店中找不到实体。”;_Azure Service Fabric - Fatal编程技术网

Azure service fabric “如何修复服务结构运行状况错误”;在健康商店中找不到实体。”;

Azure service fabric “如何修复服务结构运行状况错误”;在健康商店中找不到实体。”;,azure-service-fabric,Azure Service Fabric,我在本地集群中托管了service fabric应用程序。应用程序中的一个服务在服务结构资源管理器中的运行状况状态为“错误” 事件字段显示 'MyApplication' reported Error for property 'BoundedContextRegistration'. System.Fabric.FabricException: Entity not found in Health Store. ---> System.Runtime.InteropServices.CO

我在本地集群中托管了service fabric应用程序。应用程序中的一个服务在服务结构资源管理器中的运行状况状态为“错误”

事件字段显示

'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
    {}
}
由于运行状况而出错的实际服务代码为:

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
    {
名称空间MyApplication.Activator
{
/// 
///这个类表示一个参与者。
///每个ActorID映射到此类的一个实例。
///StatePersistence属性确定参与者状态的持久性和复制:
///-持久化:状态写入磁盘并复制。
///-易失性:状态仅保留在内存中并复制。
///-无:状态仅保留在内存中,不复制。
/// 
[ActorService(Name=“MyApplicationActivatorService”)]
[StatePersistence(StatePersistence.peristed)]
内部类激活器:Actor、IActivatorInitialize、IActor、IDestroyable、IActorManager、iEndingActivator、iCommand和Handler
{

我找不到原因。并从microsoft文档和其他internet搜索中了解。我确实重新启动了计算机。我撤消了对源代码的更改,重新生成并再次发布。但运行状况仍然是错误。如何找到此服务“MyApplicationActivatorService”运行状况出错的原因?

MyApplication2是另一个service fabric应用程序。应该解决此问题。发布MyApplication2 service fabric应用程序后,运行状况正常