The remote name could not be resolved: 'lh5.googleusercontent.com'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.WebException: The remote name could not be resolved: 'lh5.googleusercontent.com'
Source Error:
Line 62: PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
Line 63: pdfDoc.Open();
Line 64: htmlparser.Parse(sr);
Line 65: pdfDoc.Close();
Line 66: Response.Write(pdfDoc);
Source File: c:\Users\rajesh\Documents\Visual Studio 2010\WebSites\PDFGeneration\Default.aspx.cs Line: 64
Stack Trace:
[WebException: The remote name could not be resolved: 'lh5.googleusercontent.com']
System.Net.HttpWebRequest.GetResponse() +890
iTextSharp.text.Image.GetInstance(Uri url) +54
iTextSharp.text.html.simpleparser.HTMLWorker.StartElement(String tag, Hashtable h) +2001
iTextSharp.text.xml.simpleparser.SimpleXMLParser.Go(TextReader reader) +1364
iTextSharp.text.xml.simpleparser.SimpleXMLParser.Parse(ISimpleXMLDocHandler doc, ISimpleXMLDocHandlerComment comment, TextReader r, Boolean html) +48
iTextSharp.text.html.simpleparser.HTMLWorker.Parse(TextReader reader) +10
_Default.btnPDF_Click(Object sender, EventArgs e) in c:\Users\rajesh\Documents\Visual Studio 2010\WebSites\PDFGeneration\Default.aspx.cs:64
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +107
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +111
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3436