Questions tagged [win32exception]

Win32Exception Class is part of .NET Framework and is used as wrapper of Win32 error codes.

Win32Exception Class is part of .NET Framework and is used as wrapper of Win32 error codes.

81 questions
4
votes
4 answers

Win32Exception the parameter is incorrect

exe file using Process.Start() but it throws the "Win32Exception the parameter is incorrect". Process p = new Process(); Process.Start("C:\Program Files\APS2PP\keyl2000.exe"); I can run this file through command prompt successfully.
Mukesh Gupta
  • 49
  • 1
  • 2
  • 3
4
votes
2 answers

"Win32Exception Not enough storage is available to process this command" error when run as a windows service

Sometimes I get the error Win32Exception Not enough storage is available to process this command after the application has been running for around a month or so. This corresponds to the system error ERROR_NOT_ENOUGH_MEMORY (8) Usually, it's…
Trisha
  • 141
  • 1
  • 2
  • 10
4
votes
1 answer

Process.Start exception: "The directory name is invalid"

I have an implementation of the Process.Start method that fails on my Windows 7 Professional 64-bit development machine, while working in our Windows 2008 test environment. const string CommandDirectory = @"C:\Program Files (x86)\Command"; var…
Chris Schiffhauer
  • 17,102
  • 15
  • 79
  • 88
4
votes
0 answers

Why i'm getting a win32exception once i'm starting the Process?

This is the code in the ffmpeg.cs class where the process is start . My brother tried to run the ffmpeg.exe alone and it's working no problems but once he click the button and the process is start he is getting an exception : My brother have windows…
joneK
  • 241
  • 1
  • 4
  • 13
3
votes
1 answer

Win32Exception "The System Cannot Find the File Specified"

This has been bugging me for 6 hours How on earth is it solved. I want the program to run a batch file (IP) which is both in resources and in the application path (i.e. bin/debug and /release). The batch file works when double clicked by…
Imran Ahmed
  • 356
  • 7
  • 17
3
votes
2 answers

What is the best way to handle a specific Win32 Exception like "application not found"?

I start a process with the default application for the file type, but if the user has deleted his default application, a Win32Exception is thrown. In addition there are other cases when a Win32Exception is thrown e.g. if the user has no rights to…
user10172226
3
votes
1 answer

Git bash win32exception: Failed to write credentials

I've recently started using GitHub but for some reason every time I attempt to pull or push it asks for my credentials. I'm 100% sure I have my credentials correct but git bash keeps giving this error: fatal: Win32Exception encountered. …
Jjampong
  • 584
  • 1
  • 4
  • 19
3
votes
0 answers

Can't catch Win32Exception

So I'm receiving a Win32Exception during an Entity Framework "Any" transaction. The db machine is offline so it's to be expected. It's a monitoring app so I want to log that the machine isn't available however it's not catching the error. The error…
Tod
  • 2,070
  • 21
  • 27
3
votes
4 answers

Unhandled Win32 exception

At runtime, when myApp.exe crashes i receive "Unhandled Win32 exception" but how would i know which exception was occurred? where did something went wrong?
Kevin
  • 31
  • 1
  • 2
3
votes
1 answer

What are the capitalized text identifiers for Win32 error codes called, and how can they be determined programmatically, given an error code?

In listings of Win32 error codes, each error has three components: The numeric error code A descriptive message An identifier consisting of capitalized words separated by underscores According to the documentation, the term "message identifier"…
Adi Inbar
  • 12,097
  • 13
  • 56
  • 69
3
votes
3 answers

PrintDocument.Print() throws a Win32Exception

I'm getting a strange exception from the following code: var printDialog = new PrintDialog(); printDialog.ShowDialog(); var printDocument = new PrintDocument { DefaultPageSettings = { Landscape = true, PrinterSettings = new…
ChrisFletcher
  • 1,010
  • 2
  • 14
  • 31
3
votes
2 answers

How do I deal with cases when Process.Kill() yields "access denied" because the process is terminating?

In my code I need to call Process.Kill() that is declared in MSDN to throw Win32Exception when either of the following occurs The associated process could not be terminated. The process is terminating. The associated process is a Win16…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
3
votes
1 answer

Win32Exception @ ServiceHost.Open() for WCF service

I am working on writing BDD specifications for a broad set of WCF service infrastructure I am writing. I have noticed that each specification I write that involves a call to ServiceHost.Open(), that line takes a good 2 - 6 seconds to execute (the…
jrista
  • 32,447
  • 15
  • 90
  • 130
2
votes
3 answers

System.ArgumentException and System.ComponentModel.Win32Exception when getting process information

When i try to write process' information to console i get System.ArgumentException and System.ComponentModel.Win32Exception. What causes this? How can i stop having those? Process processListe = Process.GetProcesses(); for (int…
platypus
  • 706
  • 2
  • 18
  • 40
2
votes
1 answer

Selenium C# System.ComponentModel.Win32Exception' occurred in System.dll Error

I am writing some code in Selenium C# and have encountered an issue I am having some trouble figuring out. I installed Selenium on a test machine and have it working with Firefox. I had an issue when the browser updated, but resolved it when I…
AndrewC10
  • 357
  • 1
  • 4
  • 20