0

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

引发的异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException” 引发的异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException” 引发的异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException” 引发的异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException”抛出异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException”抛出异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException”抛出异常:“ mscorlib.dll 中的 System.Collections.Generic.KeyNotFoundException 引发异常:mscorlib.dll 中的“System.Collections.Generic.KeyNotFoundException” 引发异常:mscorlib 中的“System.Collections.Generic.KeyNotFoundException”。dll 抛出异常:Microsoft.ServiceFabric.Data.Log.dll 中的“System.IO.FileNotFoundException”抛出异常: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 中的 .IO.FileNotFoundException 引发的异常:Microsoft.ServiceFabric.Replicator.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:“System.IO.FileNotFoundException” ' 在 mscorlib.dll 中引发异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.AggregateException” 引发的异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”IO.FileNotFoundException' in mscorlib.dll 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException”引发的异常:Microsoft.ServiceFabric.Replicator.dll 中的“System.IO.FileNotFoundException”引发的异常: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”IO.FileNotFoundException' in mscorlib.dll 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException”引发的异常:Microsoft.ServiceFabric.Replicator.dll 中的“System.IO.FileNotFoundException”引发的异常: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”mscorlib.dll 中的 FileNotFoundException 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:Microsoft.ServiceFabric.Replicator 中的“System.IO.FileNotFoundException” .dll 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:“System. mscorlib.dll 中的 AggregateException' 引发异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”mscorlib.dll 中的 FileNotFoundException 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:Microsoft.ServiceFabric.Replicator 中的“System.IO.FileNotFoundException” .dll 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 抛出异常:“System. mscorlib.dll 中的 AggregateException' 引发异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”mscorlib.dll 中的 FileNotFoundException 引发的异常:Microsoft.ServiceFabric.Replicator.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib 中的“System.IO.FileNotFoundException” .dll 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.AggregateException” 引发的异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”mscorlib.dll 中的 FileNotFoundException 引发的异常:Microsoft.ServiceFabric.Replicator.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib 中的“System.IO.FileNotFoundException” .dll 引发的异常:mscorlib.dll 中的“System.IO.FileNotFoundException” 引发的异常:mscorlib.dll 中的“System.AggregateException” 引发的异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”mscorlib.dll 中的 FileNotFoundException 引发的异常:mscorlib.dll 中的“System.AggregateException” 引发的异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”mscorlib.dll 中的 FileNotFoundException 引发的异常:mscorlib.dll 中的“System.AggregateException” 引发的异常:System.Fabric.dll 中的“System.IO.FileNotFoundException”

我可以运行无状态服务和两种类型的演员都很好。但是有状态的服务只是不想为我工作。有任何想法吗?

4

1 回答 1

0

看到这个线程。

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

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

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

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

我不确定这是否是根本原因,但之后一切正常。值得一试。希望这可以帮助。"

它能为您提供帮助吗?

于 2015-05-28T13:33:51.640 回答