Rajeswari ML
Rajeswari ML

Reputation: 599

DllNotFoundException: Unable to load DLL 'FabricCommon.dll'

I have created a sample application using service fabric with Docker support. the VS version is 2017 community, Docker community edition version 18.04.0-ce-win62 (17151) and Microsoft Azure service fabric SDK 3.1.269.

I am getting the below error at run time:

System.TypeInitializationException: 'The type initializer for 'System.Fabric.Common.AppTrace' threw an exception.' Inner Exception : DllNotFoundException: Unable to load DLL 'FabricCommon.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Upvotes: 0

Views: 2367

Answers (1)

masnider
masnider

Reputation: 2599

That looks like a mismatch between the SDK version that you're using and the version the cluster is actually running. SDK 3.1 was targeted against runtime 6.2, and it can't run on lower runtimes (think about it - protocols or features may be missing).

TLDR at this point you may have the SDK installed locally, but your cluster probably isn't upgraded to 6.2 yet so you can't deploy things built against that SDK to those clusters until the upgrade happens. This is the normal process.

Supported cluster versions and SDKs are here. Also you may be running into this since 6.2 was deployed and then pulled back (a new version is going to start rolling out soon). You can find more information about that here, here, and here. I expect there to be more updates when the final build starts rolling out again.

Upvotes: 1

Related Questions