ANTS Profiler
Latest version: 4.3
Knowledge Base
IIS web application always loads default website
Category: Troubleshooting & error messages
Date: 06 Jan 2011
Product: ANTS Profiler
Platforms: Web application hosted in IIS 6,7
When profiling a web application on an installation of IIS that hosts more than one website, ANTS Profiler may consistently load the default website regardless of the website chosen for performance or memory profiling. This may happen if multiple websites are configured to use the same TCP port, but different host headers.
The problem is caused by a bug in ANTS Profiler that only compares the host component of the website's bindings in lower case. Therefore, if you have two websites, and the second answers to the same IP address and ports as the default, but only when the host header "Site2" is used, for instance, ANTS Profiler will load the default website. You can check this by changing the path component of the URL in the web browser to one that is known to exist on the default website.
To solve the problem, launch the IIS Manager to edit the bindings for the second website. In the section for "host header", change the entry to one that is all lower-case.
ANTS Profiler starts an IIS worker process outside of IIS on its' own TCP port (8013, by default). Part of the process of loading the web application into ANTS Profiler's worker process is to query the IIS metabase for configuration information. This configuration depends on resolving the URL typed into ANTS Profiler's URL textbox to the binding information in the IIS metabase (or applicationHost.config, in the case of IIS 7). If this process fails, then ANTS Profiler may load the default website into the profiling session, resulting in an HTTP 403 or 404 error in the web browser when an identical web application does not exist on the default website.
Alternatively,
1) Apply only single binding to site. That means: create site and create one binding to that site. As only the binding is acceptable by IIS, the profiler works fine as well.
2) You can apply multiple bindings to the same site, but they have to be recognized on something other than only host names (e.g. IP address).
For example
Binding 1:
"IP address: All Unassigned ", "Port: 80" and "Host Name:
myhost1.company.com"
Binding 2:
"IP address: All Unassigned ", "Port: 80" and "Host Name:
myhost2.company.com"
Binding 3:
"IP address: All Unassigned ", "Port: 80" and "Host Name:
myhost3.company.com"
This configuration is acceptable for IIS and you can browse the pages with IE browser, but it is not acceptable by the ANTS Performance Profiler and as a raises the error "Could not determine IIS site..."
You can change it to this one
Binding 1:
"IP address: 192.96.123.11 ", "Port: 80" and "Host Name:
myhost1.company.com"
Binding 2:
"IP address: 192.96.123.12 ", "Port: 80" and "Host Name:
myhost2.company.com"
Binding 3:
"IP address: 192.96.123.13 ", "Port: 80" and "Host Name:
myhost3.company.com"
(You have to manually configure the addresses that are normally resolved by DNS).
Document ID: KB200801000221 Keywords: ANTS,Profiler,IIS,binding,Ambiguous_site_selection
Was this article helpful?
ANTS Profiler
- Enabling logs to track the profiling session
- Changing the interprocess communications ports in version 4
- Double hit counts occurring on one line
- System.EntryPointNotFoundException (Versions: 3,4 only)
- Version 3.0 Unhandled startup exception on Windows Vista
- Version 3 add-in grayed out on non-English Visual Studio 2005 and 2008
- Methods in (ASCX) web controls may not appear
- Failed to CoCreate Profiler error profiling a Windows service
- Multiple-core portable computers may show inflated times (version 3)
- No .NET methods were profiled on web application
- ANTS Profiler code instrumentation method
- Profiling a single assembly in version 3
- Filtering results by individual thread
- Add-in fails to load when using RunAs to start Visual Studio as another user
- Profiling unit tests using Nunit
- Can I profile Compact Framework applications?
- Profiling a SharePoint 2007 Web Part
- Profiling an assembly in the Global Assembly Cache (GAC)
- Additional hidden statistics in the results grid (version 3)
- Multiple floating ANT icons in Visual Studio (version 3)
- ANTS Profiler overhead adjustments
- Profiling IIS web applications that need to run under the SYSTEM account
- Profiling a web application hosted in IIS on a fixed TCP port
- Add-in 'Object Reference not set to an instance of an object' error
- Profiling client-side XBAP .NET applications
- ANTS Profiler prompts for location of source code which is not your own source code
- ANTS menu remains in Visual Studio after uninstall of ANTS Profiler
- Profiling a web application needing to run as the Network Service account
- Abnormal termination caused by .NET 2.0 critical finalizer threads
- Cannot start COM+ application via Remote Desktop
- Fast mode and memory profiling options unavailable
- Finding the overall time taken to execute a thread
- Running an IIS application pool as a named identity
- IIS web application always loads default website
- Profiling BizTalk applications
- Profiling Microsoft Office managed-code add-ins
- The system cannot find the file specified
- Error Stopping IISAdmin profiling IIS web application on Windows XP
- ANTS Memory Profiler total size of all objects does not match the memory footprint of an application
- Lines of source code do not align with hit count, time data in version 3
- Creating a global debugging symbols (PDB) directory
- Profiling a SharePoint site collection
- Using the add-in to profile solutions containing more than one project
- Methods may be missing on multi-core systems in version 3
- ASP .NET 1.x application recycling causing incomplete results
- Ambiguous site selection message when profiling IIS applications
- Application recycling causes incomplete results and other errors when profiling ASP .NET
- Profiling WCF services hosted in IIS
- Cannot profile IIS 6 web application on port lower than 1024
- (version 5) Support for profiling Silverlight applications
- Couldn't open metabase error when profiling ASP .NET hosted in IIS
- Failed to coCreate Profiler on ASP .NET web application
- HTTP error 404.17 profiling ASP .NET 1.1 on IIS 7
- Performance counters missing from results
- Isolating single ASP .NET pages in ANTS Profiler results
- Missing hits for lines in the source code view
- ANTS Profiler restarts IIS
- Showing the amount of time taken for a method in one particular thread
- Common ASP .NET memory issues
- Please specify a valid URL message profiling ASP .NET
- Times on individual lines do not add up to method time
- Manually installing the add-in
- Error starting services running as "Local Service"
- Explanation of "thread blocked" methods in ANTS Profiler
- Call graph percentages do not add up exactly
- Operation could destabilize the runtime error profiling ASP .NET
- IIS ceases to work after profiling web applications
- Access to the Temp directory is denied error profiling web applications
- Problems with ANTS Visual Studio integration
- Unable to coCreate Profiler error profiling any application
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
ANTS Profiler
- Getting help offline
- Finding memory leaks using ANTS Profiler
- Identifying root objects with ANTS Profiler
- Performance profiling with ANTS 4: tips for ANTS 3 users
- How to profile a desktop application that hosts the .NET runtime (ANTS Profiler 3)
- How to profile the performance of a single .NET assembly (ANTS Profiler 3)
- Profiling ASP.NET applications (ANTS Profiler 3)
- How to reduce the number of topics you see in the "All objects" panel (ANTS Profiler 3)
- ANTS Profiler release notes - version 4.xx
- Why can't ANTS Profiler find my source code? (ANTS Profiler 3)
all products
- Red Gate product acknowledgements
- Activating your products
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs

Using ANTS Performance Profiler