Free Support Forum - aspose.com

Multiple assemblies causes exception

We have a solution that uses Aspose.Words to create document templates for SharePoint. This solution uses the 9.4.0.0 version of the assembly and has been working fine for some time.

Recently we installed a 3rd party solution that uses the 10.6.0.0 version of Aspose.Words.

Now the method that saves the document template(Aspose.Words.Document.Save) throws an exception: "Invalid save format requested." (called with a MemoryStream and SaveFormat.Docx)

I have tried to set specific version in our solution (Visual Studio 2010, Specific version on the reference), but the error remains. I have seen a similar issue in the forum (http://www.aspose.com/community/forums/permalink/321986/321986/showthread.aspx), but this does not help with my problem, since both assemblies exist in the global assembly cache.

To make the issue even worse, I am unable to reproduce this error in a console application, but the fact remains: one dll in cache, OK, two dlls in cache, fail.

Hi Eskild,


Thanks for your inquiry.

I am sorry to inform you that you might not be able to use two parallel versions of Aspose.Words for .NET in a single application. However please note that the latest release version of Aspose.Words for .NET 11.8.0 contains all the features present in earlier versions. I would suggest you please unregister all older versions from GAC and only keep the latest version. You can download it from the following link:
http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx

Moreover, I would also like you please take a look at the following discussion here:
http://www.vbforums.com/showthread.php?541343-2.0-Multiple-Version-of-Same-Assembly-in-GAC

I hope, this will help.

Best Regards,