随笔分类 -  Wcf

WCF IIS 寄宿问题
摘要:在客户端不使用配置文件,通过写代码的方式调用寄宿在IIS上Wcf服务的时候,出现一个比较奇怪的问题。客户端的代码如下:Binding httpBinding = new BasicHttpBinding();EndpointAddress httpAddressIISHost = new EndpointAddress("http://localhost/wcfservices/CalculatorService.svc");using (Client iisClient = new Client(httpBinding, httpAddressIISHost)) { .. 阅读全文
posted @ 2012-02-23 23:09 细小猛 阅读(676) 评论(0) 推荐(0)
Wcf IIS 寄宿
摘要:最近打算开始学习一下wcf,做了一个简单的例子,但是发现使用IIS发布WCF服务总是不能成功。出现以下错误。 1 Server Error in '/wcfservices' Application. 2 -------------------------------------------------------------------------------- 3 4 The contract name 'Contracts.ICalculators' could not be found in the list of contracts implement 阅读全文
posted @ 2012-02-20 23:17 细小猛 阅读(1008) 评论(0) 推荐(0)