If you start a project that has no "application to run"
NProf throws the following exception and exits:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: Cannot start
process because a file name has not been provided.
at System.Diagnostics.Process.Start()
at NProf.Glue.Profiler.Profiler.Start(ProjectInfo pi, Run
run, ProcessCompletedHandler pch)
at NProf.Glue.Profiler.Project.Run.Start()
at NProf.GUI.ProfilerForm._cmdProjectRun_Click
(Object sender, EventArgs e)
at Crownwood.Magic.Menus.MenuCommand.OnClick
(EventArgs e)
at
Crownwood.Magic.Menus.MenuControl.OperateSubMen
u(DrawCommand dc, Boolean selectFirst, Boolean
trackRemove)
at
Crownwood.Magic.Menus.MenuControl.OnWM_OPERA
TEMENU(Message& m)
at Crownwood.Magic.Menus.MenuControl.WndProc
(Message& m)
at
System.Windows.Forms.ControlNativeWindow.OnMess
age(Message& m)
at
System.Windows.Forms.ControlNativeWindow.WndProc
(Message& m)
at System.Windows.Forms.NativeWindow.Callback
(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/microsoft.net/framework/v1.1.4322/msc
orlib.dll
----------------------------------------
NProf.Application
Assembly Version: 1.0.1737.16175
Win32 Version: 1.0.1737.16175
CodeBase: file:///C:/Downloads/nprof-0.9b-
alpha/nprof/NProf.Application.exe
----------------------------------------
NProf.Glue
Assembly Version: 1.0.1737.16169
Win32 Version: 1.0.1737.16169
CodeBase: file:///C:/Downloads/nprof-0.9b-
alpha/nprof/bin/NProf.Glue.DLL
----------------------------------------
NProf.GUI
Assembly Version: 1.0.1737.16174
Win32 Version: 1.0.1737.16174
CodeBase: file:///C:/Downloads/nprof-0.9b-
alpha/nprof/bin/NProf.GUI.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.windows.forms/1
.0.5000.0__b77a5c561934e089/system.windows.forms.d
ll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77
a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.drawing/1.0.500
0.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
MagicLibrary
Assembly Version: 1.7.4.0
Win32 Version: 1.7.4.0
CodeBase: file:///C:/Downloads/nprof-0.9b-
alpha/nprof/bin/MagicLibrary.DLL
----------------------------------------
CommandBar
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Downloads/nprof-0.9b-
alpha/nprof/bin/CommandBar.DLL
----------------------------------------
NProf.Utilities
Assembly Version: 1.0.1737.16170
Win32 Version: 1.0.1737.16170
CodeBase: file:///C:/Downloads/nprof-0.9b-
alpha/nprof/bin/NProf.Utilities.DLL
----------------------------------------
System.Xml
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system.xml/1.0.5000.0_
_b77a5c561934e089/system.xml.dll
----------------------------------------
knj_wavx
Assembly Version: 0.0.0.0
Win32 Version: 1.1.4322.573
CodeBase:
file:///c:/windows/assembly/gac/system/1.0.5000.0__b77
a5c561934e089/system.dll
----------------------------------------
************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for
this
application or machine (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
machine
rather than being handled by this dialog.
Logged In: NO
This happened with v0.9-alpha