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

时间:2017-08-29 12:31:29

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

我正在尝试从here学习Visual Studio 2015中的服务结构。 WebService设置为启动项目,Single startup project的属性为solution

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

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).

如何摆脱此异常?

1 个答案:

答案 0 :(得分:1)

尝试使用' GettingStartedApplication'作为你的启动项目。