Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to programmatically check WCF Http/Non-Http Activation components?

I need to detect if WCF Http/Non-Http Activation Components is installed during the installation of my product. How can I do so?

Thanks.

like image 941
Dmitrii Avatar asked Dec 03 '10 12:12

Dmitrii


1 Answers

For IIS7, check the following Registry Key:

HKEY_LOCAL_MACHINE\Software\Microsoft\InetStp\Components\

For the following components:

  • Process Model - ProcessModel
  • .NET Environment - NetFxEnvironment
  • Configuration APIs - WASConfigurationAPI

From this page: http://learn.iis.net/page.aspx/135/discover-installed-components/

UPDATE: Since the above is true even when the components are not installed, try running this command from the command line:

sc query nettcpactivator

If the service is stopped or does not exist, the WCF Non-HTTP Activation components are likely not installed. To install them, run this command:

pkgmgr /iu: WCF-NonHTTP-Activation

Source: http://blogs.msdn.com/b/drnick/archive/2010/05/11/debugging-a-missing-hostedtransportconfiguration-type.aspx

like image 167
DarrellNorton Avatar answered Sep 29 '22 11:09

DarrellNorton