We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

MSG fails to convert to XPS

Hi

We are testing Aspose for converting documents to XPS. we are getting random failures when converting MSG files to XPS.

Any ideas what might be causing this?

Log details below.

2013-05-08 10:33:17.12 Error: <?xml:namespace prefix = "o" ns = "urn:schemas-microsoft-com:office:office" />

Inner Exception:

2013-05-08 10:33:17.12 Error:

--------------------------------------------------------------------------------------

Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)

at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)

at System.Convert.FromBase64String(String s)

at x9b5b1a17490bd5f3.x0cd0eeb5ca95cea9.x0a762b8688d94527(String x66fab2e81382593c, String x3f738a805dd5808c, ResourceType x21cbe6ff65dc3fc2)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xd73b0246e62da7ff(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.x4b9eb3fda3482750(x9d6b37cac59aa2e2 xda5bf54deb817e37, Boolean xa59013d234619c58)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.x501416f35422f0c6(x9d6b37cac59aa2e2 xda5bf54deb817e37, Boolean xa59013d234619c58)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x4e7201a131ebc6f0.xf018334243635fc2.xddc8f9d0b6206645()

at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

--------------------------------------------------------------------------------------

2013-05-08 10:33:17.13 Warning: Import failed.

2013-05-08 10:33:17.13 Warning: BctBinderFunctions - Unable to import: <08/05/2013>

2013-05-08 10:33:18.16 Error:

--------------------------------------------------------------------------------------

The document appears to be corrupted and cannot be loaded. at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

at Gdoc.PlatformSDK.ImportDocumentTransform.Aspose.TransformViaAspose.TransformViaEmail(String inputFile, String outputFile)

--------------------------------------------------------------------------------------

2013-05-08 10:33:18.16 Error:

Inner Exception:

2013-05-08 10:33:18.16 Error:

--------------------------------------------------------------------------------------

Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)

at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)

at System.Convert.FromBase64String(String s)

at x9b5b1a17490bd5f3.x0cd0eeb5ca95cea9.x0a762b8688d94527(String x66fab2e81382593c, String x3f738a805dd5808c, ResourceType x21cbe6ff65dc3fc2)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xd73b0246e62da7ff(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.x4b9eb3fda3482750(x9d6b37cac59aa2e2 xda5bf54deb817e37, Boolean xa59013d234619c58)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.x501416f35422f0c6(x9d6b37cac59aa2e2 xda5bf54deb817e37, Boolean xa59013d234619c58)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x4e7201a131ebc6f0.xf018334243635fc2.xddc8f9d0b6206645()

at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

--------------------------------------------------------------------------------------

2013-05-08 10:33:18.18 Warning: Import failed.

2013-05-08 10:33:18.18 Warning: BctBinderFunctions - Unable to import: <08/05/2013>

2013-05-08 10:33:19.49 Error:

--------------------------------------------------------------------------------------

The document appears to be corrupted and cannot be loaded. at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

at Gdoc.PlatformSDK.ImportDocumentTransform.Aspose.TransformViaAspose.TransformViaEmail(String inputFile, String outputFile)

--------------------------------------------------------------------------------------

2013-05-08 10:33:19.50 Error:

Inner Exception:

2013-05-08 10:33:19.50 Error:

--------------------------------------------------------------------------------------

Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength)

at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength)

at System.Convert.FromBase64String(String s)

at x9b5b1a17490bd5f3.x0cd0eeb5ca95cea9.x0a762b8688d94527(String x66fab2e81382593c, String x3f738a805dd5808c, ResourceType x21cbe6ff65dc3fc2)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xd73b0246e62da7ff(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.x4b9eb3fda3482750(x9d6b37cac59aa2e2 xda5bf54deb817e37, Boolean xa59013d234619c58)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.x501416f35422f0c6(x9d6b37cac59aa2e2 xda5bf54deb817e37, Boolean xa59013d234619c58)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x9b5b1a17490bd5f3.xc5f6f2ca0aafd220.xca9ad4a20a9617e7(x9d6b37cac59aa2e2 xda5bf54deb817e37)

at x4e7201a131ebc6f0.xf018334243635fc2.xddc8f9d0b6206645()

at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)

--------------------------------------------------------------------------------------

2013-05-08 10:33:19.50 Warning: Import failed.

2013-05-08 10:33:19.50 Warning: BctBinderFunctions - Unable to import: <08/05/2013>

Hi James,

We are sorry for the inconvenience caused.

Could you please post us some sample MSG files that we can use to reproduce this issue at our end? This might be some bug in the Aspose.Email API that we will have to investigate further. I would also request you to please try the latest version of Aspose.Email for .NET 3.0 at your end and see if it solves your issue? In any case, we’ll be looking forward to assist you further.