Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

CLR Profiler cannot start my C# Console Application

$
0
0

I've downloaded CLR Profiler.

I followed How To: Use CLR Profiler instructions, but it doesn't work. Here are my steps. 

- I execute 32-bit version with administrative priviliges. 

- I checked my CLR Version.

C:\Program Files\Microsoft Visual Studio 10.0\VC>clrver
Versions installed on the machine:
v2.0.50727
v4.0.30319

- so I choose target CLR Version:V4 Desktop CLR (otherwise it runs, but View menu and the Show Heap now button are disabled).

- check Allocations and Calls checkboxes

- select Start Application (or File -> Profile Application)

- Application isn't running

- On The Console I got message CLR Object Profiler Tool - turning off profiling for child processes

- View Menu options are disabled

- By pressing Show Heap now button I get the exception message window

************** Tekst wyjątku **************
System.IO.FileNotFoundException: Nie można odnaleźć pliku 'C:\Windows\TEMP\pipe_1240.log'.
Nazwa pliku: 'C:\Windows\TEMP\pipe_1240.log'
   w System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   w System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   w System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   w CLRProfiler.MainForm.logFileOffset() w C:\CLRProfilerHelper\CLRProfiler\Sources\CLRProfiler\MainForm.cs:wiersz 2850
   w CLRProfiler.MainForm.showHeapButton_Click(Object sender, EventArgs e) w C:\CLRProfilerHelper\CLRProfiler\Sources\CLRProfiler\MainForm.cs:wiersz 2859
   w System.Windows.Forms.Control.OnClick(EventArgs e)
   w System.Windows.Forms.Button.OnClick(EventArgs e)
   w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   w System.Windows.Forms.Control.WndProc(Message& m)
   w System.Windows.Forms.ButtonBase.WndProc(Message& m)
   w System.Windows.Forms.Button.WndProc(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   w System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

- After closing bug window, on the console are displayed several WARNING: OpenEvent FAILED Will Attempt CreateVEent()

- Then Application runs and closes

I can't find out what i'm doing wrong.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>