Re: System.Console.WriteLine question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Thomas P. Skinner [MVP] (tom_at_bu.edu)
Date: 11/24/04


Date: Wed, 24 Nov 2004 16:06:19 -0500

Unfortunately I don't think you can use Console. Apparently standard input
and standard output are not mapped to the console for an ASP.NET
application. I would suggest opening a file and writing to the file for
logging purposes. I ran into this issue some time ago. You are not missing
anything.

Thomas P. Skinner [MVP]

"newsgroupie" <newsgroupie@nospam.com> wrote in message
news:QRXH9uBbLPpBdwVa@rjmeltd.demon.co.uk...
> Hi Newsgroupies,
>
> I'm writing a Web Forms program using C# (VS.NET 2003) and trying to
> monitor it whilst running using "System.Console.WriteLine(<params>)" but
> can't for the life of me find where it outputs too.
>
> Am I thick or just unlucky?
>
> Please help!
>
> Lost & Bewildered, UK
>
> Ps: Back in the good old days we had something called "TRACE" ;-)



Relevant Pages

  • Re: System.Console.WriteLine question
    ... Thomas P. Skinner [MVP] wrote: ... Apparently standard input ... > and standard output are not mapped to the console for an ASP.NET ...
    (microsoft.public.dotnet.languages.csharp)
  • FAQ Where did my console output go?
    ... into standard output, the output doesn't show in the screen. ... you should open a console before outputting anything ... The operating system opens up a console for all programs that ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • FAQ Where did my console output go?
    ... into standard output, the output doesn't show in the screen. ... happens in windows systems since quite a long time. ... you should open a console before outputting anything ... The operating system opens up a console for all programs that ...
    (comp.lang.c)
  • Re: Redirecting standard output
    ... Is there a way to redirect the standard output, so that command like ... puts write to a file instead of the console? ...
    (comp.lang.ruby)
  • Re: Process RedirectStandardInput
    ... I can send you a console application that reads botht he standard output and ... > Thanks Professionals ...
    (microsoft.public.dotnet.languages.csharp)