Hi,
Just upgraded to version 8 because loading of app.config, while executing an assembly, is needed.
Two problems arise now:
1: The result is ALWAYS successful - even if the assembly return by throwing an exception
2: I can't get any output (std output) out, if the execution is successful.
I have tried the following in app.config:
<system.diagnostics>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="fileTraceListener" type="Microsoft.VisualBasic.Logging.FileLogTraceListener, Microsoft.VisualBasic,Version=10.0.0.0,Culture=Neutral, PublicKeyToken=b03f5f7f11d50a3a" location="ExecutableDirectory" LogFileCreationSchedule="Daily" autoflush="true" BaseFileName="LogFrameworkLog" MaxFileSize="100000000" />
</listeners>
</trace>
</system.diagnostics>
And the following in code:
Trace.Listeners.Add(new ConsoleTraceListener());
Trace.Listeners.Add(new TextWriterTraceListener());
Console.OutputEncoding = new System.Text.UTF8Encoding(true);
and
Console.WriteLine("EventTemporaryForVisualCron entered");
Console.Error.WriteLine("EventTemporaryForVisualCron entered"); //This works to error output
Trace.WriteLine("EventTemporaryForVisualCron entered");
Thanks
BR
Peter
Edited by moderator
2015-12-30T19:34:29Z
|
Reason: Not specified