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

K

Kerem Gümrükcü

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

--
 
F

Family Tree Mike

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?
 
K

Kerem Gümrükcü

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

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top