gzip' is not a supported encoding name htmlagilitypack
Hi

I am using following code for loading the content of a particular web url

 public string LoadWebContents(String url)
    {

        HtmlWeb htmlWeb = new HtmlWeb();

       HtmlDocument doc = htmlWeb.Load(url);

}

but some url creates following error 

"gzip' is not a supported encoding name htmlagilitypack"

what is the reason and how can i resolve it?


See All Responses Below...
Author
Message Rating
Posted on: 2013/10/08
There might be problems with the web page which might support an encoding which might not be defined by the .NET Framework. See the link below regarding the similar problems and how its fix..

http://stackoverflow.com/questions/5349844/htmlagilitypack-htmldocument-load-throws-exception-object-not-set-to-an-instanc

Tom
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

 
Related Threads

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts
Android