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

Where I can find a list of all the CategoryName and their CounterName for System.Diagnostics?

This is my first question in this great site I've been using for a long time. I would like to use System.Diagnostics to obtain from a remote computer the percentage of CPU and memory used. Also need to know the percentage of CPU and memory used by…
Deulis
  • 414
  • 4
  • 10
0
votes
2 answers

Azure / WCF diagnostics don't seem to be working, and now I've been looking at it for too long. What's wrong?

I have a pretty simple WCF service set up to run in an Azure web role. It's not working quite right (expectedly), but I need to gather trace diagnostics to debug successfully. Could someone identify where I've gone wrong? Here is my web.config for…
Ben Collins
  • 20,538
  • 18
  • 127
  • 187
0
votes
1 answer

Azure: Using System.Diagnostics.PerformanceCounter

I'm aware of the Microsoft.WindowsAzure.Diagnostics performance monitoring. I'm looking for something more real-time though like using the System.Diagnostics.PerformanceCounter The idea is that a the real-time information will be sent upon a AJAX…
riaanc.
  • 45
  • 4
0
votes
2 answers

Closing a Process that was started via a thread

I am currently working on a c# project and am using the System.Diagnostic.Process class. When my program starts it creates a new thread and within each thread starts a different process. At some point I need to check a setting within my program to…
Boardy
  • 35,417
  • 104
  • 256
  • 447
0
votes
1 answer

Filtering Diagnostics Performance Counters

I have this simple Performance Counter setup. The thing is that this Performance Counter is completely useless. It measures CPU usage percentage for a time span of 60 Seconds and logs the number. What I need to do is to somehow make it filter the…
Registered User
  • 3,669
  • 11
  • 41
  • 65
-1
votes
3 answers

Getting an exception in "Dim mdi as new MDIParent1" in VB.NET

I'm getting an exception in this code: Imports System.Windows.Forms Imports System.Text Imports System.Diagnostics Public Class MDIParent1 Private Sub MDIParent1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …
naveen sai
  • 11
  • 5
-1
votes
1 answer

C# Trying to make another form open when a certain application is open

Here is my code below using System.Diagnostics; while (Process.GetProcessesByName("Your Program").Length == 0); { if (Checkbox.Checked) { form2.Visible = true; …
James L
  • 19
  • 5
-1
votes
2 answers

Process worker is not working on IIS 7

Lets take scenario, I developed web application (ASP.NET MVC) which shows list of .xml files and we select two .xml files for comparison and use a comparing utility like Beyond Compare 3. Basically, I have Scrapt file (Beyond Compare 3 Script)…
Xulfee
  • 958
  • 3
  • 13
  • 43
-1
votes
2 answers

How can I read all current processes and print them in console? / C# ConsoleApp System.Diagnostics

I got this error: (I can give more info from inspector) System.ComponentModel.Win32Exception: 'access denied' The exception was originally generated in this call stack: System.Diagnostics.ProcessManager.OpenProcess(int, int,…
Cicker
  • 19
  • 11
-1
votes
1 answer

Increase system.diagnostics packet logging size

We are using system.diagnostics in our IIS configuration to debug a SOAP failure. Our SOAP packets are a reasonable size so we get: System.Net Verbose: 0 : [8392] (printing 1024 out of 2238) Our configuration is:
user626201
  • 1,623
  • 3
  • 19
  • 36
-1
votes
1 answer

System.Diagnostics.Process ExitCode 1

i'm using a simple C# static method in order to launch windows application. All works fine with all 32 or 64 bit application except for iexplore.exe. When i call: ExecHttp(@"C:\Program Files (x86)\Internet Explorer\iexplore.exe",…
-1
votes
1 answer

Azure Applicattion Logging not working

My web app deployed to an Azure App Services (web site) has stopped to log from System.Diagnostics.Trace I'm not sure at which stage it has stopped to fail to log, I suspect might be caused by any package added through Nugget. I've created a new…
Jorge
  • 1,178
  • 2
  • 13
  • 33
-1
votes
1 answer

Diagnostics, where to read the Trace.TraceInformation?

Trace.AutoFlush = true; Trace.TraceInformation(string.Format("Try starting: {0}", System.Reflection.Assembly.GetExecutingAssembly().GetName())); Trace.Flush(); I have read: How to Check the Application Event Log for Errors But I can not find any…
-1
votes
1 answer

How to check whether the Open/Save As dialog box is opened in VB.NET

I have written a vb.net application to start an external application (notepad.exe) and then open the txt file located in at "D:\test.txt". I have used keyboard events to achive this. Step1: Open the notepad Process.Start("notepad.exe") Step 2:…
Saravana Kumar
  • 3,669
  • 5
  • 15
  • 35
-1
votes
2 answers

launching an app within a vb.net project

I try to lunch an executable file within my windows form vb.net application, but the first screen lunched were maximized..i want to be as it is, in minimized state.. my code is: Dim oProcess As System.Diagnostics.Process Dim oPSI As New…
ziad mansour
  • 349
  • 6
  • 25
1 2 3
44
45