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.

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


Need Your Help

What should be the common data type across all the database

mysql sql sql-server oracle sas

Currently I am developing an application with back end MySQL but in future I need to write all my business logic to work with SAS.

Reseting DOM After AJAX Request

php javascript jquery ajax

I am trying to implement a search functionality powered by an AJAX requests on this site here

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.