gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 03:04:19 24 4
gpt4 key购买 nike

我正在尝试从 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com