gpt4 book ai didi

wcf - .net 4.0 中是否包含 WebProtocolException?

转载 作者:行者123 更新时间:2023-12-04 11:45:42 26 4
gpt4 key购买 nike

WCF 入门工具包具有 WebProtocolException 以在 WCF 中引发异常。这是否包含在 .net 4.0 中?

最佳答案

请阅读“Introducing WCF WebHttp Services in .NET 4”(http://blogs.msdn.com/endpoint/archive/2010/01/06/introducing-wcf-webhttp-services-in-net-4.aspx)。这是可能的。

“在 .NET 4 中介绍 WCF WebHttp 服务”一文描述了 native .NET 4.0 WCF WEB HTTP 服务的自动帮助页面和 WebFaultException 异常等功能(与 WCF REST Starter Kit 中的 WebProtocolException 相比)。在服务器端的代码示例中仅使用 本地 System.ServiceModel.Web.dll 和 不是 来自 WCF 入门工具包的 Microsoft.ServiceModel.Web.dll。只有客户端的代码示例使用 WCF REST Starter Kit 中的 Microsoft.Http.dll 和 Microsoft.Http.Extensions.dll。

另一个很好的引用是 http://msdn.microsoft.com/en-us/library/ee354381.aspx

问候
奥列格

关于wcf - .net 4.0 中是否包含 WebProtocolException?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1891119/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com