Bart

Software Engineer - Red Gate Software

An end to IIS profiling woes (we hope)—an early access build of ANTS Profiler 4.3 is now available

Published Monday, January 19, 2009 2:09 PM

Over the past few weeks we’ve been trying to sort out the IIS support in ANTS Profiler to make it more reliable, and to deal with some of the scenarios it didn’t handle, or didn’t handle well.

The result of all this work, mainly done by our new developer, Alex, has been incorporated into ANTS Profiler 4.3 which, at the moment, is only available as an early access build, but if you’ve run into a brick wall trying to profile an ASP.NET application, or a web service, running in IIS, I’d highly recommend you give it a whirl. You can get it from:

http://downloads.red-gate.com/ANTSProfiler/EAP/ANTS_Profiler_4.3.0.154.exe

You’ll quickly notice a few changes:

  • You no longer have to select your IIS or .NET framework versions; this is all done automatically, and the appropriate settings are displayed.
  • It’s now possible to specify an ASP.NET username and password for IIS 6 and 7; this wasn’t previously supported and could cause problems if you wanted to login to, e.g., SQL Server using as a particular user using integrated security.
  • If for any reason ANTS Profiler can’t decide which version of IIS you’re running, or can’t detect it, it will give you a hopefully helpful error message explaining why the problem occurred, and telling you what, if anything, you can do about it.

Obviously, being an early access build, all the usual disclaimers apply, including that it might be less stable or usable than the previously released version, and if it runs amok and strangles your cat I will, of course, deny all responsibility. I’ve no reason to assume that anything really bad will happen, although there are some fairly minor known issues:

  • The changes are currently only available in the performance profiler; when we release the new version of the memory profiler it will receive the upgraded IIS support (the first early access build should be available within weeks though, so you don’t have to wait that long if you’re really eager to get your hands on it).
  • Most of the help anchors in the setup dialog (green question marks) seem to have become dissociated from their content in this build; we’ll fix this in a later build, but it shouldn’t stop you using it.
  • You’ll probably still run into problems if you’re trying to profile a .NET 1.1 application running on IIS 7. We’re going to continue looking into this, although at the moment it falls into the category of sometimes it works, sometimes it doesn’t, and we’re not sure why. It used to work because we’d force it to .NET 2.0, but this caused problems for some people, so now we don’t do that but it doesn’t yet work reliably. If you can I’d suggest manually configuring your application to run under .NET 2.0.
  • In IIS 6 and 7, if you want to specify a username and password, you’ll need to make sure that user is an administrator. This happens because normally IIS would open up a port and so on, however in order to avoid having to restart IIS we just kick off another worker process which needs to open its own port; if the user we run this process as does not have sufficient privileges opening this port will fail, and so you won’t be able to profile your application.

So, maybe calling this an end to IIS profiling woes is a little bit premature, but you should find profiling web applications to be a much better experience.

by Bart Read
Filed Under:

Comments

 

Jason Haley said:

January 19, 2009 9:03 AM
 

DotNetShoutout said:

Thank you for submitting this cool story - Trackback from DotNetShoutout
January 23, 2009 6:48 PM
 

Bart Read said:

Just updated link with new build (154).
January 26, 2009 7:56 AM
You need to sign in to comment on this blog

About Bart Read

Bart has done many things since he started work at Red Gate Software Ltd in August 2004, but nowadays he's (mainly) the product manager for the .NET Developer Tools. He still feels like this is a bit like admitting you were cheering for the Empire whilst watching Star Wars, but for now he's along for the ride. In a previous incarnation he was a project manager leading the .NET Reflector Pro, ANTS Memory Profiler 5, ANTS Performance Profiler 4 & 5, and SQL Prompt 3.0 - 3.6 projects. He still occasionally writes some code and, in the past, has touched the code for most of the Red Gate SQL developer tools... some of them still haven't recovered from the shock. He was born and grew up in Dorset, was educated in Nottingham and London, and likes music and real ale. His photo is extremely misleading.



















<January 2009>
SuMoTuWeThFrSa
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
Minesweeper in T-SQL
 Whatever happened to the idea that programming in TSQL can be fun? A Simple-Talk reader contributes an... Read more...

SQL Source Control: The Development Story, Part II
 When creating SQL Source Control, the team had to make decisions as to which source control systems the... Read more...

Raw Materials: Healthy Caution or Something Else?
 Derek slips a cog. Read more...

The DIS-Information Principle, Part II
 Database design simply involves populating a schema with tables that model sets of entities and... Read more...

OCS Disaster Recovery, Part 2
 There are several possible disasters which might happen to your Office Communications Server... Read more...