Michael Sync

Michael Sync

Crisp, minimal personal blog

14 Mar 2014

WCF Tricks


Error: HTTP Error 404.17 – Not Found

The requested content appears to be script and will not be served by the static file handler.

Solution

.NET 3.0

C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>ServiceModelReg.exe -i

.NET 4.0

C:\Windows\Microsoft.NET\Framework\v4.0.30319>ServiceModelReg.exe -ia

Error: HTTP Error 500.19 – Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.

Solution

Run C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation>ServiceModelReg.exe -i

Error: Could not load type ‘System.ServiceModel.Activation.HttpModule’ from assembly ‘System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’.**

Soluiton

aspnet_regiis -iru