dymosoftware / DCD-SDK-Sample

DYMO Connect SDK Samples
Other
60 stars 26 forks source link

Could not load file or assembly Interop.DYMOPrintingSupportLib #78

Open Ahmed-Radamec opened 12 months ago

Ahmed-Radamec commented 12 months ago

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

edsonh commented 9 months ago

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

CarmineIuliani commented 7 months ago

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: