Latest Aspose for .Net dlls upgrade

Hi,

I’ve just tried to upgrade our product to the latest Aspose dlls for .Net and faced the following issue. Upon running unit tests, a .dwg file was tried to convert but failed with an error saying that Aspose.CAD.dll (version 17.12.0.0) could not load Aspose.Pdf.dll version 17.6.1.0, whereas the latest Aspose.Pdf.dll from the same Aspose.Total package has version of 18.1.0.0.

Exception details:

Message: Image export failed;
Could not load file or assembly ‘Aspose.Pdf, Version=17.6.1.0, Culture=neutral, PublicKeyToken=716fcc553a201e56’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Stack Trace:
at Aspose.CAD.Image.jd3e6ze6d4bq8slwvmklfafdjn7dzqla ​ (Stream , ImageOptionsBase , Rectangle )
at Aspose.CAD.FileFormats.Cad.CadImage.jd3e6ze6d4bq8slwvmklfafdjn7dzqla ​ (Stream , ImageOptionsBase , Rectangle )
at .(Object )
at .(MethodBase , Boolean )
at . ( )
at . ()
at .()
at .(Object )
at .()
at .(Object , UInt32 )
at .()
at .()
at .()
at .(Object )
at .()
at .(Object , UInt32 )
at .()
at .(Object[] , Type[] , Type[] , Object[] )
at Aspose.CAD.Image.Save(Stream stream, ImageOptionsBase optionsBase, Rectangle boundsRectangle)
at Aspose.CAD.Image.Save(Stream stream, ImageOptionsBase optionsBase)

@WorkZone,

I have observed your comments. Can you please share source files and sample code so that we may further investigate to help you out. Also please share environment details that help us to investigate issue in details.

Hi, Ahmad,

just take the latest Aspose.Total package with Aspose.CAD v.17.12.0.0 and Aspose.PDF v. 18.1.0.0. Make sure that the mentioned Aspose.PDF.dll is the only one available on your environment and try to convert the attached dwg file using the Aspose.CAD.dwgtest.zip (401.6 KB)

our PdfOptions are as follows:

        var sizeA4 = Aspose.Pdf.PageSize.A4;
		sizeA4.IsLandscape = true;

		var pdfOptions = new PdfOptions
		{
			VectorRasterizationOptions = new CadRasterizationOptions
			{
				BackgroundColor = image.BackgroundColor,
				PageWidth = sizeA4.Width,
				PageHeight = sizeA4.Height,
				AutomaticLayoutsScaling = true,
				DrawType = CadDrawTypeMode.UseObjectColor,
				CenterDrawing = true
			}
		};

@WorkZone,

I have worked with file shared by you using Aspose.CAD for .NET 17.12 and have been able to observe the issue. We have added an issue with ID CADNET-512 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.

The issues you have found earlier (filed as CADNET-512) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by mudassir.fayyaz

The issues you have found earlier (filed as ) have been fixed in this update.