Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6066203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:28:32+00:00 2026-05-23T09:28:32+00:00

What happens if I call Process.Start with invalid credentials (i.e., password)? I’m getting a

  • 0

What happens if I call Process.Start with invalid credentials (i.e., password)? I’m getting a Win32Exception but that doesn’t seem right to me. However, the documentation suggests it’s not designed to report credential errors. Is this a security feature?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T09:28:33+00:00Added an answer on May 23, 2026 at 9:28 am

    No, Win32Exception is correct. If you look a little bit more on the MSDN documentation:

    An error occurred when opening the associated file.

    -or-

    The sum of the length of the arguments and the length of the full path to the associated file exceeds 2080. The error message associated with this exception can be one of the following: "The data area passed to a system call is too small." or "Access is denied."

    Emphasis mine.

    I would say, that it isn’t extremely clear. Looking at the code with reflector seems to agree with the documentation.

    EDIT

    Some plumbing details..

    Process.Start will be throw a Win32Exception for a lot of reasons; pretty much if anything goes wrong starting the process. Internally, .NET is called CreateProcessWithLogonW, and if that fails, it throws the Win32Exception and sets the NativeErrorCode property on it to whatever GetLastWin32Error returned. You can determined why it was thrown by looking at that code. There is a lookup of what each code means here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What happens when you call notifyAll method on an object that is not waiting?
What happens when I call rchisq(100,1:100,1:100) : does R generate 100 numbers with df=1,ncp=1?
Normally, the method of passing workflow parameters to the workflow happens in the call
What happens if I use SHGetFolderPath api call in a 32 bit system with
If I call setIndentationLevel: on an NSMenuItem then nothing happens, if I call indentationLevel
In Windows, what happens to an open HKEY variable if you don't call RegCloseKey
i have a snippet call like this: [!mysnippet?&content=`[*content*]` !] What happen is that, if
I am trying to call a batch file from an application, but I want
For some part of my project I need a process-local scheduling system that will
I have a program that depends on an external shared library, but after a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.