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

Why exe is not running in program files?

I am developing wpf application. I am running the degrib.exe using the following code public static void GenerateCsvFile(string fileName) { try { MessageBox.Show("Csv Error"); …
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
0 answers

System.Diagnostic.Process-command Invocation issue in non english OS

I have implementation where I run an *.EXE through the command prompt using System.Diagnostic.Process. This works perfectly fine in English OS. However, to support multilingual- I have changed OS display language to French. When I run the same…
0
votes
4 answers

How to validate a process filename can execute before starting?

Edit: I didn't mean to pinhole this question to a specific executable. I want this to work for any executable. If I was to type in the FileName into a run dialog, and the result is the "Windows cannot find ..." dialog, then I dont want to Start…
Tizz
  • 820
  • 1
  • 15
  • 31
0
votes
2 answers

Application error only when using Process.Start

In our system, we're monitoring a third-party executable which we have very little control over, lets call it TheServer.exe. I believe it's built in C++ Builder. Sometimes TheServer misbehaves and we need to kill and restart it. I'm writing some C#…
Anlo
  • 3,228
  • 4
  • 26
  • 33
0
votes
0 answers

Waiting for prompt from Process.StandardOutput

Possible Duplicate: System.Diagnostics.Process.Start a process against a different domain For background on what I am trying to do you might want to look at: System.Diagnostics.Process.Start a process against a different domain Basically even…
snappymcsnap
  • 2,050
  • 2
  • 29
  • 53
0
votes
1 answer

Monitoring Process Exits in a Custom Action

All – I need to carry out several tasks silently via Custom Actions. Essentially, I need to install and license a 3rd party application after I've laid down my own bits: I install my bits into the Application Folder I launch a custom action to…
0
votes
3 answers

How to generate output in specific folder by running .exe

I am developing wpf application in C#. I am able to run the following exe files public static void GenerateCsvFile(string fileName) { System.Diagnostics.Process process = new System.Diagnostics.Process(); …
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
1 answer

The name 'Trace' does not exist in the current context MonoDroid

So I am compiling a small project in MFA and I am getting the error "The name 'Trace' does not exist in the current context". I have imported System.Diagnostics and according to THIS article, System.Diagnostics is included... Any ideas as to why I…
Nicholas Terry
  • 1,812
  • 24
  • 40
0
votes
1 answer

OutputDataReceived event is never triggered in Windows Server 2008 (fine in Win7)

I have an odd problem I can't seem to diagnose. I'm calling am external binary, waiting for it to complete and then passing back a result based on standard out. I also want to log error out. I wrote this and it works a treat in Windows 7 namespace…
Ed Lewis
  • 43
  • 1
  • 3
0
votes
1 answer

The description for Event ID ( 0 )

The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE=…
Tom
  • 302
  • 2
  • 5
  • 14
0
votes
2 answers

[Conditional ( "SILVERLIGHT" )]

WCF Conditional Operations in Service Contract #if SILVERLIGHT // <------------------------------ ( 1 ) // Silverlight Operations #else // <------------------------------ ( 2 ) // NON Silverlight Operations #endif Mark #1 can be converted…
0
votes
3 answers

How to get trace output added to context.response in httphandler?

I've enabled trace pageoutput="true" in my web.config and I like the easy way it provides of seeing all this stuff at the bottom of the page. I'd like to get the same output from trace at the bottom of the output from my httphandler. Is there a way…
John Adams
  • 4,773
  • 25
  • 91
  • 131
0
votes
1 answer

System.Diagnostics.Process.Start throwing threadabort exception on server

In my website I am using System.Diagnostics.Process.Start to preview a particular file. It is working fine on the local server but, it throws ThreadAbortException on the online server when I try to preview the file. The preview of the happens on…
user1509
  • 1,151
  • 5
  • 17
  • 45
0
votes
3 answers

What's a Standard Output Stream?

I have code that looks more or less like the code below but it doesn't retrieve text from the application I'm opening (notepad). Maybe I'm missing the point. Can someone explain what a Standard Output Stream is and whether in fact it's what I want…
John Smith
  • 4,416
  • 7
  • 41
  • 56
0
votes
1 answer

Exception: System.ComponentModel.Win32Exception: Invalid data at System.Diagnostics.Process.Start_shell

I am working on linux environment and using Mono for development. i have a C# project in which i want to start another application/executable file. the code snippet is below: string pathToDB = @"""/root/somefolder/anotherfolder/"""; …
Muhammad Assad
  • 153
  • 1
  • 2
  • 6