show output in console window from remote object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Saumitra Kumar Paul
    New Member
    • Aug 2010
    • 12

    show output in console window from remote object

    Dear Friend,

    I am trying a .Net remoting project hosted in a console application.
    I have the following code in remote object class.

    Code:
    Public Class ServerTime
        Inherits MarshalByRefObject
    
        Public Function ServerTime() As String
                Dim ServerDateAndTime As DateTime = DateTime.Now
                Console.WriteLine(ServerDateAndTime.ToString)
                Return ServerDateAndTime.ToString
        End Function
    End Class

    I want to show the output in the host console window before sending to client application. But Console.WriteLi ne() is not showing anything in host window.

    Would you please suggest me how it is possible?

    Regards,
    SKPaul
Working...