ANTS Performance Profiler - 7.0
Troubleshooting IIS profiling - ANTS Performance Profiler
When you click Start Profiling for an ASP.NET web application (IIS), profiling may not start, and a "Cannot start IIS" error may be displayed. This indicates one or more of the following:
- An early access build of the ANTS Performance Profiler continuous profiling tool prevents ANTS Performance Profiler from accessing IIS.
- The logged-in user has insufficient account permissions to run the web application.
- Internet Explorer is running in protected mode.
- IIS is unable to resolve the web application's URL.
- ANTS Performance Profiler encounters a conflict with another performance profiler installed on your computer.
This topic describes how to resolve each of these issues.
An early access build of the ANTS Performance Profiler continuous profiling tool prevents ANTS Performance Profiler from accessing IIS
The continuous profiling tool currently runs as a separate tool from the main ANTS Performance Profiler product. If you have installed an early access build of the ANTS Performance Profiler continuous profiler IIS module, other profilers - including the desktop ANTS Performance Profiler product - will be unable to profile applications running in IIS on this computer. To re-enable other profilers with IIS, uninstall the IIS Profiler Module:
- From your computer's Start menu, launch the Continuous Profiling Configuration Tool.
- Click Uninstall.
For more information on configuring continuous profiling, see Setting up continuous profiling.
The logged-in user has insufficient account permissions to run the web application
ANTS Performance Profiler starts the IIS application pool with permissions inherited from the currently logged-in user account, rather than using the IIS application settings.
- If possible, run ANTS Performance Profiler as an administrator.
- If you are unable to run ANTS Performance Profiler as an administrator, grant the logged-in user account permissions to access the IIS configuration system and write to the ASP.NET temporary files. For more information on how to do this, see Assign ASP.NET Permissions to the New Account (MSDN).
Manually specifying the ASP.NET account
The error may also occur when using "Manually specify ASP.NET account details". Check that the specified account is a valid user, has administrator privileges, and has read access to %ProgramFiles%\Red Gate\ANTS Performance Profiler 7\ProfilerCore.dll.
Internet Explorer is running in protected mode
If Protected Mode is turned on in Internet Explorer, when you click Start Profiling, a browser session may invisibly start and quickly terminate. If this occurs, Internet Explorer may launch with the message "Internet Explorer cannot display the webpage" or "Could not connect to the remote server", and no profiling results are displayed.
To prevent this error:
- If possible, turn off Protected Mode in Internet Explorer before starting a profiling session.
- If you need to use Protected Mode, add localhost to the list of trusted sites, and try to profile your application again. For instructions on adding a site to Internet Explorer's Trusted Sites list, see Security zones: adding or removing websites (Microsoft).
IIS cannot resolve the web application's URL
If the bindings in IIS have been changed from the default, ANTS Performance Profiler may be unable to resolve your site's hostname. If this problem occurs, the following error message is usually shown:
"Couldn't determine the IIS Site associated with URL 'http://< URL>:port'. Please check that the URL is serviced by the instance of IIS running on this machine."
In the ASP.NET web application (URL) field, enter localhost or the loopback IP address (127.0.0.1) and try to profile your application again:

ANTS Performance Profiler encounters a conflict with another performance profiler installed on your computer
IIS can fail to start if ANTS Performance Profiler encounters a conflict with another performance profiler. We recommend uninstalling other profilers while profiling with ANTS Performance Profiler.
If you are running ANTS Performance Profiler Version 5.2 and earlier:
If the error persists after uninstalling other profilers, you may need to remove environment variables left behind by an earlier profiling session:
- Close ANTS Performance Profiler and IIS.
- In regedit.exe, locate the following registry key:
If you are running IIS version 6.0 or earlier: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IISADMIN
If you are running IIS version 7.0 or later: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC
- Expand the key and modify the Environment subkey to delete the following values:
COR_ENABLE_PROFILING=1 and COR_PROFILER={a GUID}.
Note: if the Environment subkey does not exist, please contact Red Gate support (see below for more details).
- Close the Registry Editor, restart ANTS Performance Profiler, and try to profile your application again.
Contacting Red Gate support
If you are unable to resolve this problem using the information in this topic, please contact support, and supply as much information as you can in the Description box, including:
- the versions of IIS and ANTS Performance Profiler you are using
- your computer's operating system
- the steps you have already tried
- any error messages ANTS Performance Profiler has generated, including any in the log files. More information about locating log files for ANTS Performance Profiler can be found here.
Was this article helpful?
ANTS Performance Profiler
- Installation error 5100 when installing ANTS Performance Profiler and ANTS Memory Profiler
- Attach to process unavailable with some anti-virus software
- Memory leaks observed when profiling Windows Presentation Framework (WPF) applications
- Log files
- The manifest for the SQL server event source did not match the generated events. Some SQL events may report incorrect data. To fix this issue, consider recompiling etwcls.mof
- Setting file I/O and child process profiling in high DPI modes
- HTTP request timings in IIS
- Profiling web services in IIS Express
- Method not found: 'UInt32 <Module>._ANTS_Begin_Sql(System.String)'
- Enabling line-level timings for SecurityTransparent code
- Profiling SharePoint 2010 in v6.0 - 6.3
- Profiling SharePoint subsites
- Problems synchronizing results
- Windows service profiling fails if the service uses a system account
- Profiling assemblies protected with DeployLx
- The type initializer for 'y.layout.hierarchic.ClassicLayerSequencer' threw an exception
- Forcing your application to use .NET 4
- Double hit counts occurring on one line
- System.EntryPointNotFoundException (Versions: 3,4 only)
- 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
- 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)
- Profiling IIS web applications that need to run under the SYSTEM account
- Profiling a web application hosted in IIS on a fixed TCP port
- 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
- Cannot start COM+ application via Remote Desktop
- Finding the overall time taken to execute a thread
- 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
- Creating a global debugging symbols (PDB) directory
- 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
- Application recycling causes incomplete results and other errors when profiling ASP .NET
- (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
- Please specify a valid URL message profiling ASP .NET
- Times on individual lines do not add up to method time
- 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
- Problems with ANTS Visual Studio integration
- ANTS Profiler has been split into two distinct programs
- Windows Installer errors 1603 and 2738 occurring during installation
- Times in source code window are greater than the times showing in the method grid or tree view
- Problems with ANTS Performance Profiler Visual Studio integration
- Profiling ClickOnce applications deployed to IIS
- Could not enable tracing due to error code 112
- AjaxControlToolkit incompatibility causing application being profiled to crash
- Could not enable tracing because SQL Express is installed
- ANTS Performance Profiler menu items not showing in Visual Studio 2010
- Profiler stopping while profiling an in-browser Silverlight application
- "No Disk" error occurring while profiling application
- IE error "Internet Explorer cannot display the webpage" when profiling a website
- Profiler failing to connect to the server when profiling web applications
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 Performance Profiler
- Activating your products
- Activating your products
- Interpreting unexpected profiling results
- Choosing a profiling mode in ANTS Performance Profiler 6
- ANTS Performance Profiler 7 release notes - version 7.xx
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
ANTS Performance Profiler
- Worked example: Profiling an ASP.NET application - ANTS Performance Profiler
- Worked example: Profiling from the command line - ANTS Performance Profiler
- Worked example: Profiling SQL queries - ANTS Performance Profiler
- Worked example: Profiling performance of an algorithm - ANTS Performance Profiler
- Worked example: Profiling network overheads - ANTS Performance Profiler

Using ANTS Performance Profiler