Multiple choice technology programming languages

Windows Communication Foundation service uses the net.tcp transport. You need to ensure that when the server starts, the service starts and continues to run. What should you do?

  1. Host the service in a Windows service

  2. Host the service in a Windows Presentation Foundation application

  3. Host the service under IIS 7.0 by using IIS 6.0 compatibility mode

  4. Host the service under IIS 7.0 by using Windows Activation Services

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

To ensure a net.tcp WCF service starts and runs continuously from boot, hosting in a managed Windows Service is the standard practice. While IIS 7.0 with WAS supports net.tcp, it starts services on-demand rather than starting them automatically at server boot unless specifically configured (like alwaysRunning, but the simple choice here is hosting in a Windows Service). Hosting in WPF is incorrect for headless background execution.