DCD-SDK-Sample icon indicating copy to clipboard operation
DCD-SDK-Sample copied to clipboard

Could not load file or assembly Interop.DYMOPrintingSupportLib

Open Ahmed-Radamec opened this issue 2 years ago • 2 comments

Hi DYMO Development Community,

My application is throwing the unhandled exception when I execute Framework.GetPrinters(). The following error pops up.

System.IO.FileNotFoundException: 'Could not load file or assembly 'Interop.DYMOPrintingSupportLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=5426002a38745af9' or one of its dependencies. The system cannot find the file specified.'

I am using target .net framework 4.6 and also attached the screenshot of configuration packages. I tried to reinstall packages from Nuget package manager console but still didn't work.

Can anyone please help to explain the reason of issue and indicate the solution?

Thanks.

Framework_GetPrinters

image

Ahmed-Radamec avatar Jul 26 '23 15:07 Ahmed-Radamec

I'm having the same issue. Did you find a Work around to this?

edsonh avatar Oct 27 '23 18:10 edsonh

I had the same problem a few days ago. Your code seems for managing the DLS and not for the Connect software (which is my case). I used a workaround like this:

  • Uninstall NuGet package. It will remove references for DYMO.Common, DYMO.DLS.Runtime, DYMO.Label.Framework and Interop.DYMOPrintingSupportLib
  • Add the manual reference for the first three DLL, searching in the folder "C:\Program Files (x86)\DYMO\DYMO Label Software\Framework"

CarmineIuliani avatar Dec 07 '23 09:12 CarmineIuliani