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);