Welcome Guest Search | Active Topics | Sign In | Register

This session is no longer valid Error. Options
Jamsheer
Posted: Monday, December 10, 2012 2:36:18 AM
Rank: Newbie
Groups: Member

Joined: 12/10/2012
Posts: 1
Click to view the error .It shows an error. This error can be solved by deleting .ashx file from the project. How can we solve the error when there is no .ashx file ?

Runtime.AddLicense("license key");

PdfDocument doc = new PdfDocument();

HtmlToPdf.ConvertUrl(Request.Url.ToString() + "?load=1", doc);
HttpResponse response = HttpContext.Current.Response;
response.Clear();
response.ClearHeaders();
response.ContentType = "application/pdf";

doc.Save(response.OutputStream);
eo_support
Posted: Monday, December 10, 2012 9:58:55 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Try to use ASPXToPDF for this task. It's not a good idea to call yourself from the page because you may run into ASP.NET session lock issue. Please let us know if ASPXToPDF still does not work for you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.