AppFabric Service Bus : net:pipe needs to be specified error.

I’m in the process of hosting my WCF services in IIS/Windows Server AppFabric, whenever I saved the web.config file I can see the following exception in the EventViewer.

WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/61308764
Exception: System.ServiceModel.ServiceActivationException: The service ‘/UI.Web.V2/ServiceManagement.svc’ cannot be activated due to an exception during compilation.  The exception message is: A base address with the uri scheme ‘net.pipe’ needs to be specified if using service management endpoint ‘ServiceManagementNetPipeEndpoint’. Verify a base address exists on the site and the protocol is enabled on the application.. —> System.Configuration.ConfigurationErrorsException: A base address with the uri scheme ‘net.pipe’ needs to be specified if using service management endpoint ‘ServiceManagementNetPipeEndpoint’. Verify a base address exists on the site and the protocol is enabled on the application.

This is because, Windows Server AppFabric automatically adds a magic management service called ServiceManagement.svc to all the configured applications. The Service Management service enhances Windows Server AppFabric management capabilities by providing clients the ability to start services remotely. More details here: http://msdn.microsoft.com/en-us/library/ff383422.aspx

The Service Management Service supports only the net.pipe protocol for bindings. The address of a Service Management Service added to an application conforms to the following address pattern: {scheme}://hostname:port/<application>/ServiceManagement.svc. For example: net.pipe://localhost/VirtualApplicationB/ServiceManagement.svc.

Solution:

Long story short, the quick fix for this issue is to enable net:pipe as shown below in the Advanced Settings of Virtual Directory.

image

About Saravana Kumar

Saravana Kumar is the Founder and CTO of BizTalk360, an enterprise software that acts as an all-in-one solution for better administration, operation, support and monitoring of Microsoft BizTalk Server environments.