Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
AnswerRe: Web Application Timeout Pin
T M Gray1-Dec-10 5:51
T M Gray1-Dec-10 5:51 
GeneralRe: Web Application Timeout Pin
MWRivera1-Dec-10 6:26
MWRivera1-Dec-10 6:26 
GeneralRe: Web Application Timeout Pin
MWRivera1-Dec-10 6:28
MWRivera1-Dec-10 6:28 
GeneralRe: Web Application Timeout Pin
Dave Kreskowiak1-Dec-10 7:16
mveDave Kreskowiak1-Dec-10 7:16 
GeneralRe: Web Application Timeout Pin
MWRivera2-Dec-10 3:47
MWRivera2-Dec-10 3:47 
GeneralRe: Web Application Timeout Pin
Dave Kreskowiak2-Dec-10 12:55
mveDave Kreskowiak2-Dec-10 12:55 
GeneralRe: Web Application Timeout Pin
MWRivera3-Dec-10 4:52
MWRivera3-Dec-10 4:52 
QuestionExecute And wait Pin
JDM67631-Dec-10 5:08
JDM67631-Dec-10 5:08 
I'm using the following code to run REGASM.EXE to register and create TLB files for some .NET assemblies. The output message indicates that the registration of each assembly was successful however since they are under an installation folder in C:\Program Files, the output message from REGASM doesn't show the full path of the assembly that was registered or exported as a tlb. It just shows 'C:\Program'. Is there any way to fix the output message so that it shows the full path?

private static bool ExecuteAndWait(string _FileToExecute, string _CommandLine, ref string _outputMessage, ref string _errorMessage)
{

    Process p = null;

    try
    {
        p= new Process();
        p.StartInfo.FileName = _FileToExecute;
        p.StartInfo.Arguments = _CommandLine;
        p.StartInfo.RedirectStandardError = true;
        p.StartInfo.RedirectStandardOutput = true;
        p.StartInfo.UseShellExecute = false;
        p.StartInfo.CreateNoWindow = false;
        p.Start();

        _errorMessage = p.StandardError.ReadToEnd();
        p.WaitForExit();

        _outputMessage = p.StandardOutput.ReadToEnd();
        p.WaitForExit();

        if (p.ExitCode != 0)
        {
            return false;
        }

        return true;
    }
    catch (Win32Exception _Win32Exception)
    {
        // Error .
        Console.WriteLine("Win32 Exception caught in process: {0}", _Win32Exception.ToString());
        return false;
    }
    catch (Exception _Exception)
    {
       // Error .
        Console.WriteLine("Exception caught in process: {0}", _Exception.ToString());
        return false;
    }
    finally
    {
        // close process and do cleanup .
        p.Close();
        p.Dispose();
        p = null;
    }
}

AnswerRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 5:32
Jacob D Dixon1-Dec-10 5:32 
GeneralRe: Execute And wait Pin
JDM67631-Dec-10 6:10
JDM67631-Dec-10 6:10 
GeneralRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 7:26
Jacob D Dixon1-Dec-10 7:26 
GeneralRe: Execute And wait Pin
JDM67631-Dec-10 8:09
JDM67631-Dec-10 8:09 
GeneralRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 8:33
Jacob D Dixon1-Dec-10 8:33 
GeneralRe: Execute And wait [modified] Pin
JDM67631-Dec-10 9:49
JDM67631-Dec-10 9:49 
GeneralRe: Execute And wait Pin
Jacob D Dixon1-Dec-10 11:05
Jacob D Dixon1-Dec-10 11:05 
GeneralRe: Execute And wait Pin
Dalek Dave3-Dec-10 5:35
professionalDalek Dave3-Dec-10 5:35 
AnswerRe: Execute And wait Pin
Luc Pattyn1-Dec-10 6:06
sitebuilderLuc Pattyn1-Dec-10 6:06 
AnswerRe: Execute And wait Pin
PIEBALDconsult1-Dec-10 8:08
mvePIEBALDconsult1-Dec-10 8:08 
GeneralRe: Execute And wait Pin
JDM67631-Dec-10 8:14
JDM67631-Dec-10 8:14 
Questionregistration form Pin
AISIDA AKINWALE MAYOMI1-Dec-10 3:34
AISIDA AKINWALE MAYOMI1-Dec-10 3:34 
AnswerRe: registration form Pin
Pete O'Hanlon1-Dec-10 3:43
mvePete O'Hanlon1-Dec-10 3:43 
AnswerRe: registration form Pin
Henry Minute1-Dec-10 3:45
Henry Minute1-Dec-10 3:45 
AnswerRe: registration form Pin
musefan1-Dec-10 3:54
musefan1-Dec-10 3:54 
QuestionWindows Tab Control Flickering Pin
vishnukamath1-Dec-10 1:37
vishnukamath1-Dec-10 1:37 
AnswerRe: Windows Tab Control Flickering Pin
Abhinav S1-Dec-10 1:42
Abhinav S1-Dec-10 1:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.