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
2
votes
1 answer

Windows 8.1 wcf communciation common algorithm exception

We encountered a strange problem with a piece of software that works already for 5 years. Recently we changed pc's and we're now developing on windows 8.1 The issue: We have a website that in the background connects to a wcf service that's using a…
Samyne
  • 308
  • 1
  • 13
2
votes
0 answers

Why do I get Win32Exception when running from TaskScheduler?

I get an exception ONLY when I run from TaskScheduler: static class Program { [STAThread] static void Main(string[] args) { Application.Run(new Master()); } } public partial class Master : Form { public Master() // …
ManInMoon
  • 6,795
  • 15
  • 70
  • 133
2
votes
1 answer

Exception on printing: The device is not ready

I have a report document created by Microsoft Reporting but instead of using its viewer to show the document and print it, I used PrintDocument class to print it directly without showing user any windows. It worked perfectly until I installed a…
mrtaikandi
  • 6,753
  • 16
  • 62
  • 93
2
votes
2 answers

process.start() throws win32Exception when credentials are given

I'm trying to use Process.Start() to start a lnk file. it's fine when credentials are not provided, but throws an exception when I do. here's the sample code: This works fine var processStartInfo = new ProcessStartInfo { FileName =…
codebomb
  • 23
  • 1
  • 1
  • 3
2
votes
3 answers

HRESULT exceptions

Is there any lists where the error codes are explained. Eks: HRESULT: 0x81070215 does not tell me enything about what when wrong?
Gaotter
  • 1,746
  • 15
  • 32
1
vote
1 answer

Using Named Pipes in C#

i've been trying to use Named Pipes in C# for a while but can't get it to work. I'm working with the following code: internal class SplitManager { public static void initialize() { Debug.Log("Initializing LiveSplit pipe"); …
1
vote
0 answers

Getting an ERROR_DDE_FAIL when opening office document using ShellExecuteEx

I encountered an error returned from ShellExecuteEx when opening an office file. This only happens on some pc's even while they have same OS/Office version/ etc. The error I am getting is an ERROR_DDE_FAIL, with an message given from office with the…
Peter Kiers
  • 602
  • 4
  • 16
1
vote
1 answer

C#: How to catch the exception when user refuses to grant elevated privileges?

In my C# code I have roughly this: public void RunCommand() { var processStartInfo = new ProcessStartInfo( "notepad.exe") { UseShellExecute = true, Verb = "Runas", }; var…
Claus Appel
  • 379
  • 1
  • 4
  • 13
1
vote
0 answers

How to solve "An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.Windows.Forms.dll"?

I am still a beginner to programming. I used to add a sliding menu to my program using c# bunifu framework. Once I clicked on a button on my sliding menu to open an another form with the help of creating an object I always receive this error, An…
1
vote
0 answers

C# FluentFTP Connection error - FTPS Windows 7

I try to establish a FTPS connection (explicit). On Windows 10, my program works fine, but on Windows 7 I have an error. I use the FluentFTP library in C#. I have already tried to change the SslProtocols with Tls,Tls11,Tls12, but it doesn't work. …
Bastien Cuenot
  • 117
  • 1
  • 1
  • 9
1
vote
0 answers

C# error Win32Exception was unhandled - Logon failure: unknown user name or bad password

I am attempting to launch a .exe file using different user credentials. It keeps returning an "unknown user name or bad password" error but I have verified that these are correct. Is there any way to debug this further or anything wrong with my…
1
vote
1 answer

Why am I getting "Win32Exception"?

I want to make a "launcher" for my jar program, basically my exe file doesn't do anything by its own, its simply for launching my jar program. My jar program can open a file, and as far as I know (pay atention to this because maybe here is the…
1
vote
2 answers

Issue with SQL Server FileStream

We are currently reviewing an issue we have on one of our live environments where OpenFileStream (private method inside SqlFileStream C# class) System.ComponentModel.Win32Exception (0x80004005): The system cannot find the path specified at…
Jamie
  • 876
  • 1
  • 10
  • 28
1
vote
1 answer

Eventlog, impersonation and Access Denied Win32Exception

I am using a dedicated account (with SDDL policy) to write event log entries to a custom event log. For this I use WindowsImpersonationContext and obtain a token with LogonUser: WindowsIdentity impersonationIdentity = new WindowsIdentity(ptr); …
qp
1
vote
1 answer

Error when start application through \Local Settings\Application Data\ in Windows 7

Simple code: ProcessStartInfo psi = new ProcessStartInfo(path); psi.UseShellExecute = false; Process.Start(psi); if path = C:\Users\Marat\AppData\Local\MyCompany\Program.exe, it's OK! but if path = C:\Users\Marat\Local Settings\Application…
Marat
  • 11
  • 1