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
1
vote
1 answer

"Win32Exception: The operation completed successfully" after WTSQueryUserToken on 32bit Windows (64bit works)

I'm developing a small Windows Service in C# that needs to do interop with Win32 API at some point. I'm getting the following exception which does not make sense to me: System.ComponentModel.Win32Exception: The operation completed successfully Right…
Axel Magagnini
  • 855
  • 1
  • 8
  • 19
1
vote
1 answer

Trying to run slui.exe from within a method using ProcessStartInfo and Process

I'm having an issue with running slui.exe from a method in c#. I'm using the code: ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\Windows\System32\slui.exe"); Process p = new Process(); p.StartInfo = startInfo; p.Start(); …
0
votes
1 answer

Trace and 'device not ready'

I have written a very simple application tha accepts batches of telemetry log rows in XML files and transcribes them to a table on a SQL Server. Each one of these blocks of incoming data I refer to as a "chapter". For performance reasons, each…
Peter Wone
  • 17,965
  • 12
  • 82
  • 134
0
votes
0 answers

Cannot open EXE file from webpage. Error: System.ComponentModel.Win32Exception: The system cannot find the file specified

I want to call/open .EXE file from my webpage. Here is the code: Process process = new Process(); process.StartInfo.UseShellExecute = false; process.StartInfo.FileName = "c:\\Users\\MalikMunirah\\Publish\\setup.exe"; …
Munirah
  • 1
  • 2
0
votes
1 answer

.net application hosted on azure stopped working & exception occurred [Win32Exception (0x80004005): Access is denied] [SqlException (0x80131904):

My .NET site is hosted on azure and working fine but suddenly it get stopper and below error occurred. Please confirm below: 1.Is the issue from azure side 2. or from SQL side 3. how I can resolve this. Stack Trace: [Win32Exception (0x80004005):…
Rachna
  • 1
0
votes
1 answer

Csharp app only work on my pc Visual Studio 2019

If I run the App on my pc from visual studio or from outside of VS, after compiling with the installer package and installing it, in my pc works ok but if I install it on other pc, then I get this error and don't start "Unhandled exception has…
merlider
  • 13
  • 2
0
votes
0 answers

what do i do system componentmodel.Win32Exception (0x80004005) the specified module could not be found

I was trying to use my Xbox pad on my pc, but I cannot get it to work I downloaded x360 controller emulator, but it still did not work
0
votes
1 answer

Process MainModule - can I avoid Win32 exception?

I am enumerating processes to find if excel.exe is running (for example). I get a lot of Win32Exception from system services and such. Process[] pps = Process.GetProcesses(); foreach (var process in pps) { string module = null; try { …
Boppity Bop
  • 9,613
  • 13
  • 72
  • 151
0
votes
1 answer

Read process information. Win32Exception ERROR_PARTIAL_COPY

I want to get the process id of Microsoft Movies & TV (Video.UI.exe). When I loop through all the processes to check if the file name contains Video.UI.exe I get a lot of Win32Exceptions which I expected. I thought so. I only expected…
Kaskorian
  • 426
  • 3
  • 18
0
votes
0 answers

Win32 exception no application is assigned to the specified file C#

I have a problem with my Winforms Application. I have a database where the user can store files in. Doesnt matter if it is pdf, png etc...The user should see the file when double clicking on a row in a datagridview. I tried it like this: private…
0
votes
0 answers

Access diskpart.exe in C# class

I got error win32exception was unhandled using this in class on this part Process dip = new Process(); dip.StartInfo.FileName = @"C:\Windows\System32\diskpart.exe"; dip.StartInfo.RedirectStandardInput = true; dip.StartInfo.RedirectStandardOutput =…
Mohamad
  • 19
  • 4
0
votes
0 answers

"Error creating window handle" when changing "TextBox.ScrollBars"

I'm making an auto scroll text box by following this answer. The text box has some initial text so that the scrollbar will be shown at the beginning. The problem is when I drag the form's border to enlarge the text box, I will get "Error creating…
shingo
  • 18,436
  • 5
  • 23
  • 42
0
votes
2 answers

Win32Exception while in Adminstrator mode

Im getting this error while Visual Studio is in Administrator mode System.ComponentModel.Win32Exception HResult=0x80004005 Message=Access is denied Source=System StackTrace: at System.Diagnostics.ProcessManager.OpenProcess(Int32…
0
votes
0 answers

System.ComponentModel.Win32Exception occurs with Parameter is incorrect message while accessing control through automation

I am trying to access a wpf control using AutomationElement but sometimes it throws and exception. Below is the code: if (automationElement.TryGetCurrentPattern(ValuePattern.Pattern, out pattern)) { ValuePattern valuePattern = pattern as…
Kryptonian
  • 860
  • 3
  • 10
  • 26
0
votes
1 answer

Unhandled win32 Exception occurred in my Android ADV

Help! Every time I run any device from Android AVD it crashes, then the Visual Studio ? starts and gives the followed message. A unhandled win32 Exception occurred in emulator.exe followed message appears on Console [2011-03-18 16:10:16 -…