【发布时间】:2018-02-06 22:02:58
【问题描述】:
我正在尝试从 here 学习 Visual Studio 2015 中的服务结构。
WebService 设置为启动项目,在solution 的属性中为Single startup project。
当我运行项目时,我得到了
An unhandled exception of type 'System.Fabric.FabricException' occurred in WebService.exe
当我停止调试时,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).
如何摆脱这个异常?
【问题讨论】:
-
事件查看器可以提供有关服务结构错误的一些见解。
-
@xaero99:谢谢,我去看看。
标签: c# web-services azure azure-service-fabric