Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
WebProxy class in Portable Class Library
giang giang
10y
1.9k
1
Reply
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?)
};
How to slove this ?
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
make an application
C# coding for Cybercafe management system