Zebra.Printer.SDK InteropServices Exception

W Walter Goydych 3 years ago
46 2 0

Hi Folks,

I’m a MS Visual Studio C# software developer & very new to Zebra SDK. Via Visual Studio package manager I downloaded NuGet package “Zebra.Printer.SDK 2.14.1989” into a simple Console Application project i.e. tried to use this SDK in Zebra’s simple example console program, as per Zebra doc. at “http://techdocs.zebra.com/link-os/2-14/pc_net/” (NB All the above target .NET 4.7.1)
The above fails with run time exception message of:-
“Could not load file or assembly 'System.Runtime.InteropServices.RuntimeInformation, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified”

Any help would be appreciated. Thanks!

Please register or login to post a reply

2 Replies

W Walter Goydych

  Fixed this issue for me, thanks so much Jonathan!
Grateful if it’s easy for you, could you please point me to an explanation of what this issue really was & why your fix worked?

J Jonathan Muniz

I had the same problem here.

The fix is pretty simple: edit the config file and on the node "dependentAssembly" where name attribute is "System.Runtime.InteropServices.RuntimeInformation", just remove the publicKeyToken attribute.

Hope that this fix it to you.

CONTACT
Can’t find what you’re looking for?