CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2005
    Posts
    4

    How to display MessageBox from WCF service?

    Hello,

    I have WCF service with:

    MessageBox.Show(...);

    But, they're not displaying in Windows Forms client application. How can I make it work?

    Thank you in advance.


    Regards,

    Goran

  2. #2
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: How to display MessageBox from WCF service?

    The WCF Service runs Server Side. It has no associated "Window" and therefore displaying child MessageBox(es) does not make sense. I assume you are doing this for debugging purposes??

    If you are, consider using System.Diagnostics.Debug.WriteLine() and its similar members.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

  3. #3
    Join Date
    Dec 2010
    Posts
    12

    Re: How to display MessageBox from WCF service?

    Use any logging framework to log such exception/messages. You cannot / should not use messagebox at service end.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured