Re: Error 401: Unauthorized

From: MrMike (MrMike_at_discussions.microsoft.com)
Date: 01/19/05


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.
>
>
>



Relevant Pages

  • Re: Error 401: Unauthorized
    ... the application requires Windows authentication. ... I have full control ... > Private Function readHtmlPage(ByVal url As String) As String ...
    (microsoft.public.dotnet.general)
  • Re: CreateEventProc error
    ... Private Sub BuildDisplayForm(strPath As String, ... Dim qdf As QueryDef, qdfControls As QueryDef ... Dim ctl As Control, ctlLabel As Control, ctlParent As Control ... Dim strFilter As String, strSuffix As String, strParentName As String, ...
    (microsoft.public.access.forms)
  • Re: unable to load WinSocket dll in Excel Visual Basic Editor
    ... in my "com controls" list but as soon as I try to add the winsock control I ... may or not need the alias portion of the library definiation. ... Public Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias ... (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, ...
    (microsoft.public.excel.programming)
  • Having trouble with multi-select list box in Access
    ... Const mstrcRange_Begin As String ... name of a control that represents the End part of a range ... On Error GoTo ErrHandler ...
    (microsoft.public.access.gettingstarted)
  • Re: All Menu Navigation
    ... i based the implementation on sample code from http://www.asp.net/CSSAdapters/Menu.aspx, which shows how to create decent HTML for a Menu control bound to a SiteMapDataSource. ... public void RenderBeginTag(HtmlTextWriter writer, string cssClass) ... static public void RemoveProblemTypes ...
    (microsoft.public.dotnet.framework.aspnet)

Quantcast