R
Ram
Hey,
I'm trying to use the following code inside an ASP.NET project:
System.Diagnostics.Process objProcess;
objProcess = new System.Diagnostics.Process();
objProcess.StartInfo.FileName=@"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\gacutil.exe";
objProcess.StartInfo.Arguments = " /if c:\MyDLL.dll";
objProcess.StartInfo.RedirectStandardOutput = true;
objProcess.StartInfo.UseShellExecute = false;
objProcess.Start();
return objProcess.StandardOutput.ReadToEnd();
Even though I configured the projects virtual directory to run with a local
Administrator account,
I still get in the standardOutput stream: "Failed Registering Assembly,
Acess Denied"!
And when I mark the lines of the "UseShellExecute" and the
"RedirectStandardOutput" lines,
It works, but I cant get the output of the gacutil!
Thanks ahead
--Ram
I'm trying to use the following code inside an ASP.NET project:
System.Diagnostics.Process objProcess;
objProcess = new System.Diagnostics.Process();
objProcess.StartInfo.FileName=@"c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322
\gacutil.exe";
objProcess.StartInfo.Arguments = " /if c:\MyDLL.dll";
objProcess.StartInfo.RedirectStandardOutput = true;
objProcess.StartInfo.UseShellExecute = false;
objProcess.Start();
return objProcess.StandardOutput.ReadToEnd();
Even though I configured the projects virtual directory to run with a local
Administrator account,
I still get in the standardOutput stream: "Failed Registering Assembly,
Acess Denied"!
And when I mark the lines of the "UseShellExecute" and the
"RedirectStandardOutput" lines,
It works, but I cant get the output of the gacutil!
Thanks ahead
--Ram