<?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>PreMagination &#187; .NET</title>
	<atom:link href="http://www.premagination.com/tag/net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.premagination.com</link>
	<description>A living document of Drew Loika's... Life, Passions, and Follies</description>
	<lastBuildDate>Thu, 29 Jul 2010 23:29:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WCF Base Address Doesn&#8217;t Match Scheme for Non-HTTP Binding</title>
		<link>http://www.premagination.com/2008/08/09/wcf-base-address-doesnt-match-scheme-for-non-http-binding/</link>
		<comments>http://www.premagination.com/2008/08/09/wcf-base-address-doesnt-match-scheme-for-non-http-binding/#comments</comments>
		<pubDate>Sat, 09 Aug 2008 23:39:56 +0000</pubDate>
		<dc:creator>Drew Loika</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[Seed Core Processor]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[ServiceHost]]></category>
		<category><![CDATA[WCF]]></category>
		<category><![CDATA[web-service]]></category>

		<guid isPermaLink="false">http://www.premagination.com/?p=289</guid>
		<description><![CDATA[While working on the Seed Core Processor code I came across this exception in my WCF code.
An unhandled exception of type &#8216;System.InvalidOperationException&#8217; occurred in System.ServiceModel.dll
Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].
&#8230;
Could not find a base address that matches scheme net.pipe [...]]]></description>
			<content:encoded><![CDATA[<p>While working on the Seed Core Processor code I came across this exception in my WCF code.</p>
<blockquote><p>An unhandled exception of type &#8216;System.InvalidOperationException&#8217; occurred in System.ServiceModel.dll</p>
<p>Could not find a base address that matches scheme net.tcp for the endpoint with binding NetTcpBinding. Registered base address schemes are [http].</p>
<p>&#8230;</p>
<p>Could not find a base address that matches scheme net.pipe for the endpoint with binding NetNamedPipeBinding. Registered base address schemes are [http].</p></blockquote>
<p>Given that my code was copied almost directly out of Microsoft&#8217;s very helpful <a href="http://msdn.microsoft.com/en-us/library/ms734712.aspx">Getting Started Tutorial</a> I was a little confused. </p>
<blockquote><p><code><br />
            Uri BaseAddress = new Uri("net.tcp://localhost/test");</p>
<p>            // Step 1 of the hosting procedure: Create ServiceHost<br />
            ServiceHost SelfHost = new ServiceHost(typeof(SensorServiceProvider), BaseAddress);<br />
            try<br />
            {<br />
                // Step 3 of the hosting procedure: Add a service endpoint(s).               </p>
<p>                ////Named pipe endpoint<br />
                SelfHost.AddServiceEndpoint(<br />
                    typeof(SensorServiceContract),<br />
                    new NetNamedPipeBinding(),<br />
                    "pipe");</p>
<p>                //TCP endpoint<br />
                SelfHost.AddServiceEndpoint(<br />
                    typeof(SensorServiceContract),<br />
                    new NetTcpBinding(),<br />
                    "tcp");</p>
<p>                // Step 4 of the hosting procedure: Enable metadata exchange.<br />
                ServiceMetadataBehavior mex = new ServiceMetadataBehavior();<br />
                mex.HttpGetEnabled = true;<br />
                SelfHost.Description.Behaviors.Add(mex);</p>
<p>                // Step 5 of the hosting procedure: Start the service.<br />
                SelfHost.Open();<br />
            }<br />
</code></p></blockquote>
<p>A good half-hour of Googling turned up a variety of possible causes for this exception, none of which turned out to be my problem. I finally found some sample code that revealed the issue, if you haven&#8217;t noticed already. The base address is using http, but neither the named pipes or tcp endpoints use this protocol. Changing &#8220;http&#8221; to &#8220;net.pipe&#8221; or &#8220;net.tcp&#8221; will enable the named pipes or tcp endpoints, respectively. And so it would appear I need multiple ServiceHost objects to enable named pipe and tcp access to my service concurrently. (Which will require a singleton and more documentation reading.) </p>
<p>Simple enough, but I&#8217;m just starting and it&#8217;s easy to miss stuff like this, so I though I&#8217;d share and hopefully save the next beginner some head scratching time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.premagination.com/2008/08/09/wcf-base-address-doesnt-match-scheme-for-non-http-binding/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SQL Server 2005 Everywhere Edition</title>
		<link>http://www.premagination.com/2006/07/03/sql-server-2005-everywhere-edition/</link>
		<comments>http://www.premagination.com/2006/07/03/sql-server-2005-everywhere-edition/#comments</comments>
		<pubDate>Mon, 03 Jul 2006 20:50:56 +0000</pubDate>
		<dc:creator>Drew Loika</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL-Server-2005-Everywhere]]></category>

		<guid isPermaLink="false">http://www.premagination.com/2006/07/03/sql-server-2005-everywhere-edition/</guid>
		<description><![CDATA[I just discovered a tasty new Microsoft treat, [SQL Server 2005 Everywhere Edition](http://www.microsoft.com/sql/ctp_sqleverywhere.mspx). It&#8217;s super small, portable, and most useful for me, embeddable. Go Microsoft!
From [SteelPrice.net](http://blog.steeleprice.net/archive/2006/06/15/880.aspx)&#8230;
*    Licensing &#8211; Free (essentially the same as SQL Express) now available on XP/2003/Vista as well
*    Database Size Limit &#8211; 4Gb (not set in [...]]]></description>
			<content:encoded><![CDATA[<p>I just discovered a tasty new Microsoft treat, [SQL Server 2005 Everywhere Edition](http://www.microsoft.com/sql/ctp_sqleverywhere.mspx). It&#8217;s super small, portable, and most useful for me, embeddable. Go Microsoft!</p>
<p>From [SteelPrice.net](http://blog.steeleprice.net/archive/2006/06/15/880.aspx)&#8230;</p>
<p>*    Licensing &#8211; Free (essentially the same as SQL Express) now available on XP/2003/Vista as well<br />
*    Database Size Limit &#8211; 4Gb (not set in stone, but most likely)<br />
*    Runtime Size &#8211; 1.4Mb &#8211; running In Process with your App (including Office Apps for VSTO developers)<br />
*    This means no server to install, just some DLLs that are independent from anything else and can just be added/removed without harming any other app on your system.<br />
*    Single Data File(.sdf) &#8211; no transaction log, etc.<br />
*    Sync with a backend SQL Server through Merge &#038; Replication &#8211; (More than just RDA soon)<br />
*    Differencing Tools in the ADO.NET extensions (MergeUpdated(), MergeInserts(), MergeDeletes())<br />
*    Complete control over collision handling so you can choose client wins, Server wins or create a custom solution because you have access to both sides of the colliding row.<br />
*    Multi-connection support so you can run multiple background processes on the same file.<br />
*    Windows can handle the ACL on the file so you can lock the file to a group of domain users, etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.premagination.com/2006/07/03/sql-server-2005-everywhere-edition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2006 Lang.NET Symposium</title>
		<link>http://www.premagination.com/2006/06/29/2006-langnet-symposium/</link>
		<comments>http://www.premagination.com/2006/06/29/2006-langnet-symposium/#comments</comments>
		<pubDate>Fri, 30 Jun 2006 05:49:08 +0000</pubDate>
		<dc:creator>Drew Loika</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Events]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[symposium]]></category>

		<guid isPermaLink="false">http://www.premagination.com/2006/06/29/2006-langnet-symposium/</guid>
		<description><![CDATA[> [2006 Lang.NET Symposium](http://www.langnetsymposium.com) Lang .NET 2006 Symposium is  a forum for discussion on programming languages, managed execution environments, compilers,  multi-language libraries, and integrated development environments. This conference provides an  excellent opportunity for Programming Language Implementers and Researchers from both industry and academia to meet and share their knowledge, experience, and suggestions [...]]]></description>
			<content:encoded><![CDATA[<p>> [2006 Lang.NET Symposium](http://www.langnetsymposium.com) Lang .NET 2006 Symposium is  a forum for discussion on programming languages, managed execution environments, compilers,  multi-language libraries, and integrated development environments. This conference provides an  excellent opportunity for Programming Language Implementers and Researchers from both industry and academia to meet and share their knowledge, experience, and suggestions for future research and development in the area of programming languages.</p>
<p>This looks like a great opportunity for anybody interested in .NET. (Like me!) Too bad I&#8217;m already taking too much time off from work. The website doesn&#8217;t list rates, so it&#8217;s possible it&#8217;s free for attendees. </p>
<p>> If you are a language designer, compiler writer, or tool builder in industry or academia, Lang.NET 2006 is a unique opportunity to directly interact with the architects of Microsoft language platforms.</p>
<p>This would imply that the discussions will be in-depth and technical, but I imagine still interesting for someone without the background.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.premagination.com/2006/06/29/2006-langnet-symposium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
