The WCF starter kit has WebProtocolException to throw exceptions in WCF. Is this included in .net 4.0?
Please read the article Introducing WCF WebHttp Services in .NET 4 which describes how WCF in .NET Framework 4 now includes those features like automatic help page for WCF Web HTTP service and WebFaultException
exceptions (compare with WebProtocolException
from the WCF REST Starter Kit for WCF 3.5 from CodePlex).
The server side code examples use only types in System.ServiceModel.Web.dll
and not the Microsoft.ServiceModel.Web.dll
file from the WCF REST Starter Kit).
For client-side code you can continue to use Microsoft.Http.dll and Microsoft.Http.Extensions.dll from the WCF 3.5 WCF REST Starter Kit Preview 2.
Another good article is A Developer's Introduction to Windows Communication Foundation 4