The WCF starter kit has WebProtocolException to throw exceptions in WCF. Is this included in .net 4.0?
相关问题
- Design RESTful service with multiple ids
- Axios OPTIONS instead of POST Request. Express Res
- Plain (non-HTML) error pages in REST api
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- Laravel 5.1 MethodNotAllowedHttpException on store
相关文章
- WCF发布Windows服务 POST方式报错 GET方式没有问题 应该怎么解决?
- XCopy or MOVE do not work when a WCF Service runs
- Got ActiveRecord::AssociationTypeMismatch on model
- Multiple parameters in AngularJS $resource GET
- Global Exception Handling in Jersey & Spring?
- Could not find default endpoint element that refer
- The 'DbProviderFactories' section can only
- Do I need to expose a constructor in a WCF DataCon
Please read "Introducing WCF WebHttp Services in .NET 4" (http://blogs.msdn.com/endpoint/archive/2010/01/06/introducing-wcf-webhttp-services-in-net-4.aspx). It is possible to do.
The article "Introducing WCF WebHttp Services in .NET 4" describes native .NET 4.0 features like automatic help page for WCF WEB HTTP service and WebFaultException exceptions (compare with WebProtocolException from WCF REST Starter Kit). In the code examples of the server side are used only native System.ServiceModel.Web.dll and not a Microsoft.ServiceModel.Web.dll from WCF starter kit. Only code example of the client side use Microsoft.Http.dll and Microsoft.Http.Extensions.dll from WCF REST Starter Kit.
One more good reference is http://msdn.microsoft.com/en-us/library/ee354381.aspx
Regards Oleg
No, it's not a native class in .net 4.0