IIS Log Files logs 401 HTTP Codes

From: Jagjeet Chahal (jagjeet.chahal_at_in.bosch.com)
Date: 10/21/05


Date: Fri, 21 Oct 2005 18:41:34 +0530

Hello All,

I have a small ASP.Net Web application with a single aspx page.

Following code is written in page load of the Webform1.aspx

private void Page_Load(object sender, System.EventArgs e)

{

// Put user code to initialize the page here

Response.Write("Logged user is " + User.Identity.Name.ToString()+ "<br>" ) ;

}

Application is using Windows Integrated Authentication

When webform1.aspx is viewed in IE Browser it works fine but if we look at
the IIS Log file a 401 http code is logged.

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2005-10-21 11:08:46
#Fields: time c-ip cs-method cs-uri-stem sc-status

11:26:45 127.0.0.1 GET /test401/webform1.aspx 401
11:26:45 127.0.0.1 GET /test401/webform1.aspx 200

Can anybody has a clue regarding this??

If this is not the correct forum please redirect me to the correct one.

Thanks and Regards

Jagjeet Chahal



Relevant Pages

  • Re: Timer
    ... In this instance Form1 is the main form for you application. ... private void timer1_Tick(object sender, System.EventArgs e) ... But, instead, you could load Form1, but have it's Visible property set to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: "generic error ocurred in GDI+"
    ... I load the image thus: ... The handle of PrintPage event of the PrintDocument object is this: ... private void pd_PrintPage(object sender, PrintPageEventArgs ev) ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: radiobuttonlist text color
    ... private void Page_Load(object sender, System.EventArgs e) ... I need to change the radiobuttonlist text color at page load. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Hide windows form onLoad
    ... When i load up my application I want to Hide the start form and open up a ... private void Form1_Load(object sender, System.EventArgs e) ... but its not hiding the first form, ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Sudden ntdll.dll error
    ... I am not sure I am in the correct forum, ... having a problem with an application starting to load and then a message ... then hangs and then gives me the error message. ... working just fine for the past year or so and about a month ago, BOOM, this ...
    (microsoft.public.windowsxp.perform_maintain)