Sign In  Sign Up Live-Chat

Aspose.Words .NET with Mono corruption message?

Last post 12-29-2008, 3:57 AM by romank. 23 replies.
Page 1 of 2 (24 items)   1 2 Next >
Sort Posts: Previous Next
  •  10-21-2008, 10:01 AM 148790

    Aspose.Words .NET with Mono corruption message?


    Hi,

    I'm just trying to get a very simple test program running in the Mono environment and I am encountering an error message that I can't make sense of. Firstly, I don't have a valid license or even a trial license - but the program seems to run anyway. Can the errors be related to that?

    The code I'm using is very simple:


    using System;
    using Aspose.Words;

    class Hello {

    static void Main() {

    Console.WriteLine("Loading.");
    Document doc = new Document(@"buggy3.doc");

    Console.WriteLine("Saving HTML.");
    doc.Save(@"buggy3.html", SaveFormat.Html);

    }

    }



    And the error messagefrom Mono is:


    Unhandled Exception: Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. ---> System.ArgumentException: Comparer threw an exception.
    at System.Collections.ArrayList.BinarySearch (System.Object value) [0x00000]
    at ?.?.? (Int32 ?) [0x00000]
    at ?.?.? (Int32 ?) [0x00000]
    at ?.?.? () [0x00000]
    at ?.?.? () [0x00000]
    at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000]
    --- End of inner exception stack trace ---
    at Aspose.Words.Document.? (System.Exception ?) [0x00000]
    at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000]
    at Aspose.Words.Document..ctor (System.String fileName, LoadFormat loadFormat, System.String password) [0x00000]
    at Aspose.Words.Document..ctor (System.String fileName) [0x00000]
    at Hello.Main () [0x00000]



    Thanks,

    Mark.


     
  •  10-21-2008, 10:27 AM 148799 in reply to 148790

    Re: Aspose.Words .NET with Mono corruption message?

    Hi

     

    Thanks for your inquiry. May be there is something wrong with your document. Could you please attach this document for testing?

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  10-21-2008, 11:15 AM 148811 in reply to 148799

    Re: Aspose.Words .NET with Mono corruption message?

    Attachment: Present (inaccessible)
    Hi,

    The same document worked fine with Aspose.Words for Java. Here it is.

    Regards,
    Mark
     
  •  10-21-2008, 11:31 AM 148816 in reply to 148811

    Re: Aspose.Words .NET with Mono corruption message?

    Hi

     

    Thank you for additional information. Your document works fine on my side. Could you please provide me more information about your environment? (OS, version of Mono, version of Aspose.Words). I will try to reproduce the issue and provide you more information.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  10-21-2008, 12:26 PM 148820 in reply to 148816

    Re: Aspose.Words .NET with Mono corruption message?

    Hi, Thanks. I am running on Mac OS X 10.5, using the Mono Framework 2.0.4, compiling with the command line compiler gmcs. I am using the latest official release of Aspose.Words. Regards, Mark.
     
  •  10-21-2008, 12:28 PM 148821 in reply to 148820

    Re: Aspose.Words .NET with Mono corruption message?

    Compiling using:
    gmcs test.cs /r:System.Windows.Forms.dll /r:Aspose.Words.dll
    
    Running as:
    mono test.exe
    
     
  •  10-21-2008, 12:33 PM 148822 in reply to 148821

    Re: Aspose.Words .NET with Mono corruption message?

    I have also just tested on a Gentoo distribution of Linux, running Mono 1.9.1, and encountered another error message, if this helps at all. Am I not installing Mono correctly?
    Loading.
    
    Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for ?.? ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.KnownColors ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
      at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
      at System.Drawing.GDIPlus..cctor () [0x00000] --- End of inner exception stack trace ---
    
      at System.Drawing.KnownColors..cctor () [0x00000] --- End of inner exception stack trace ---
    
      at System.Drawing.Color.get_White () [0x00000] 
      at ?.?..cctor () [0x00000] --- End of inner exception stack trace ---
    
      at Aspose.Words.Drawing.ShapeBase..ctor (Aspose.Words.Document doc) [0x00000] 
      at Aspose.Words.Drawing.Shape..ctor (Aspose.Words.Document doc) [0x00000] 
      at ?.?.? (?.? ?) [0x00000] 
      at ?.?.? (?.? ?) [0x00000] 
      at ?.?.? (System.IO.BinaryReader ?, Int32 ?, Int32 ?, System.IO.BinaryReader ?) [0x00000] 
      at ?.?.? () [0x00000] 
      at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000] 
      at Aspose.Words.Document..ctor (System.String fileName, LoadFormat loadFormat, System.String password) [0x00000] 
      at Aspose.Words.Document..ctor (System.String fileName) [0x00000] 
      at Hello.Main () [0x00000] 
    
     
  •  10-21-2008, 1:03 PM 148825 in reply to 148822

    Re: Aspose.Words .NET with Mono corruption message?

    Hi, Sorry to keep throwing error messages at you! :) The previous Linux error message can be ignored, I hadn't installed Mono correctly and libgdiplus was missing. However, upon fixing that I get the same error message as I do on Mac OS X:
    Unhandled Exception: Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. ---> System.ArgumentException: Comparer threw an exception.
      at System.Collections.ArrayList.BinarySearch (System.Object value) [0x00000] 
      at ?.?.? (Int32 ?) [0x00000] 
      at ?.?.? (Int32 ?) [0x00000] 
      at ?.?.? () [0x00000] 
      at ?.?.? () [0x00000] 
      at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000] --- End of inner exception stack trace ---
    
      at Aspose.Words.Document.? (System.Exception ?) [0x00000] 
      at Aspose.Words.Document.? (System.IO.Stream ?, LoadFormat ?, System.String ?) [0x00000] 
      at Aspose.Words.Document..ctor (System.String fileName, LoadFormat loadFormat, System.String password) [0x00000] 
      at Aspose.Words.Document..ctor (System.String fileName) [0x00000] 
      at Hello.Main () [0x00000] 
    
    /Mark
     
  •  10-21-2008, 1:11 PM 148828 in reply to 148825

    Re: Aspose.Words .NET with Mono corruption message?

    Hi, Found a solution to the problem: use mcs and the net1.1 libraries instead of gmcs and net2.0. Works perfectly! Are there any disadvantages to using the 1.1 libraries over the 2.0 ones? Regards, Mark.
     
  •  10-21-2008, 2:41 PM 148844 in reply to 148828

    Re: Aspose.Words .NET with Mono corruption message?

    Hi

     

    It is nice that you already found solution. No there is no functionality differences between 1.1 and 2.0 versions of library.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  11-12-2008, 4:55 PM 152278 in reply to 148844

    Re: Aspose.Words .NET with Mono corruption message?

    I got the same problem. Using mono net-1.1 is no solution for me as my visitor depends on net-2.0.
    Is there any new information on that topic?
     
  •  11-13-2008, 6:42 AM 152410 in reply to 152278

    Re: Aspose.Words .NET with Mono corruption message?

    Hi

     

    Thanks for your inquiry. Which versions of mono and Aspose.Words are you using? Please provide me more information about your environment. I will try to reproduce the problem and provide you more information.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
  •  11-14-2008, 1:35 PM 152685 in reply to 152410

    Re: Aspose.Words .NET with Mono corruption message?

    I can reproduce that problem on a linux server machine:

    Linux host 2.6.16-xen #2 SMP Sun Jul 9 15:43:58 CEST 2006 i686 GNU/Linux

    Mono JIT compiler version 1.9.1 (tarball)
    Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
    TLS: __thread
    GC: Included Boehm (with typed GC)
    SIGSEGV: altstack
    Notifications: epoll
    Architecture: x86
    Disabled: none

    And on my MacBook:
    Darwin Ernst 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep 3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386

    Mono JIT compiler version 2.0.1 (tarball)
    Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com
    TLS: normal
    GC: Included Boehm (with typed GC)
    SIGSEGV: normal
    Notification: Thread + polling
    Architecture: x86
    Disabled: none

    Exception:

    Unhandled Exception: Aspose.Words.FileCorruptedException: The document appears to be corrupted and cannot be loaded. ---> System.ArgumentException: Comparer threw an exception.
    at System.Collections.ArrayList.BinarySearch (System.Object value) [0x00000]
    at ᧦.᧍.᳥ (Int32 ᦯) [0x00000]
    at ᦡ.ᦠ.᦮ (Int32 ᦯) [0x00000]
    at ᦡ.ⅿ.ஷ () [0x00000]
    at ᦡ.ᦠ.ࠆ () [0x00000]
    at Aspose.Words.Document.ࠛ (System.IO.Stream َ, LoadFormat ೡ, System.String ح) [0x00000] --- End of inner exception stack trace ---

    at Aspose.Words.Document.ೢ (System.Exception ೣ) [0x00000]
    at Aspose.Words.Document.ࠛ (System.IO.Stream َ, LoadFormat ೡ, System.String ح) [0x00000]
    at Aspose.Words.Document..ctor (System.String fileName, LoadFormat loadFormat, System.String password) [0x00000]
    at Aspose.Words.Document..ctor (System.String fileName) [0x00000]

     
  •  11-14-2008, 1:58 PM 152690 in reply to 152685

    Re: Aspose.Words .NET with Mono corruption message?

    (And I use the latest version of Aspose.Words)
     
  •  11-14-2008, 3:33 PM 152705 in reply to 152690

    Re: Aspose.Words .NET with Mono corruption message?

    Hi

     

    Thank you for more information. We will investigate the problem and provide you more information.

     

    Best regards.


    Alexey Noskov
    Developer/Technical Support
    Aspose Auckland Team
     
Page 1 of 2 (24 items)   1 2 Next >
View as RSS news feed in XML