473,703 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 12190
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."
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.mi crosoft.comschr ieb im
Newsbeitrag news:CE******** *************** ***********@mic rosoft.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."

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1563
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 at the bottom of my page. Thanks for the help.
0
2785
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 found this article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;248717 that says the following: ..........................
1
2190
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 available(i.e., Service is stopped), then i have to Start the Service thro' VB.Net Code
0
1418
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)'; SQLServerAgent cannot start) · SQLSERVER runs on LocalSystem account with started up type automatic and successful · Connect to SQL Analyzer: LocalHost, . (period), (local) and blank all successful
5
2902
by: ad | last post by:
HI, How can I start the default web site of my IIS with C#.
2
2861
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 help. Regards, Simon
4
14746
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 applheapsz (which was completed). We have restarted DB2. The query is not too complex. The interesting point is that we ran the query yesterday with no issues. The server we are testing is a new box in which multiple "break DB2" queries were...
8
3938
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 document of the zipfile module, I note that it mentions the file-like object? what does it mean? class ZipFile( file]]) Open a ZIP file, where file can be either a path to a file (a string) or a file-like object.
0
2119
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() App.TaskVisible=True End Sub Private Sub Command2_Click() App.TaskVisible=False End Sub
5
2148
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 emacs-snapshot-gtk root 25649 25357 0 13:55 pts/9 00:00:05 emacs-snapshot-gtk rtp.c
0
8741
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8658
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7842
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6583
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5919
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4674
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3109
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2419
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.