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

Free Support Forum - aspose.com

System.NullReferenceException when converting doc to pdf

Hello,
when converting a Word document using Aspose.Words 14.5 (the latest) I get the following stack trace:

L'exception System.NullReferenceException n'a pas été gérée
Message=La référence d'objet n'est pas définie à une instance d'un objet.
Source=Aspose.Words
StackTrace:
à . ()
à . ()
à . ()
à . ()
à . ( , Int32 , Boolean , Boolean )
à . ( )
à . ( )
à . (Boolean )
à . ( , Boolean )
à . ( )
à . ( )
à . (Boolean )
à . (Boolean )
à . ( )
à . ()
à . (Document , )
à Aspose.Words.Document.UpdatePageLayout()
à Aspose.Words.Document. (Boolean )
à Aspose.Words.Document. ()
à Aspose.Words.Document.get_PageCount()
à . ( , )
à . ( )
à Aspose.Words.Document. (Stream , String , SaveOptions )
à Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
à Aspose.Words.Document.Save(String fileName)
à ConsoleApplication3.Module1.Main() dans C:\Users\sullivan.perrin\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3\Module1.vb:ligne 9
à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()
InnerException:

My program :

Imports Aspose.Words

Module Module1

Sub Main()
Dim lic As New License()
lic.SetLicense("..\..\Aspose.Words.lic")
Dim doc As New Document("..\..\input.doc")
doc.Save("..\..\out.pdf")
End Sub

End Module

I'm attaching the document.
My license is a temporary license.
I use VB.NET 3.5.

Hi there,

Thanks for your inquiry.

I
have tested the scenario and have managed to reproduce the same issue
at my side. For the sake of correction, I have logged this problem in
our issue tracking system as WORDSNET-10252. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-10252) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.