The system cannot find the file specified
Published 18 December 2012
This page relates to both ANTS Performance Profiler and ANTS Memory Profiler.
When profiling an ASP .NET web application, ANTS Performance/Memory Profiler may throw the following exception:
Unable to start profiler - exception details
System.ComponentModel.Win32Exception: The system cannot find the file specified
ANTS Performance/Memory Profiler relies on an number of programs to be installed on the system to work properly. Some are web browser components and some are to verify that application pools are running. In short, this error can occur if one of the following files are missing:
- %systemroot%\shdocvw.dll
- w3wp.exe, the path to which is found in the registry at HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\IISAdmin\ImagePath, substituting w3wp.exe for intetinfo.exe
- In IIS 6 only: %systemroot%\system32\cscript.exe
- In IIS 6 only: %systemroot%\system32\iisapp.exe
- In IIS 7 only: appcmd.exe, located in the same folder as w3wp.exe above