c# - service-fabric-dotnet-getting-started 中的 FabricException

标签 c# web-services azure azure-service-fabric

我正在尝试从 here 学习 Visual Studio 2015 中的服务结构。 WebService 设置为启动项目,并且在解决方案 的属性中为单一启动项目

当我运行该项目时,我得到

An unhandled exception of type 'System.Fabric.FabricException' occurred in WebService.exe

位于line 39

当我停止调试时,Output 窗口显示:

'WebService.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\shkulka\Downloads\GettingStartedApplication\WebService\bin\Debug\net452\win7-x64\WebService.exe'. Symbols loaded.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Fabric\v4.0_5.0.0.0__31bf3856ad364e35\System.Fabric.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\Users\shkulka\Downloads\GettingStartedApplication\WebService\bin\Debug\net452\win7-x64\Microsoft.ServiceFabric.Services.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\Users\shkulka\Downloads\GettingStartedApplication\WebService\bin\Debug\net452\win7-x64\Microsoft.ServiceFabric.Internal.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Numerics\v4.0_4.0.0.0__b77a5c561934e089\System.Numerics.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_64\System.Fabric.Strings\v4.0_5.0.0.0__31bf3856ad364e35\System.Fabric.Strings.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.Runtime.InteropServices.COMException' in System.Fabric.dll
Exception thrown: 'System.Fabric.FabricException' in mscorlib.dll
Exception thrown: 'System.Fabric.FabricException' in Microsoft.ServiceFabric.Services.dll
Exception thrown: 'System.Fabric.FabricException' in mscorlib.dll
Exception thrown: 'System.Fabric.FabricException' in mscorlib.dll
Exception thrown: 'System.Fabric.FabricException' in WebService.exe
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\14.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll'. 
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Cannot find or open the PDB file.
'WebService.exe' (CLR v4.0.30319: WebService.exe): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'. Cannot find or open the PDB file.
The program '[18428] WebService.exe: Program Trace' has exited with code 0 (0x0).
The program '[18428] WebService.exe' has exited with code -1 (0xffffffff).

如何摆脱这个异常?

最佳答案

尝试使用“GettingStartedApplication”作为您的启动项目。

关于c# - service-fabric-dotnet-getting-started 中的 FabricException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45939249/

相关文章:

c# - linq-to-sql "Cannot remove an entity that has not been attached"

xml - SOAP::Lite Perl 模块发送错误的 SOAP 信封命名空间

c# - xdoc 查询的 Select 语句

json - Invoke-WebRequest\RestMethod mangle 带有转义的 json 字符串

azure - 在 VS 2017 中设置新项目时找不到 Azure Functions

c# - 将建模矩阵应用于 View 矩阵 = 失败

c# - 如何防止因未设置模拟对象的期望而导致吞咽异常?

c# - WCF:将 Nonce 添加到 UsernameToken

.net - 在 VB.NET 中构建 REST 服务的教程?

asp.net - 针对托管在我自己的服务器上的应用程序的 Application Insights