Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show a WCF service "title" for the Attach to Process dialog

What property do I need to set in my Windows hosted WCF services so that a "Title" value will appear in the Debug "Attach to Process" dialog (as in the WcfSvcHost.exe entries below)?:

enter image description here

We are using the ServiceProcessInstaller & ServiceInstaller classes. I tried setting both the ServiceInstaller.DisplayName & ServiceInstaller.DisplayName properties but no change.

like image 716
Gone Coding Avatar asked Feb 02 '26 06:02

Gone Coding


1 Answers

The WcfSvcHost.exe processes are the WCF service host processes started by Visual Studio when you start a debug session within a solution, see http://msdn.microsoft.com/en-us/library/bb552363.aspx. There is no way to specify a title for these processes.

Normally the title column would be filled for applications that host a user interface. For example, look at the Task Manager dialog, Applications tab. The applications shown there do have a title and these are displayed equally in the debug attach process window.

Starting the WCF service hosts by Visual Studio completely bypasses the ServiceProcessInstaller and ServiceInstaller classes, so no chance of getting it in that way. When you start (self) hosting your WCF service in a UI (winforms/WPF) application, you have the best chance of getting the title filled and being able to find your process.

like image 88
kroonwijk Avatar answered Feb 05 '26 00:02

kroonwijk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!