microsoft / service-fabric

Service Fabric is a distributed systems platform for packaging, deploying, and managing stateless and stateful distributed applications and containers at large scale.
https://docs.microsoft.com/en-us/azure/service-fabric/
MIT License
3.03k stars 401 forks source link

[BUG] - Unable to load DLL 'FabricCommon.dll' after updating to version 9.1.1851.9590 #1471

Closed specialforest closed 1 year ago

specialforest commented 1 year ago

Describe the bug I cannot debug Service Fabric application locally. When the application starts it fails with an exception: {"Unable to load DLL 'FabricCommon.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)"}

Area/Component: SDK

To Reproduce Steps to reproduce the behavior:

  1. From Visual Studio start debugging of SF application
  2. See error

Expected behavior Application starts without an error

Observed behavior: Application fails to start and throws an exception.

Service Fabric Runtime Version: 9.1.1851.9590

Environment:

If this is a regression, which version did it regress from? 9.1.1833/6.1.1833

Additional context

When running as Administrator:

C:\Windows\System32>where FabricCommon.dll
C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\FabricCommon.dll
PS C:\Windows\system32> (Get-Item "C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\FabricCommon.dll").VersionInfo

ProductVersion   FileVersion      FileName
--------------   -----------      --------
9.1.1851.9590    9.1.1851.9590    C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\FabricCommon.dll

Assignees: /cc @microsoft/service-fabric-triage

specialforest commented 1 year ago

The issue resolved after some fiddling: