This is a migrated thread and some comments may be shown as answers.

Export PDF with images on HTTPS

5 Answers 146 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dep. Desenvolvimento
Top achievements
Rank 2
Dep. Desenvolvimento asked on 05 Apr 2011, 05:15 PM
I have a website running on HTTPS with no problems.
But when I export a grid to PDF gives me error on images with HTTPS links.


System.SystemException: Error while creating area : Encountered web exception while fetching image from file:///C:/inetpub/wwwroot/HTTPS/MySite/https://localhost/MySite/images/1000089.jpg: The given path's format is not supported.
at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area)
at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)


Best regards,
Joaquim Oliveira

5 Answers, 1 is accepted

Sort by
0
Dep. Desenvolvimento
Top achievements
Rank 2
answered on 05 Apr 2011, 05:27 PM
I reviewed the method "Layout" on class "Telerik.Web.Apoc.Fo.Flow.ExternalGraphic" and follow to the class "ApocImageFactory" where I found this line of code.
"if (currentContext ! = null && path.IndexOf (" http:// ") == -1)".

Is there any reason not to be referred to HTTPS?
It's possible to review this?

Best regards,
Joaquim Oliveira
0
Accepted
Daniel
Telerik team
answered on 08 Apr 2011, 01:36 PM
Hello Joaquim,

This bug will be addressed in the next official release of RadControls for ASP.NET AJAX.

Let me know if you need more information.

Best regards,
Daniel
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Dep. Desenvolvimento
Top achievements
Rank 2
answered on 14 Apr 2011, 06:14 PM
With ASP.NET AJAX - Q1 2011 SP1 it works fine.

Best regards,
Joaquim Oliveira
0
Jayesh Goyani
Top achievements
Rank 2
answered on 01 Sep 2012, 05:31 AM
Hello Telerik Team,

I am facing issue while exporting report to PDF on secure site (SSL). I am getting following error.

System.SystemException: Error while creating area : Encountered web exception while fetching image from https://localhost/MySite/Images/FileName.png: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
  at Telerik.Web.Apoc.ApocDriver.FireApocError(String message)
  at Telerik.Web.Apoc.Fo.Flow.ExternalGraphic.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableCell.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.TableRow.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.AbstractTableBody.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Table.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Block.Layout(Area area)
  at Telerik.Web.Apoc.Fo.Flow.Flow.Layout(Area area, Region region)
  at Telerik.Web.Apoc.Fo.Pagination.PageSequence.Format(AreaTree areaTree)
  at Telerik.Web.Apoc.StreamRenderer.Render(PageSequence pageSequence)
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.EndElement()
  at Telerik.Web.Apoc.Fo.FOTreeBuilder.Parse(XmlReader reader)

I see the reply from Joaquim Oliveira that with ASP.NET AJAX - Q1 2011 SP1 it working fine. I am using version of telerik DLL as show in screenshot.


But it's not working for me. Please help me on this.

Thanks,
Jayesh

0
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Sep 2012, 10:55 AM
Hello,

Resolved.

Assigned relative path ("~/") in-place of fixed path("http..").

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Dep. Desenvolvimento
Top achievements
Rank 2
Answers by
Dep. Desenvolvimento
Top achievements
Rank 2
Daniel
Telerik team
Jayesh Goyani
Top achievements
Rank 2
Share this question
or