Error on Window Service profiling

Hi,

At first, I'am a french developper and my english is not very good.

I have a trial version of Ant Profiler 2.7.0.109,
I want to profile performance for a .Net Windows Service but, when I click on the "Next" button, i have the following error :


The given path's format is not supported.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NotSupportedException: The given path's format is not supported.
at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
at System.IO.Path.GetFullPath(String path)
at _71._3(String )
at _71._1(String , String& )
at _58._1(Boolean )
at _48._5()
at _48._1(Object , WizardPageCancelEventArgs )
at ActiproSoftware.Wizard.WizardPageCancelEventHandler.Invoke(Object sender, WizardPageCancelEventArgs e)
at ActiproSoftware.Wizard.Wizard.OnSelectionChanging(WizardPageCancelEventArgs e)
at ActiproSoftware.Wizard.Wizard._1(WizardPage , Boolean , Boolean , WizardPageEventReason )
at ActiproSoftware.Wizard.Wizard._2(WizardPageCancelEventArgs )
at ActiproSoftware.Wizard.Wizard._1(CommandEventArgs )
at ActiproSoftware.Wizard.Wizard.RaiseCommand(Command command)
at _9.OnClick(EventArgs e)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

RedGate.Profiler.UI
Assembly Version: 2.7.0.109
Win32 Version: 2.7.0.109
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/RedGate.Profiler.UI.exe
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
RedGate.Profiler.Engine
Assembly Version: 2.7.0.109
Win32 Version: 2.7.0.109
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/RedGate.Profiler.Engine.DLL
RedGate.Licensing.Client
Assembly Version: 1.3.0.25
Win32 Version: 1.3.0.25
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/RedGate.Licensing.Client.DLL
DevExpress.XtraBars.v6.1
Assembly Version: 6.1.5.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.XtraBars.v6.1.DLL
DevExpress.Utils.v6.1
Assembly Version: 6.1.5.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.Utils.v6.1.DLL
DevExpress.XtraTreeList.v6.1
Assembly Version: 6.1.5.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.XtraTreeList.v6.1.DLL
DevExpress.XtraEditors.v6.1
Assembly Version: 6.1.5.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.XtraEditors.v6.1.DLL
DevExpress.Data.v6.1
Assembly Version: 6.1.5.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.Data.v6.1.DLL
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
ActiproSoftware.DockableWindow
Assembly Version: 2.0.208.0
Win32 Version: 2.0.208.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/ActiproSoftware.DockableWindow.DLL
ActiproSoftware.TabStripPanel
Assembly Version: 2.0.208.0
Win32 Version: 2.0.208.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/ActiproSoftware.TabStripPanel.DLL
RedGate.Licensing.Helper
Assembly Version: 1.3.0.25
Win32 Version: 1.3.0.25
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/RedGate.Licensing.Helper.DLL
DevExpress.XtraGrid.v6.1
Assembly Version: 6.1.5.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.XtraGrid.v6.1.DLL
System.DirectoryServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.DirectoryServices/2.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll
ActiproSoftware.Wizard
Assembly Version: 3.0.113.0
Win32 Version: 3.0.113.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/ActiproSoftware.Wizard.DLL
ActiproSoftware.WinUICore
Assembly Version: 1.0.77.0
Win32 Version: 1.0.77.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/ActiproSoftware.WinUICore.DLL
ActiproSoftware.Shared
Assembly Version: 1.0.77.0
Win32 Version: 1.0.77.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/ActiproSoftware.Shared.DLL
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
RedGate.Update.Client
Assembly Version: 1.2.0.3
Win32 Version: 1.2.0.3
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/RedGate.Update.Client.DLL
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
RedGate.Profiler.Transfer
Assembly Version: 2.7.0.109
Win32 Version: 2.7.0.109
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/RedGate.Profiler.Transfer.DLL
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.ServiceProcess
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
SHDocVw
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/SHDocVw.DLL
XtraDataTempAssembly
Assembly Version: 0.0.0.0
Win32 Version: 6.1.5.0
CodeBase: file:///D:/Program%20Files/Red%20Gate/ANTS%20Profiler/DevExpress.Data.v6.1.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

On my PC I have :
.Net frameworh 1.1 and 2.0
Windows XP SP2

How can I resolve this problem.
Thank.

Damien.

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hello Damien,

    This happens infrequently but it involves an image path in the registry that Windows cannot resolve because it is corrupt or has invalid characters.

    ANTS Profiler needs to examine all of the services configured on the computer to find out if they are .NET managed code, so even if the service is not the one that you want to profile, you may still get this error. It may be possible to find the offending registry entry by running a Windows Script. I will post that here:
    'ListImagePaths.vbs
    'Print out all services and the paths to their executables
    Dim colServiceList 
    Dim obService 
    Dim objWMIService 
    Dim obFileSys
    Dim obFile
    Dim sPath
    Set obFileSys=CreateObject&#40;"Scripting.FileSystemObject"&#41;
    Set objWMIService = GetObject&#40;"winmgmts:" _ 
        & "&#123;impersonationLevel=impersonate&#125;!\\.\root\cimv2"&#41; 
       Set colServiceList = objWMIService.ExecQuery _ 
            &#40;"Select * from Win32_Service"&#41; 
    ON ERROR RESUME NEXT
       For each obService in colServiceList 
          'Try to get the image path 
    Set obFile=Nothing
    
    WScript.Echo&#40;obService.DisplayName & " : " &obService.PathName&#41;	
    		
    
       Next 
    ON ERROR GOTO 0
    

    Once you have identified the service posing the problem, you can fix the image path by using regedit.exe and navigating to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<service name>\ImagePath and setting this to a file path that can be resolved by Windows.
Sign In or Register to comment.