Is WebProtocolException included in .net 4.0?

醉酒当歌 提交于 2019-12-23 08:35:27

问题


The WCF starter kit has WebProtocolException to throw exceptions in WCF. Is this included in .net 4.0?


回答1:


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




回答2:


No, it's not a native class in .net 4.0



来源:https://stackoverflow.com/questions/1891119/is-webprotocolexception-included-in-net-4-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!