Giter VIP home page Giter VIP logo

Comments (5)

booktrakker avatar booktrakker commented on July 26, 2024

Hello! I really need some help. The issue seems to be that it cannot load the MDYMOBarcode.dll, which is in the folder and is the proper version, so it is not clear why it will not load. I tried to check dependencies but found none.

What do I need to do to get this working?

InnerException: Could not load file or assembly 'MDYMOBarcode.dll' or one of its dependencies. The specified module could not be found.

from dymo-connect-framework.

booktrakker avatar booktrakker commented on July 26, 2024

Here is the full exception I get in my log:

InnerException: There is an error in XML document (10, 4).
StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
at DYMO.Common.XMLSerializationHelpers.Deserialize[T](Stream mStream)
at DYMO.DLS.Runtime.Label.Load(Stream stream, Boolean wrapException)
at DYMO.DLS.Runtime.Label.Load(XmlDocument doc, Stream responseStream)
at DYMO.DLS.Runtime.Label.Load(String uri, IWebProxy webProxy)
InnerException: There is an error in XML document (10, 4).
StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at DYMO.DLS.Runtime.DieCutLabel.ReadXml(XmlReader reader)
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderDieCutLabel.Read1_DieCutLabel()
InnerException: There is an error in XML document (10, 4).
StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at DYMO.DLS.Runtime.DieCutLabel.ObjectInfo.ReadXml(XmlReader reader)
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObjectInfo.Read1_ObjectInfo()
InnerException: Exception has been thrown by the target of an invocation.
StackTrace: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAddressObject.Read10_AddressObject(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAddressObject.Read11_AddressObject()
InnerException: Could not load file or assembly 'MDYMOBarcode.dll' or one of its dependencies. The specified module could not be found.
StackTrace: at DYMO.DLS.Runtime.BarcodeLib..ctor()
at DYMO.DLS.Runtime.BarcodeRenderer..ctor(BarcodeType type, String text, BarcodeSize barcodeSize, HumanReadablePosition hrtPosition, Int32 ecLevel)
at DYMO.DLS.Runtime.AddressObject..ctor()
Unable to load label template 'C:\BTPro\Labels\DymoBookLandscape.label'
at DYMO.DLS.Runtime.Label.Load(String uri, IWebProxy webProxy)
at DYMO.Label.Framework.Label.Open(String uri)
at LabelPrinter.DymoLabel.Print() in G:\Ubix\LabelPrinter\DymoLabel.cs:line 331

from dymo-connect-framework.

dymosoftware avatar dymosoftware commented on July 26, 2024

Hey @booktrakker, could you please check you have DYMO Label Software correctly installed on your PC? Since you are using DYMO Label Framework then you will need all the components from DLS installed.

from dymo-connect-framework.

booktrakker avatar booktrakker commented on July 26, 2024

Hello,

We verified that they have the latest version of Dymo Label Framework installed. I have reproduced this issue on a system here, and it also has the full Dymo Label Framework installed. Nothing I do resolves the problem, and not knowing what the dependency issue relates to is hampering my efforts. What would cause the dll to fail to load, and what would cause the Report Load method to fail when there is no permission or security issue?

Please advise, the client is being very patient but needs a solution ASAP.

from dymo-connect-framework.

booktrakker avatar booktrakker commented on July 26, 2024

With both Dymo Connect and the SDK installed this error is produced, indicating that it cannot read the Label Definition file, which I have code that opens and reads. Why can't the SDK open the file when my code can?

InnerException: There is an error in XML document (10, 4).
StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
at DYMO.Common.XMLSerializationHelpers.Deserialize[T](Stream mStream)
at DYMO.DLS.Runtime.Label.Load(Stream stream, Boolean wrapException)
at DYMO.DLS.Runtime.Label.Load(XmlDocument doc, Stream responseStream)
at DYMO.DLS.Runtime.Label.Load(String uri, IWebProxy webProxy)
InnerException: There is an error in XML document (10, 4).
StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at DYMO.DLS.Runtime.DieCutLabel.ReadXml(XmlReader reader)
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderDieCutLabel.Read1_DieCutLabel()
InnerException: There is an error in XML document (10, 4).
StackTrace: at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at DYMO.DLS.Runtime.DieCutLabel.ObjectInfo.ReadXml(XmlReader reader)
at System.Xml.Serialization.XmlSerializationReader.ReadSerializable(IXmlSerializable serializable, Boolean wrappedAny)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderObjectInfo.Read1_ObjectInfo()
InnerException: Exception has been thrown by the target of an invocation.
StackTrace: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAddressObject.Read10_AddressObject(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderAddressObject.Read11_AddressObject()
InnerException: Could not load file or assembly 'MDYMOBarcode.dll' or one of its dependencies. The specified module could not be found.
StackTrace: at DYMO.DLS.Runtime.BarcodeLib..ctor()
at DYMO.DLS.Runtime.BarcodeRenderer..ctor(BarcodeType type, String text, BarcodeSize barcodeSize, HumanReadablePosition hrtPosition, Int32 ecLevel)
at DYMO.DLS.Runtime.AddressObject..ctor()
Unable to load label template 'C:\BTPro\Labels\DymoBookLandscape.label'
at DYMO.DLS.Runtime.Label.Load(String uri, IWebProxy webProxy)
at DYMO.Label.Framework.Label.Open(String uri)
at LabelPrinter.DymoLabel.Print() in G:\Ubix\LabelPrinter\DymoLabel.cs:line 331

Here is what I see just prior to the above error when I try to read the same label definition file one line prior to the call to the SDK:

Attempted to open Label File C:\BTPro\Labels\DymoBookLandscape.label:

Landscape Small30336 30336 1 in x 2-1/8 in StoreName Rotation0 False True Left Top ShrinkToFit True False StoreName False AboveAddress Price Rotation0 False True Left Top ShrinkToFit True False Price False AboveAddress AuthorTitle Rotation0 False True Left Top None True False Author/Title False AboveAddress Location Rotation0 False False Left Top ShrinkToFit True False Location Barcode Rotation0 False True 123456789123 Code128Auto Small Bottom None 0 Center

from dymo-connect-framework.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.