Process.Start() fails with "The directory name is invalid." = 267

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kerem Gümrükcü

    Process.Start() fails with "The directory name is invalid." = 267

    Hi,

    i have a Process.Start call that fails with 267 Error Code
    if invoked with another user and password other than the
    applications user. It is a ordinary piece of code just create
    a Process Object , fill its StartInfo and then go a process.Start() ,
    It works fine, unless i try to execute the process with another
    user. Why, what do i have to take care of,...i gt the
    267 Win32Exception Code with the Exception thrown,...

    OS is XP Pro, Runtime Host is .NET is v2.0 up2date

    TIA,...

    Regards

    Kerem

    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Microsoft Live Space: http://kerem-g.spaces.live.com/
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."


  • =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=

    #2
    RE: Process.Start() fails with "The directory name is invalid." = 267

    Possibly the path is not identical between the two users, or possibly the
    second user does not have execute permision on the file (like
    IUSR_MachineNam e). Can you log in as that user and run the process in a
    command window successfully?

    "Kerem Gümrükcü" wrote:
    Hi,
    >
    i have a Process.Start call that fails with 267 Error Code
    if invoked with another user and password other than the
    applications user. It is a ordinary piece of code just create
    a Process Object , fill its StartInfo and then go a process.Start() ,
    It works fine, unless i try to execute the process with another
    user. Why, what do i have to take care of,...i gt the
    267 Win32Exception Code with the Exception thrown,...
    >
    OS is XP Pro, Runtime Host is .NET is v2.0 up2date
    >
    TIA,...
    >
    Regards
    >
    Kerem
    >
    --
    -----------------------
    Beste Grüsse / Best regards / Votre bien devoue
    Kerem Gümrükcü
    Microsoft Live Space: http://kerem-g.spaces.live.com/
    Latest Open-Source Projects: http://entwicklung.junetz.de
    -----------------------
    "This reply is provided as is, without warranty express or implied."
    >
    >
    >

    Comment

    • Kerem Gümrükcü

      #3
      Re: Process.Start() fails with "The directory name is invalid." = 267

      Hi Mike,

      interessting is that everything works fine after
      rebooting the system. I think it was some problem
      with the environment, because i was directly manipullating
      the OS Env. for the Computer,...

      Now everything is ok,...

      Thanks for your reply,...


      Regards

      Kerem

      --
      -----------------------
      Beste Grüsse / Best regards / Votre bien devoue
      Kerem Gümrükcü
      Microsoft Live Space: http://kerem-g.spaces.live.com/
      Latest Open-Source Projects: http://entwicklung.junetz.de
      -----------------------
      "This reply is provided as is, without warranty express or implied."
      "Family Tree Mike" <FamilyTreeMike @discussions.mi crosoft.comschr ieb im
      Newsbeitrag news:CEA6B0FD-01AB-4C96-9701-2F41B4517984@mi crosoft.com...
      Possibly the path is not identical between the two users, or possibly the
      second user does not have execute permision on the file (like
      IUSR_MachineNam e). Can you log in as that user and run the process in a
      command window successfully?
      >
      "Kerem Gümrükcü" wrote:
      >
      >Hi,
      >>
      >i have a Process.Start call that fails with 267 Error Code
      >if invoked with another user and password other than the
      >applications user. It is a ordinary piece of code just create
      >a Process Object , fill its StartInfo and then go a process.Start() ,
      >It works fine, unless i try to execute the process with another
      >user. Why, what do i have to take care of,...i gt the
      >267 Win32Exception Code with the Exception thrown,...
      >>
      >OS is XP Pro, Runtime Host is .NET is v2.0 up2date
      >>
      >TIA,...
      >>
      >Regards
      >>
      >Kerem
      >>
      >--
      >-----------------------
      >Beste Grüsse / Best regards / Votre bien devoue
      >Kerem Gümrükcü
      >Microsoft Live Space: http://kerem-g.spaces.live.com/
      >Latest Open-Source Projects: http://entwicklung.junetz.de
      >-----------------------
      >"This reply is provided as is, without warranty express or implied."
      >>
      >>
      >>

      Comment

      Working...