Re: Error 401: Unauthorized
From: MrMike (MrMike_at_discussions.microsoft.com)
Date: 01/19/05
- Next message: sq1492_at_mail.ru: "Any *TOP* software developed on .NET (like Office, DB engine etc.)"
- Previous message: Norman Yuan: "Re: [newbie] Why is .Net so big? Why no linker?"
- In reply to: Lance Wynn: "Re: Error 401: Unauthorized"
- Next in thread: Lance Wynn: "Re: Error 401: Unauthorized"
- Reply: Lance Wynn: "Re: Error 401: Unauthorized"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 19 Jan 2005 06:41:06 -0800
Yes, the application requires Windows authentication. I have full control of
the application, and am able to perform all other functions within the
application. How would I go about correcting this specific problem and
specifying the proper credentials during this process? Thanks.
"Lance Wynn" wrote:
> Is the website you are trying to access using authentication? If so, then
> the code you have there will give such an error.
>
>
> "MrMike" <MrMike@discussions.microsoft.com> wrote in message
> news:A8F1DA09-9AA9-4ADE-8056-461008276342@microsoft.com...
> The following snippet of code is part of a larger module, and the code shown
> here is giving me an error. The error is "The remote server returned an
> error: (401) Unauthorized." The error occurs on the line 'objResponse =
> objRequest.GetResponse()'
> ........................................................................................
> Private Function readHtmlPage(ByVal url As String) As String
> Dim result As String
> Dim objResponse As WebResponse
> Dim objRequest As WebRequest = System.Net.HttpWebRequest.Create(url)
> objResponse = objRequest.GetResponse()
> ........................................................................................
> Could someone please help me understand why this error is appearing. If
> anymore information or clarification is needed, please let me know. Thanks.
>
>
>
- Next message: sq1492_at_mail.ru: "Any *TOP* software developed on .NET (like Office, DB engine etc.)"
- Previous message: Norman Yuan: "Re: [newbie] Why is .Net so big? Why no linker?"
- In reply to: Lance Wynn: "Re: Error 401: Unauthorized"
- Next in thread: Lance Wynn: "Re: Error 401: Unauthorized"
- Reply: Lance Wynn: "Re: Error 401: Unauthorized"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|