<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>WCF — Attach to Process</title>
    <link>https://devblog.dinobansigan.com/tag:WCF</link>
    <description>Thoughts and Notes on Software Development</description>
    <pubDate>Fri, 13 Nov 2026 03:51:20 +0000</pubDate>
    <image>
      <url>https://i.snap.as/4wmUdb6N.png</url>
      <title>WCF — Attach to Process</title>
      <link>https://devblog.dinobansigan.com/tag:WCF</link>
    </image>
    <item>
      <title>TCP error code 10061: No connection could be made because the target machine actively refused it</title>
      <link>https://devblog.dinobansigan.com/tcp-error-code-10061-no-connection-could-be-made-because-the-target-machine?pk_campaign=rss-feed</link>
      <description>Coworker was getting a TCP error code 10061: No connection could be made because the target machine actively refused it [closed] error, w...</description>
      <content:encoded><![CDATA[<p>Coworker was getting a <code>TCP error code 10061: No connection could be made because the target machine actively refused it [closed]</code> error, while trying to setup an application to run in IIS.</p>

<p>The fix that worked for us can be found here: <a href="http://blogs.ajithbhat.com/2010/06/tcp-error-code-10061-no-connection.html">TCP error code 10061: No connection could be made because the target machine actively refused it 127.0.0.1:808. windows 7</a>.</p>

<p>The fix was basically to check the “Windows Communication Foundation Non-HTTP Activation” checkbox under .NET Framework 3.5 in the Windows Features settings box.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:WCF" class="hashtag"><span>#</span><span class="p-category">WCF</span></a> <a href="https://devblog.dinobansigan.com/tag:TCP" class="hashtag"><span>#</span><span class="p-category">TCP</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/tcp-error-code-10061-no-connection-could-be-made-because-the-target-machine">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/tcp-error-code-10061-no-connection-could-be-made-because-the-target-machine</guid>
      <pubDate>Tue, 31 Aug 2021 03:20:58 +0000</pubDate>
    </item>
    <item>
      <title>Increase WCF Service Call Timeout in ASP.NET Web API Project</title>
      <link>https://devblog.dinobansigan.com/increase-wcf-service-call-timeout-in-asp-net-web-api-project?pk_campaign=rss-feed</link>
      <description>A few months ago, I ran into a situation where I had to increase the timeout for a WCF service call, that my ASP.NET Web API was making. ...</description>
      <content:encoded><![CDATA[<p>A few months ago, I ran into a situation where I had to increase the timeout for a WCF service call, that my ASP.NET Web API was making. It wasn&#39;t as straightforward as just adding configuration to a config file, like you would do with a WCF service. You actually have to do it in code. The answers to the stackoverflow question listed below, helped a lot in figuring out a solution for it.</p>

<p>Link: <a href="https://stackoverflow.com/questions/53046380/how-to-increase-the-timeout-values-for-a-wcf-service-in-a-dot-net-core-2-1-proje">How to increase the timeout values for a WCF service in a dot net core 2.1 project – Stack Overflow</a></p>

<p>In your Web API code, you can create a partial class for the WCF client you are trying to call. In that class, you should be able to get to the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.description.serviceendpoint?view=dotnet-plat-ext-5.0">Endpoint</a> object. This object allows you get to the WCF bindings where you can set the timeout values. Then you can do something similar to the code I have below to set the timeouts.</p>

<pre><code class="language-c">TimeSpan timeSpan = new TimeSpan(hours: 0, minutes: 0, seconds: timeoutInSeconds);
Endpoint.Binding.CloseTimeout = timeSpan;
Endpoint.Binding.OpenTimeout = timeSpan;
Endpoint.Binding.ReceiveTimeout = timeSpan;
Endpoint.Binding.SendTimeout = timeSpan;
</code></pre>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:AspDotNet" class="hashtag"><span>#</span><span class="p-category">AspDotNet</span></a> <a href="https://devblog.dinobansigan.com/tag:AspDotNetWebApi" class="hashtag"><span>#</span><span class="p-category">AspDotNetWebApi</span></a> <a href="https://devblog.dinobansigan.com/tag:WCF" class="hashtag"><span>#</span><span class="p-category">WCF</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/increase-wcf-service-call-timeout-in-asp-net-web-api-project">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/increase-wcf-service-call-timeout-in-asp-net-web-api-project</guid>
      <pubDate>Mon, 12 Jul 2021 17:30:22 +0000</pubDate>
    </item>
    <item>
      <title>Where to find the WCF TestClient Application</title>
      <link>https://devblog.dinobansigan.com/where-to-find-the-wcf-testclient-application?pk_campaign=rss-feed</link>
      <description>When you just want to do a simple WCF service test, you don&#39;t need to download third party tools. You can use the WCF Test Client app tha...</description>
      <content:encoded><![CDATA[<p>When you just want to do a simple WCF service test, you don&#39;t need to download third party tools. You can use the WCF Test Client app that usually comes as part of a Visual Studio installation. I keep forgetting where to find it, so I&#39;m writing it down on here to remind myself.</p>

<p>I had Visual Studio 2017 installed on my PC. Here is where I found the WCF Test Client app (WcfTestClient.exe):</p>

<p><code>C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE</code></p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:WCF" class="hashtag"><span>#</span><span class="p-category">WCF</span></a> <a href="https://devblog.dinobansigan.com/tag:DotNet" class="hashtag"><span>#</span><span class="p-category">DotNet</span></a> <a href="https://devblog.dinobansigan.com/tag:VisualStudio" class="hashtag"><span>#</span><span class="p-category">VisualStudio</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/where-to-find-the-wcf-testclient-application">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/where-to-find-the-wcf-testclient-application</guid>
      <pubDate>Sat, 22 Aug 2020 23:00:00 +0000</pubDate>
    </item>
    <item>
      <title>WCF BindingConfiguration Error</title>
      <link>https://devblog.dinobansigan.com/wcf-bindingconfiguration-error?pk_campaign=rss-feed</link>
      <description>A week ago I was running a test and kept running into a WCF BindingConfiguration Error. I would not allow myself to check-in my code unle...</description>
      <content:encoded><![CDATA[<p>A week ago I was running a test and kept running into a WCF BindingConfiguration Error. I would not allow myself to check-in my code unless my tests passed. So, I battled with this error for over an hour.</p>

<blockquote><p>The binding at system.serviceModel/bindings/basicHttpBinding does not have a configured binding named ‘BasicHttpBinding_IXXXXXX’. This is an invalid value for bindingConfiguration.</p></blockquote>

<p><em>It&#39;s your basic, run of the mill, WCF BasicHttpBinding configuration error.</em></p>

<p>I double-checked my test project&#39;s app.config file and the relevant client.config files – everything looked right. I know it was a configuration issue. The error message itself made it obvious that it was a configuration issue. But everything looked right. I didn&#39;t see any issues with the config files I was looking at.</p>

<p><em>It must be noted that it was already close to midnight at this point. I was working late that day and decided to push myself by resolving to check-in my changes before the night ends. I have no doubt that being tired and sleepy didn&#39;t help.</em></p>

<p>Anyway, after awhile I realized that the service method that I was trying to test, was running inside another service. So, in addition to the test project’s app.config file, I also needed to double-check that other service’s Web.config file. When I ran into this error earlier that night, I actually updated that other Web.config file. I added the entry it needed just to cover my bases. I didn&#39;t know then that it was the Web.config file that was causing the error.</p>

<p>For some reason, possibly due to fatigue and needing sleep, I didn&#39;t think about checking that Web.config file again. Out of frustration, I decided to take a break and headed to the kitchen to drink a glass of water. After hanging out in the kitchen for a bit, then listening to some good music, I finally had the bright idea to check this other Web.config file again. And there it was, a typo on the BasicHttpBinding entry I added. Can&#39;t believe I didn&#39;t check on it sooner.</p>

<p>Lesson learned here is to take a break whenever you&#39;re stuck with a problem. Give your mind time to rest. Chances are, your subconscious will kick in and tell you what to try next. And if the problem points to a configuration issue, with WCF, it most likely is. So, check all the config files, again.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:WCF" class="hashtag"><span>#</span><span class="p-category">WCF</span></a> <a href="https://devblog.dinobansigan.com/tag:CSharp" class="hashtag"><span>#</span><span class="p-category">CSharp</span></a> <a href="https://devblog.dinobansigan.com/tag:DotNet" class="hashtag"><span>#</span><span class="p-category">DotNet</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/wcf-bindingconfiguration-error">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/wcf-bindingconfiguration-error</guid>
      <pubDate>Tue, 18 Aug 2020 23:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>