dymo-connect-framework icon indicating copy to clipboard operation
dymo-connect-framework copied to clipboard

.NET core error

Open jlewin opened this issue 6 years ago • 8 comments

When attempting to build a simple .NET core console app and after adding the latest Nuget package for DYMO.Connect.SDK v1.3.1.115 the runtime error depicted below is thrown on load.

Given that the requirements on the Nuget package show .net standard 2, it seemed likely that it would run on .net core. Is this error expected or is it a product bug or a misconfig on my part?

image

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'DYMO.CrossPlatform.Common, Version=1.3.1.115, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified. File name: 'DYMO.CrossPlatform.Common, Version=1.3.1.115, Culture=neutral, PublicKeyToken=null' at DymoPrintServerCore.DymoPrintServer..ctor() at DymoPrintServerCore.Program.Main(String[] args) in C:\Data\Source\QuickTools\DymoPrintServerCore\Program.cs:line 9

jlewin avatar Mar 07 '20 18:03 jlewin

After creating a new .NET v4.7.2 project, the same code runs without error

jlewin avatar Mar 07 '20 18:03 jlewin

Hi @jlewin , this is an expected error, since some of our platform libraries are not fully compatible with .Net Core. We keep it in mind for further releases.

dymosoftware avatar Mar 09 '20 11:03 dymosoftware

That's unfortunate. I was hoping to host my assembly in a .NET Core worker service so I could remotely invoke print jobs. I spent the bulk of the weekend trying to work around this limitation and finally had success falling back to .NET v4.7.x and using NancyFx to host the service. Seems to run great but took significantly more time than the worker service route would have.

Thanks for the update and hopefully .NET Core can be a priority in the future.

jlewin avatar Mar 09 '20 14:03 jlewin

Does the new SDK support .NET Core and/or .NET 5 and above?

githubsamurai avatar Dec 15 '21 15:12 githubsamurai

Any solutions on this yet? I'm developing VB.net apps in Visual Studio 2022 (Net 6.0; Net Framework 4.8+), and get the following error when attempting to execute the following SDK code:

Imports DymoSDK.Implementations Imports DymoSDK.Interfaces DymoSDK.App.Init() Dim dymoSDKPrinter = DymoPrinter.Instance

    Dim fullpath As String = System.IO.Path.GetFullPath("d:\label.label")
    Dim dymoSDKLabel = DymoLabel.Instance
    dymoSDKLabel.LoadLabelFromFilePath(fullpath)

    Dim LabelTextObject1 As DymoSDK.Interfaces.ILabelObject
    LabelTextObject1 = dymoSDKLabel.GetLabelObject("NameOfLabel")
    dymoSDKLabel.UpdateLabelObject(LabelTextObject1, "ValueOfLabel")

    If dymoSDKPrinter.PrintLabel(dymoSDKLabel, ItemId.Text, 1, False, False, 0, False, False) Then
        MsgBox("Printed !", vbInformation)
    End If

****"System.IO.FileNotFoundException: 'Could not load file or assembly 'DYMO.CrossPlatform.Common, Version=1.4.3.37, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'"

I've loaded the following packages:

Dymo.Connect.SDK V1.4.3.37 NetStandard.Library V2.0.3 SkiaSharp V2.88.3 SkiaSharp.Views V2.88.3

The following link implies that my environment is supported by the Dymo SDK:

https://www.nuget.org/packages/DYMO.Connect.SDK/#supportedframeworks-body-tab

Anybody have any ideas on this?

Thanks in advance.

doughayman2 avatar Feb 13 '23 19:02 doughayman2

I have the same issue, please help!!!

JLOrdaz avatar Mar 01 '23 14:03 JLOrdaz

Any solutions on this yet? I'm developing VB.net apps in Visual Studio 2022 (Net 6.0; Net Framework 4.8+), and get the following error when attempting to execute the following SDK code:

Imports DymoSDK.Implementations Imports DymoSDK.Interfaces DymoSDK.App.Init() Dim dymoSDKPrinter = DymoPrinter.Instance

    Dim fullpath As String = System.IO.Path.GetFullPath("d:\label.label")
    Dim dymoSDKLabel = DymoLabel.Instance
    dymoSDKLabel.LoadLabelFromFilePath(fullpath)

    Dim LabelTextObject1 As DymoSDK.Interfaces.ILabelObject
    LabelTextObject1 = dymoSDKLabel.GetLabelObject("NameOfLabel")
    dymoSDKLabel.UpdateLabelObject(LabelTextObject1, "ValueOfLabel")

    If dymoSDKPrinter.PrintLabel(dymoSDKLabel, ItemId.Text, 1, False, False, 0, False, False) Then
        MsgBox("Printed !", vbInformation)
    End If

****"System.IO.FileNotFoundException: 'Could not load file or assembly 'DYMO.CrossPlatform.Common, Version=1.4.3.37, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'"

I've loaded the following packages:

Dymo.Connect.SDK V1.4.3.37 NetStandard.Library V2.0.3 SkiaSharp V2.88.3 SkiaSharp.Views V2.88.3

The following link implies that my environment is supported by the Dymo SDK:

https://www.nuget.org/packages/DYMO.Connect.SDK/#supportedframeworks-body-tab

Anybody have any ideas on this?

Thanks in advance.

I have the same problem..have you solved?

Eli1995 avatar Mar 03 '23 08:03 Eli1995

Same issue here. The amount of time lost with this library problems and its monstrous dependencies, i wish i knew.

beanbabyclothes avatar May 11 '23 13:05 beanbabyclothes