By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,236 Members | 1,809 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,236 IT Pros & Developers. It's quick & easy.

Using Proces Returns ComponentModel32 Exception

P: n/a
I'm trying to the "gacutil" exec to register an assembly form an aspx file
using the Process Object.
Here's the code:
Process objProc;

objProc = new Process();

objProc.StartInfo.FileName = "gacutil.exe";

objProc.StartInfo.WorkingDirectory =
@"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322" ;

objProc.StartInfo.Arguments = @"/if c:\aaa.dll";

objProc.StartInfo.RedirectStandardOutput = true;

objProc.StartInfo.UseShellExecute = false;



When getting to the "start" line, I get the following Exception:
"System.ComponentModel32.Win32Exception: The System Cannot Find The File
But!, when I remove the - "RedirectStandardOutput" and the "UseShellExecute"
lines, the function works like a charm!
Any ideas would be greate!
Thanks ahead

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.