New Zealand's new Copyright Law presumes 'Guilt Upon Accusation' and will Cut Off Internet Connections without a trial. CreativeFreedom.org.nz is against this unjust law - help us


A Space for All Things .NET Related


Web Application Stress Tool - 401 Unauthorized Errors

By James Hippolite, in , posted: 3-Feb-2009 15:21

Problem I'm using the Microsoft Web Application Stress Tool.  It's meant to hit a web page repeatedly for testing purposes.  However, when I check the results, they were all "401 - Unauthorised".
Explanation

It turns out that if anonymous access is disabled on the web site you are accessing due to the way IIS evaluates authentication, this behavior is expected. In Operations Manager, the default evaluation for a Web Application is to generate a Critical Alert if an HTTP return code of 400 or anything above comes back. In IIS, even if anonymous authentication is disabled for the site, it is still evaluated and will always return a 401. The aggregated results (The outcome) will succeed but the 401 return code will cause the test to fail...

Solution

The simplest fix (for development and testing purposes) is to enable anonymous access to the site.



Other related posts:
Geek Post Monthly Newsletter Volume 2 Issue 6
Exam 70-300 Objective 3
COALESCE T-SQL Function








Comment by sam, on 10-Oct-2009 00:07

thanks a lot. just in time. I had the same problem. have used to find great blogs with useful pieces of information by http://torrents.rapid4me.com search engine, but always search for smth more. really glad to find good ones. but this time was not so lucky to find anwers by myself. would highly appreciate any info on the topic


Comment by sam, on 10-Oct-2009 00:12

thanks a lot. just in time. I had the same problem. have used to find great blogs with useful pieces of information by http://torrents.rapid4me.com search engine, but always search for smth more. really glad to find good ones. but this time was not so lucky to find anwers by myself. would highly appreciate any info on the topic


Add a comment

Please note: comments that are inappropriate or promotional in nature will be deleted. E-mail addresses are not displayed, but you must enter a valid e-mail address to confirm your comments.

Are you a registered Geekzone user? Login to have the fields below automatically filled in for you and to enable links in comments. If you have (or qualify to have) a Geekzone Blog then your comment will be automatically confirmed and shown in this blog post.

Your name:

Your e-mail:

Your webpage:

JamesHip's profile

James Hippolite
Wellington
New Zealand


Welcome to my technical blog. 

Here, I attempt to distill the Microsoft Certified Professional Developer knowledge I have accumulated since first qualifying MCP in 1996.  This blog started on 13 September 2007 as an off-shoot from my mixed up personal blog.  But it took a shot in the arm from Scott Hanselman's talk at TechEd New Zealand 08 "32 Ways To Make Your Blog Suck Less".