<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RussTaylor &#187; IIS6</title>
	<atom:link href="http://russtaylor.co.uk/tag/iis6/feed/" rel="self" type="application/rss+xml" />
	<link>http://russtaylor.co.uk</link>
	<description>Things I&#039;ve done, seen, or thought about ...</description>
	<lastBuildDate>Thu, 05 Aug 2010 13:27:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>IIS6 with&#160;Net.TCP</title>
		<link>http://russtaylor.co.uk/2008/07/iis6-with-nettcp/</link>
		<comments>http://russtaylor.co.uk/2008/07/iis6-with-nettcp/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 14:13:45 +0000</pubDate>
		<dc:creator>Russ</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[IIS6]]></category>
		<category><![CDATA[Net.TCP]]></category>
		<category><![CDATA[NetTCPBinding]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[WCF]]></category>

		<guid isPermaLink="false">http://russtaylor.co.uk/?p=43</guid>
		<description><![CDATA[Have you just built a WCF Service under Server 2003/IIS6/VS2008 with a binding to NetTCPBinding, run the service just to get the error: System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http]. at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase [...]]]></description>
			<content:encoded><![CDATA[<p>Have you just built a WCF Service under Server 2003/IIS6/VS2008 with a binding to NetTCPBinding, run the service just to get the error:</p>
<blockquote><p>System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].<br />
at System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses)<br />
at System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1 addBaseAddress)<br />
at System.ServiceModel.ServiceHostBase.ApplyConfiguration()<br />
at System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses)<br />
at System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses)<br />
at Microsoft.Tools.SvcHost.ServiceHostHelper.CreateServiceHost(Type type, ServiceKind kind)<br />
at Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService(ServiceInfo info)</p></blockquote>
<p>I learnt</p>
<blockquote><p><span>You can just add an service endpoint with a netTcpBinding and configure the client to talk to that endpoint using netTcpBinding. You dont need to change anything in the service even though you change the underlying binding in this case as you are using BasicHttpBinding. <em><strong>Please note that if you are using windows 2003 server/IIS 6 or less then you cant use IIS to host net.tcp and would have to self-host either in a service/console app etc.</strong></em></span></p>
<p>eg : you can add a service endpoint at net.tcp://localhost:5050/MyService and point the client to this url and use a netTcpBinding</p>
<p>refer the sample <a title="http://msdn2.microsoft.com/en-us/library/ms752250.aspx" href="http://msdn2.microsoft.com/en-us/library/ms752250.aspx">http://msdn2.microsoft.com/en-us/library/ms752250.aspx</a></p></blockquote>
<p>From <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1136666&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1136666&amp;SiteID=1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://russtaylor.co.uk/2008/07/iis6-with-nettcp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
