随笔分类 -  WCF

摘要:It is most likely thatthe Net.Tcp Listener Adapter service hasnot been startedRun "services.msc" 阅读全文
posted @ 2012-12-05 10:49 Leo Tang 阅读(2495) 评论(0) 推荐(0)
摘要:Sample: we have Test folder under the application root, we want to read the connection string in test.config in the Test folder.using System;using System.Collections.Generic;using System.Linq;using System.Runtime.Serialization;using System.ServiceModel;using System.Text;using System.Web;using System 阅读全文
posted @ 2012-12-03 11:23 Leo Tang 阅读(146) 评论(0) 推荐(0)
摘要:Scenario:The test certificates created by MakeCert, something like:makecert.exe -sr LocalMachine -ss MY -a sha1 -n CN=localhost -sky exchange -pemakecert.exe -sr CurrentUser -ss MY -a sha1 -n CN=client -sky exchange -pe1. "Keyset does not exist"It most probably that the process account doe 阅读全文
posted @ 2012-09-28 17:38 Leo Tang 阅读(246) 评论(0) 推荐(0)
摘要:Recently, I wan't to enable WCF message logging for troubleshooting. However, the configuration posted on MSDN site doesn't work for me, neither log file was generated nor error returned.Finally, I tried a lucky configuration section from my collegue. Then, all things comes back, the setting 阅读全文
posted @ 2012-09-14 16:51 Leo Tang 阅读(390) 评论(0) 推荐(0)
摘要:When host WCF service on IIS, you may encounter this issue. Of course we can simply enable Anonymous Authentication on IIS to resolve this issue.However, sometimes we don't want to enable Anonymous Authentication on IIS, then we need to adjust the service security settings to fix this issue. Wha 阅读全文
posted @ 2012-08-08 17:47 Leo Tang 阅读(1046) 评论(0) 推荐(0)
摘要:If we use data contract in WCF, the default soap message looke like:<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header /> <s:Body> <GetDataUsingDataContractResponse xmlns="http://tempuri.org/"> <GetDataUsingDataContractResult xml 阅读全文
posted @ 2012-07-27 15:00 Leo Tang 阅读(266) 评论(0) 推荐(0)
摘要:In .Net4, the <service/> element is optional, it will add the default endpoint.A custom said thathe always encounter an error "Can't find endpoint" <system.serviceModel> <services> <service name="WcfService1.Service1" behaviorConfiguration="WcfServic 阅读全文
posted @ 2012-07-23 16:01 Leo Tang 阅读(164) 评论(0) 推荐(0)