有状态服务的错误

时间:2015-05-20 17:18:14

标签: azure azure-service-fabric

当我尝试调试简单的HelloWorldStateful服务时,我收到以下错误:

  

抛出异常:'System.Collections.Generic.KeyNotFoundException'   抛出mscorlib.dll异常:   mscorlib.dll中的“System.Collections.Generic.KeyNotFoundException”   抛出异常:'System.Collections.Generic.KeyNotFoundException'中   抛出mscorlib.dll异常:   mscorlib.dll中的“System.Collections.Generic.KeyNotFoundException”   抛出异常:'System.Collections.Generic.KeyNotFoundException'中   抛出mscorlib.dll异常:   mscorlib.dll中的“System.Collections.Generic.KeyNotFoundException”   抛出异常:'System.Collections.Generic.KeyNotFoundException'中   抛出mscorlib.dll异常:   mscorlib.dll中的“System.Collections.Generic.KeyNotFoundException”   抛出异常:'System.Collections.Generic.KeyNotFoundException'中   抛出了mscorlib.dll异常:'System.IO.FileNotFoundException'   抛出Microsoft.ServiceFabric.Data.Log.dll异常:   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   Microsoft.ServiceFabric.Data.Log.dll中的“System.ArgumentException”   抛出异常:mscorlib.dll异常中的'System.ArgumentException'   抛出:抛出mscorlib.dll异常中的'System.ArgumentException':   'System.IO.FileNotFoundException'中   抛出Microsoft.ServiceFabric.Data.Log.dll异常:   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   'System.IO.FileNotFoundException'中   抛出Microsoft.ServiceFabric.Replicator.dll异常:   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   'System.IO.FileNotFoundException'中   抛出Microsoft.ServiceFabric.Replicator.dll异常:   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.IO.FileNotFoundException':   抛出mscorlib.dll异常中的'System.AggregateException':   System.Fabric.dll中的“System.IO.FileNotFoundException”

我可以运行无状态服务,两种类型的演员都可以。但有状态的服务只是不想为我工作。有什么想法吗?

1 个答案:

答案 0 :(得分:0)

查看此主题。

https://social.msdn.microsoft.com/Forums/azure/en-US/6ca0527a-8aa7-44e4-bca2-7087f217a434/problem-deploying-helloworldstateful-stateful-service?forum=AzureServiceFabric

“默认情况下,安装会将服务结构安装到C:\ SfDevCluster。

当我将服务结构安装到非默认驱动器时,我遇到了类似的问题。夹。只有有状态服务(不是参与者)才会失败。调试和打破异常没有帮助。

当我将安装保留为默认值时,工作正常。

我不确定这是否是根本原因,但事后工作正常。值得一试。希望这可以帮助。 “

这对你有用吗?