473,412 Members | 2,005 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

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

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
5 3433
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
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
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
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
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

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

Similar topics

0
by: sirumalla | last post by:
These posting i have seen in so many sites but none of them solved the problem. Iam trying to fix this problem past 2 days but iam not able to do so. I doubt whether iam missing any peice of code ...
0
by: Jason | last post by:
I am trying to retrieve XML data from an ASP page. If I type the URL to the asp page into my browser (i.e. http://domain.com/getxml.asp) , I will get the xml displayed in IE. But, if I try to...
1
by: Leonard Danao | last post by:
I get this error when i run my code below "An unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The remote server returned an error: (401)...
3
by: Paul | last post by:
Hi, This is driving me crazy. I have a solution that works great on one site, but doesn't on another site. Same exact code on two different windows environments. Here is the code: Private...
2
by: obeOnline | last post by:
I'm getting the following error... System.Net.HttpWebRequest.CheckFinalStatus() +676 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) +139...
0
by: Kris Mattheus | last post by:
A little background: I've been using web services successfully for a while now. My web server is a Windows CE 4.2 device and my client is a windows C# application created with Visual Studio 2003....
0
by: =?Utf-8?B?R2VvcmdlIFNodWk=?= | last post by:
I have a folder structure such like this. A ---A1 -----a1.aspx ---A2 A1 and A2 are the subfolder of A. And under the A1 folder, it contains one aspx file named a1.aspx. I set the IIS virtual...
2
by: vbsramesh | last post by:
Hi, i am ramesh working on MSPS 2007.i have created a webapplication(framework 2.0) with windows authentication. i am consuming MSPS web services provided by microsoft with windows authentication....
0
by: nidhisahu | last post by:
Hello All, i am open this URL( http://id.skootit.com/WorkspaceService/ListInvitations?actor=http://goku.id.skootit.com/) directly in browser with enter credential then its open and show...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.