By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,364 Members | 1,272 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,364 IT Pros & Developers. It's quick & easy.

The remote server returned an error: (401) Unauthorized. PLEASE HELP

P: 74
Hi SOMEONE PLEASE HELP ME

I have a vb net program to call localhost http://localhost/hi.aspx,
my page work FINE when I browse it, but
when I call it through vb net program

it return error

The remote server returned an error: (401) Unauthorized.

please help

following are my code

ALSO can someone familiar with C# Net, convert it for me to C#>?


'// SEND TO URL
SURL = http://localhost/hi.aspx


HTTP_REQUEST = CType(WebRequest.Create(SURL), HttpWebRequest)
HTTP_REQUEST.KeepAlive = True
'FreeBound()
HTTP_RESPONSE = HTTP_REQUEST.GetResponse

HTTP_RESPONSE = Nothing
HTTP_REQUEST = Nothing
Mar 13 '07 #1
Share this Question
Share on Google+
5 Replies


P: 5
Hi,
What is the authentication mode?
and also check in the IIS Manager that the Internet guest account / asp new worker process has the rights to access it , as when the application runs the asp worker process access it.

Gud Luck.

Deepak Surana
Mar 13 '07 #2

P: 74
Please Help,

What mean bu authentitation mode?
where to check?

Can you provide me the step?
the problem still alive.


Hi,
What is the authentication mode?
and also check in the IIS Manager that the Internet guest account / asp new worker process has the rights to access it , as when the application runs the asp worker process access it.

Gud Luck.

Deepak Surana
Mar 14 '07 #3

P: 4
i think you have to create a proxy class object, set the proxy server ip and userid/password if required and assign it to the httpwebrequest class. hope it will work.

Mk
Mar 14 '07 #4

P: 74
On thank you...

by the way, where I can get the proxy server ip and userid/password?
get from my local pc? or need ask network specialist?


i think you have to create a proxy class object, set the proxy server ip and userid/password if required and assign it to the httpwebrequest class. hope it will work.

Mk
Mar 15 '07 #5

P: 74
Hi

Thank, it is work fine now,
well, I didnt use proxy

I just assign default logon to credentials...

I don't know WHY

Some computer Need,

Some No need

WHY?


i think you have to create a proxy class object, set the proxy server ip and userid/password if required and assign it to the httpwebrequest class. hope it will work.

Mk
Mar 15 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.