"Unable to connect to the remote server" on localhost

Sep 3, 2010 at 5:23 PM
Edited Sep 3, 2010 at 5:29 PM

this bundle seems working for desktop applications.
doesnt working for asp.net

HtmlWeb hw = new HtmlWeb();
HtmlDocument doc = hw.Load("http://www.google.com");

2nd line always throws error "Unable to connect to the remote server"(debug mode) on asp.net @localhost.
didnt try if working on normal website for now.

it seems not webclient class nor htmlagility pack can retrieve responses of an external webpage if testing at asp.net page on localhost.