Code Creator and Proxy

solution84

Client
Регистрация
11.06.2013
Сообщения
7
Благодарностей
1
Баллы
0
Hello,

I have this code writen in CodeProject

instance.SetAuthorizationPolicy("ok", username, pass);
instance.SetProxy(proxy);

When I run application in CodeProject I get this message:
Access to requested resource disallowed by administrator or you need valid username/password to use this resource

When the same project run in ZennoPoster project work fine and proxy setup is ok.
Problem with proxy is only in CodeProject, how to resolve this?
 

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
instance.SetProxy("IP", 80, "http", "USER", "PASS");
 

solution84

Client
Регистрация
11.06.2013
Сообщения
7
Благодарностей
1
Баллы
0

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
What version are you using because if you replace the placeholders IP, USER and PASS with your info it works perfect for me. Leave the quotes and make sure that the port is what your proxy provider gives you. If you can get user authentication with your proxy provider then you don't need the user and pass and you can just do

instance.SetProxy("IP:PORT");
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)