I am generating a pdf and getting an exception thrown when saving:
No connection could be made because the target machine actively refused it 127.0.0.1:36390
This is working on my development machine. I moved it to a web server and am now getting this error. Not doing anything else but creating html string and generating pdf. Please advise.
Hi Brad,
I tried to test the scenario but unable to replicate the issue at my end. I would suggest you to please try using the latest version of Aspose.Pdf for .NET 6.5.0 and in case the problem is still not resolved, please create a sample application and share with us. This will help us to figure out the exact issue and reply back to you soon.
We are really sorry for this inconvenience.
Thanks & Regards,
I've moved to your latest version with the same problem.
No connection could be made because the target machine actively refused it 127.0.0.1:36390
Any other suggestions?
This is the code I am using:
Dim pdf As Aspose.Pdf.Generator.Pdf = New Aspose.Pdf.Generator.Pdf()
Dim section As Aspose.Pdf.Generator.Section = pdf.Sections.Add()
Dim text2 As Text = New Text(certstring)
text2.IsHtmlTagSupported = True
section.Paragraphs.Add(text2)
'Save the pdf document
Dim certpath As String = Util.GetSiteVariable("CertificatePath")
pdf.Save(Server.MapPath(certpath) & sid & "_" & Request.QueryString("oid") & ".pdf")
Hi Brad,
It seems a very strange issue as it does not occur on your development machine but occurs on your production machine. Please create a sample application with your complete code and share with us. Also, please share the details regarding your production environment i.e. OS, .NET Framework etc. with us. This will help us identify and rectify the issue soon.
Sorry for the inconvenience,