Questions tagged [system.diagnostics]

System.Diagnostics is a namespace of the .NET framework. It provides classes that allow you to interact with system processes, event logs, and performance counters.

System.Diagnostics is a namespace of the .NET framework. It provides classes that allow you to interact with system processes, event logs, and performance counters.

References

670 questions
0
votes
1 answer

How to get acces into switch declared in App.config?

This is a snippet from my App.config : system.diagnostics switches add name="Logowanie" value="Verbose" /switches /system.diagnostics How can I make TraceSwitch in my C# code that will be connected with this one "Logowanie" from…
CSharpBeginner
  • 1,625
  • 5
  • 22
  • 36
0
votes
2 answers

How to stop a VLC player from another application?

I have started the VLC player in my application using this code: Process.Start("C://Program Files//Videolan//VLC//VLC.exe", "\"rtsp://xxx.xxx.xx.xx:554/h264\" --qt-start-minimized…
Vinshi
  • 313
  • 2
  • 7
  • 27
0
votes
0 answers

Please mention that steps that I need to take in order to see debug statements in Visual Studio 2012 output window

Our ASP.NET C# web application is used in the following environment .NET Framework 4 IIS 7 Windows 2008 Visual Studio 2012 C# - HTTPS ( SSL ) IIS Express The System.Diagnostics.Debug.WriteLine fails to write to the Visual Studio 2012 output…
0
votes
1 answer

System.Diagnostics.Process Hangs on Network Files Only

Dim myProcess As System.Diagnostics.Process = New System.Diagnostics.Process() myProcess.StartInfo.UseShellExecute = True myProcess.StartInfo.FileName = "C:\Program Files (x86)\IrfanView\i_view32.exe" myProcess.StartInfo.Arguments =…
user1091524
  • 865
  • 1
  • 15
  • 28
0
votes
3 answers

Something with/in Start.Process() is not working

My console application has a void in it which opens an external console application, to compare 2 text files. I get no errors, so I assume it's working. But when I look at the output, I see NOTHING. When I open the application that compares the text…
vascomakker
  • 159
  • 1
  • 2
  • 10
0
votes
2 answers

Trace.CorrelationManager.ActivityId as WADLogsTable column

Is there a way to have Trace.CorrelationManager.ActivityId automatically included as a column in the WADLogsTable when using System.Diagnostics tracing with Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener as the listener?
Caleb Doise
  • 440
  • 4
  • 15
0
votes
2 answers

Trace wcf service

arnoldrob
  • 813
  • 3
  • 9
  • 15
0
votes
1 answer

Start and manage external process from a WPF app

I have a WPF application and I need to spin up a separate MFC application and then communicate with it. I was going to use Process.Start, but I'm wondering if there is a better way to do this these days. I can research things myself, but I need to…
Jordan
  • 9,642
  • 10
  • 71
  • 141
0
votes
1 answer

async process exited not firing c# from controller

I use this to run a process from a controller's action var psi = new ProcessStartInfo(utilityPath, String.Format("{0} {1}", inputfilePath, outputfilePath)) { WorkingDirectory = Environment.CurrentDirectory, …
Mortalus
  • 10,574
  • 11
  • 67
  • 117
0
votes
1 answer

Display progress of a command line process that is running in MVC

I wrote an MVC action that runs a utility with input parameters and writes the utilities output to the response html. here is the full method: var jobID = Guid.NewGuid(); // save the file to disk so the CMD line util can access it …
Mortalus
  • 10,574
  • 11
  • 67
  • 117
0
votes
4 answers

GetProcessId from all processes with "notepad"

So what I'm trying to do is to GetProcessId from all processes with name "notepad" for example. Then do a foreach statement for all Ids found. Int32 ProcID = GetProcessId(injecttext.Text); Not sure if enough info to help is provided. thanks in…
Ezzy
  • 1,423
  • 2
  • 15
  • 32
0
votes
1 answer

Tracing a GAC Registered COM+ C# dll

I need to be able to diagnose a COM+ registered dll that is called from a third party's application via a plugin to that application. I haven't been able to figure out how to get a config file with trace listeners configured for it. As a matter of…
scott-pascoe
  • 1,463
  • 1
  • 13
  • 31
0
votes
2 answers

opening application using System.diagnostic in C#

I need to open itunes using System.Diagnostic.Start using C# Code. Is this possible? Also I need to pass the song or Video to play when I open itune. If i use this code this does opens the song, but it open it with the default player of my system. I…
Pankaj
  • 1,446
  • 4
  • 19
  • 31
0
votes
2 answers

Is it possible to run .scf file programmatically

Am trying to run "show Desktop.scf" using System.diagnostics.Process.Start() in C#. But the debug line just passes and takes no action. When I try using Start -> Run, it performs the show desktop action. Process.Start takes a filename. Why wouldn't…
0
votes
2 answers

System.Diagnostics.Process

I have .NET windows form and button. When click on button I start bat file: //execute batch System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.StartInfo.FileName = "test.bat"; …