If IIS was installed after the .NET Framework 3.5, the service will fail, as IIS does not know how to handle .NET 3.5 applications. This does not prevent the sample from starting, as it does not use aspx.
If you installed IIS after the .NET Framework, you can set up the asp.net IIS registration with one of the following commands:
- Windows 32-bit:
%SYSTEMROOT%\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i
- Windows 64-bit:
%SYSTEMROOT%\Microsoft.NET\Framework64\v2.0.50727\aspnet_regiis.exe -i
You may also need to re-register the Windows Communication Foundation by running one of the following commands:
- Windows 32-bit:
"%windir%\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg.exe" /r /y
- Windows 64-bit:
"%windir%\Microsoft.NET\Framework64\v3.0\Windows Communication Foundation\ServiceModelReg.exe" /r /y