471,317 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,317 software developers and data experts.

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."
Jun 27 '08 #1
2 11737
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_MachineName). 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."
Jun 27 '08 #2
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" <Fa************@discussions.microsoft.comschrieb im
Newsbeitrag news:CE**********************************@microsof t.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_MachineName). 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."

Jun 27 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Solution Seeker | last post: by
reply views Thread by kmounkhaty | last post: by
8 posts views Thread by =?utf-8?B?5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.