473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 12132
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Seth | last post by:
Pretty straight forward. Reason I'm asking is because I'm not sure if I should explicitly close my recordset and database connections before each redirect or get away with having a one time close...
0
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I...
1
by: Solution Seeker | last post by:
Hi, we are using MSDE as our Database Now we have a Validation to check the MSDE availability If Database Connectivity fails, I need to check the MSDE availability If MSDE is not...
0
by: kmounkhaty | last post by:
Hi Guru, I'm tired of trouleshoot one of my sql box that the sqlagent can't started. Here is the message: SQLServerAgent could not be started (reason: Unable to connect to server '(local)';...
5
by: ad | last post by:
HI, How can I start the default web site of my IIS with C#.
2
by: Simon | last post by:
Dear reader, How to start the event "Activate" in a report as the report is a sub report. By opening the main report the event "Activate" in the sub report is not actived.. Thanks for any...
4
by: Justin | last post by:
Recieved the message: SQL0954C Not enough storage is available in the application heap to process the statement. SQLSTATE=57011 After viewing other posts, they recommended changing the...
8
by: =?utf-8?B?5Lq66KiA6JC95pel5piv5aSp5rav77yM5pyb5p6B | last post by:
I made a C/S network program, the client receive the zip file from the server, and read the data into a variable. how could I process the zipfile directly without saving it into file. In the...
0
by: Asad Asad | last post by:
How can I hide a process name in Taskmanager,in Visual Basic 6.0? I can hide/unhide a application(which is running) name in taskmanager by using following code: Private Sub Command1_Click()...
5
by: herman | last post by:
Hi, I would like to find out all the process id with the process name 'emacs'. In the shell, i can do this: $ ps -ef |grep emacs root 20731 8690 0 12:37 pts/2 00:00:09...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.