I'm building an Portable Class Library project. I seem not support WebProxy ( I'm preferenced the System.Net )
cookieContainer = new CookieContainer();
handler = new HttpClientHandler
{
CookieContainer = cookieContainer,
UseCookies = true,
UseDefaultCredentials = false,
UseProxy = true,
Proxy = new WebProxy("http://127.0.0.1:8888"), // It raised the error here: Error 1 The type or namespace name 'WebProxy' could not be found (are you missing a using directive or an assembly reference?)
};
handler = new HttpClientHandler
{
CookieContainer = cookieContainer,
UseCookies = true,
UseDefaultCredentials = false,
UseProxy = true,
Proxy = new WebProxy("http://127.0.0.1:8888"), // It raised the error here: Error 1 The type or namespace name 'WebProxy' could not be found (are you missing a using directive or an assembly reference?)
};
How to slove this ?
Biswa Pujarini MohapatraPosted Feb 24, 2014, 2:12 AM
Biswa Pujarini MohapatraPosted Feb 23, 2014, 1:47 PM
let me know if you still getting error