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
0 answers

Kill a process before it even gets into memory

I'm using this code to detect if a process is detected or not. I use kill() to get rid of it. I originally want to suspend it and then do some processing with it which will decide whether to allow the process to run or not but apparently I'm unable…
Saifur Rahman Mohsin
  • 929
  • 1
  • 11
  • 37
0
votes
1 answer

Why is the SLAB service warning of dropped events for my ETW event source?

I'm getting this error on one of my servers: EventId : 806, Level : Warning, Message : Some events will be lost because of bu ffer overruns or schema synchronization delays in trace session: Microsoft-Seman ticLogging-Etw-Mobile2ConsoleListener.,…
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
1 answer

System.diagnostics and System.Debug not working from Page Method

We have a Page Method on a web page using ASP .Net. We tried to put in a trace statement using both System.Diagnostics and System.Diagnostics.Debug. In Visual Studio 2008, the break point is not even hit for the line, but other break points on other…
Kenoyer130
  • 6,874
  • 9
  • 51
  • 73
0
votes
1 answer

Reading tabs count or info from IE running tasks vb.net

Apologies for not formulating the question to its best. I hope the question is clear enough after going through the code below. I am trying to get the TABS info running for an IE instance usung System.diagnostic class It apparently is clear that…
Rajiv S Mehta
  • 50
  • 2
  • 7
0
votes
0 answers

Has Microsoft.Diagnostics.Tracing.EventSource dropped support for Channels?

I've just upgraded my service to use the latest NuGet ETW package, previously using the beta version. However, it seems channel support has been dropped from the event source. Does anyone have an idea what has happened here?
jaffa
  • 26,770
  • 50
  • 178
  • 289
0
votes
0 answers

Not able to see my WCF service logs

I am trying to enable logging for my WCF service using web.config file. However I am not able to see any logs. What am I doing wrong?
Adarsh Kumar
  • 1,134
  • 7
  • 21
0
votes
1 answer

loading files name and run when click the file link

I need loading some files name according to user selection from combo box and run when click on file name . for example : combobox list => electerical physical When select electrical load excel files from electrical folder and select physical…
Mostafa
  • 91
  • 2
  • 12
0
votes
0 answers

Strange errors after Process.Start()

I have a project which uses an external application to process moderately large files via a WebAPI service. A file is uploaded, some preprocessing and validation happens, then the work is handed off to the executable like so: int result = -1; try { …
superstator
  • 3,005
  • 1
  • 33
  • 43
0
votes
3 answers

System.FileNotFound exception

So I am trying to automatically launch mmc compmgmt.msc with the only switch it seems to have (/computer:\). It works just fine from a local run box, but not by utilizing Process.Start. Here is the offending line: Process.Start("mmc…
0
votes
1 answer

Help me MAKE C# Monitor (Output) and Feed (Input) to SSH.exe

I've found that the more I refine a question, the better help I get. So, to make the question as complete as possible, I'm providing this C# WPF solution created in Visual Studio 2010 Beta 2. This solution exactly reproduces the problem I'm having,…
Lonnie Best
  • 9,936
  • 10
  • 57
  • 97
0
votes
2 answers

Open .exe application from .NET console application

If I try to open Notepad from a .NET console application it works fine. I'm doing it as follows: var p = new Process { StartInfo = { FileName = "c:\windows\system32\notepad.exe"; } }; p.Start(); When I try to open the…
Dante
  • 3,833
  • 4
  • 38
  • 55
0
votes
3 answers

Close application opened in .NET console application

I'm opening an external application from a console application, as follows: var p = new Process { StartInfo = { FileName = "SomeApp.exe" } }; p.Start(); Thread.Sleep(10000); p.CloseMainWindow(); //Bam!!…
Dante
  • 3,833
  • 4
  • 38
  • 55
0
votes
1 answer

System.Diagnostics ServiceModel message logging not working for integration test project

I have an integration test project, that I run tests on my classes that consume an external WCF service In MyApp.IntegrationTests I have an app.config file that looks like:
Alex
  • 37,502
  • 51
  • 204
  • 332
0
votes
2 answers

Reading error output hangs for command invoked on CMD process

I have c# console app for ffmpeg command invocation. Here is it class Program { static void Main(string[] args) { ProcessStartInfo cmd = new ProcessStartInfo("cmd.exe"); cmd.RedirectStandardInput = true; …
user1665130
  • 51
  • 10
0
votes
3 answers

close .exe file using wpf application and button click

i want to close an executable file (.EXE) runing on my PC programatically using WPF, I have succed to start this .EXE file by : if (_MyPath != "") { Process StartApp = new Process(); string str = @_MyPath; StartApp.StartInfo.FileName =…
user2933082
  • 263
  • 3
  • 10