随笔分类 - WCF
摘要:It is most likely thatthe Net.Tcp Listener Adapter service hasnot been startedRun "services.msc"
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号