包括在.NET 4.0 WebProtocolException? [英] Is WebProtocolException included in .net 4.0?

查看:76
本文介绍了包括在.NET 4.0 WebProtocolException?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WCF入门工具包具有WebProtocolException抛出异常的WCF。难道这包括在.NET 4.0中?

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

推荐答案

请阅读<一href="http://blogs.msdn.com/endpoint/archive/2010/01/06/introducing-wcf-webhttp-services-in-net-4.aspx"相对=nofollow>在.NET 4 介绍WCF WebHttp服务(<一href="http://blogs.msdn.com/endpoint/archive/2010/01/06/introducing-wcf-webhttp-services-in-net-4.aspx" rel="nofollow">http://blogs.msdn.com/endpoint/archive/2010/01/06/introducing-wcf-webhttp-services-in-net-4.aspx).这是可能做到的。

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.

文章在.NET 4中引入WCF WebHttp服务介绍本机.NET 4.0 像WCF WEB HTTP服务和WebFaultException异常(与WCF REST入门套件WebProtocolException比较)自动帮助页面功能。在服务器端的code实例只用于本地 System.ServiceModel.Web.dll 不是 微软.ServiceModel.Web.dll 的从WCF入门套件。客户端只使用code例子的 Microsoft.Http.dll Microsoft.Http.Extensions.dll从WCF REST初学者工具包的。

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.

还有一个很好的参考, http://msdn.microsoft.com/en -us /库/ ee354381.aspx

One more good reference is http://msdn.microsoft.com/en-us/library/ee354381.aspx

问候 奥列格

这篇关于包括在.NET 4.0 WebProtocolException?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆