My ArcGIS Pro 3.1 AddIn uses System.ServiceModel to open a communication via pipes to a service. I added "System.ServiceModel" to the Assablies (References) and Built it without errors.

But when I debug my AddIn and the button is clicked where the connection should be established:

var pipeFactory = new ChannelFactory<IWCFStarter>(new NetNamedPipeBinding(),
                                                  new EndpointAddress("net.pipe://localhost/myconnect"));

An exception is thrown:

  Message=Could not load file or assembly 'System.ServiceModel, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089'. Das System kann die angegebene Datei nicht finden.

So why is this? It works fine with referencing my own projects.

Things I tried that didn't work:

  • Rebuild everything.
  • Set the 'Copy local' in the properties of the Assembly: 'System.ServiceModel' to yes.

1 Answer 1


I removed all references to: System.ServiceModel from all projects in the workspace. Then I added the nuget-Packages:

System.ServiceModel.NetNamedPipe and

Afterwards the code compiles and runs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.