Compartir a través de


WCF: Non HTTP Activation service installation issue

 

Problem Statement:  

We have a server machine where Net.Pipe Listener Adapter, Net.Tcp Listener Adapter services are deleted while in the server machine these services were running fine. When we observed that these services are disabled, we tried to enable the services but we got a pop up that these services are marked for deletion. Also, it asks the server to be rebooted but being the production server reboot is not possible.  

Analysis:  

As soon as you will try to install these services it will give you errors. Event Logs will show you following logs: 

Event Logs:  

 

<Event Xml:   

<Event xmlns="schemas.microsoft.com/win/2004/08/events/event">   

  <System>   

    <Provider Name="Microsoft-Windows-ServerManager" Guid="{8C474092-13E4-430E-9F06-5B60A529BF38}" />   

    <EventID>1616</EventID>   

    <Version>0</Version>   

    <Level>2</Level>   

    <Task>0</Task>  

    <Opcode>0</Opcode>   

    <Keywords>0x4000000000000000</Keywords>   

    <TimeCreated SystemTime="2014-05-20T20:07:31.733425000Z" />   

    <EventRecordID>1182</EventRecordID>   

    <Correlation />   

    <Execution ProcessID="6172" ThreadID="5668" />   

    <Channel>Setup</Channel>   

  <Computer>Ashu-16.fareast.corp.microsoft.com</Computer>   

    <Security UserID="S-1-5-21-4070693332-1989359676-1502584706-1204" />   

  </System>   

  <UserData>   

    <EventXML xmlns:auto-ns3="schemas.microsoft.com/win/2004/08/events" xmlns="Event_NS">   

      <message>   

Features:   

.NET Framework 3.5.1 Features  

   Error: Attempt to install Non-HTTP Activation failed with error code 0x80070643. Fatal error during installation  

   Error: Attempt to install HTTP Activation failed with error code 0x80070643. Fatal error during installation 

   The following features were not installed:   

      WCF Activation  

      HTTP Activation  

      Non-HTTP Activation

 

Windows Process Activation Service  

   Error: Attempt to install .NET Environment failed with error code 0x80070643. Fatal error during installation  

   Error: Attempt to install Configuration APIs failed with error code 0x80070643. Fatal error during installation  

   Error: Attempt to install Process Model failed with error code 0x80070643. Fatal error during installation  

   The following features were not installed:   

   Process Model  

   .NET Environment  

   Configuration APIs  

</message>   

      <identifiers>221, 222, 223, 41, 219, 218, 217</identifiers>   

    </EventXML>   

  </UserData>   

</Event>   

 

Resolution:  

So it is clear that WCF Non Http Activation installation is failing. Let us try again and try to see the messages that system generates when we try to install these. 

Perform following steps: 

  • Open Control Panel
  • Windows Feature Turn on/Off console
  • Opened Microsoft.Net Framework 3.5.1
  • Non HTTP Activation

 

You will get the following error message immediately. 

Error: You cannot activate this unless you activate Window Process Activation Service 

    • .Net Environment

    • Configuration API

    • Process Model 

So to install the above components follow the steps as shown below: 

  • Reach to Windows Feature Turn on/Off console
  • Window Process Activation Service
  • Check the following components
    • .Net Environment
    • Configuration API
    • Process Model

 

Then, 

  • Open Control Panel and reach to Windows Feature Turn on/Off console-
  • Open Microsoft.Net Framework 3.5.1
  • HTTP Activation
  • Non HTTP Activation 

It will install and enabled the deleted services. Below event log confirms the success.

 

Log Name: Setup  

Source: Microsoft-Windows-ServerManager  

Date: 5/29/2014 11:06:54 AM  

Event ID: 1610  

Task Category: None  

Level: Information  

Keywords:  

User: FAREAST\astripa  

Computer: Ashu-16.fareast.corp.microsoft.com 

Description:   

Installation succeeded.   

Features:   

.NET Framework 3.5.1 Features  

   The following features were installed:   

 WCF Activation  

 HTTP Activation  

 Non-HTTP Activation 

 

Windows Process Activation Service  

   The following features were installed:   

   Process Model  

   .NET Environment  

   Configuration APIs 

 

Event Xml:   

<Event xmlns="schemas.microsoft.com/win/2004/08/events/event">   

  <System>   

    <Provider Name="Microsoft-Windows-ServerManager" Guid="{8C474092-13E4-430E-9F06-5B60A529BF38}" />   

    <EventID>1610</EventID>   

    <Version>0</Version>

    <Level>4</Level>   

    <Task>0</Task>   

    <Opcode>0</Opcode>   

    <Keywords>0x4000000000000000</Keywords>   

    <TimeCreated SystemTime="2014-05-29T15:06:54.505819800Z" />   

    <EventRecordID>1194</EventRecordID>   

    <Correlation />   

    <Execution ProcessID="6772" ThreadID="7048" />   

    <Channel>Setup</Channel>   

    <Computer>Ashu-16.fareast.corp.microsoft.com</Computer>   

    <Security UserID="S-1-5-21-1708537768-1580818891-725345543-27522" />   

  </System>   

  <UserData>   

    <EventXML xmlns:auto-ns3="schemas.microsoft.com/win/2004/08/events" xmlns="Event_NS">   

      <message>   

Features:   

.NET Framework 3.5.1 Features  

   The following features were installed:   

      WCF Activation  

      HTTP Activation  

      Non-HTTP Activation  

Windows Process Activation Service  

   The following features were installed:   

   Process Model  

   .NET Environment  

   Configuration APIs 

 

</message>   

      <identifiers>41, 219, 218, 217, 221, 222, 223</identifiers>   

    </EventXML>   

  </UserData>   

</Event>

 

So this will install the required services without rebooting the server. Correct steps are mandatory to install the required service.  

Hope this Helps.

 

 

Ashutosh Tripathi (MSFT)

Microsoft (India)