<?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>The Iterator &#187; visual studio</title>
	<atom:link href="http://theiterator.com/tag/visual-studio/feed/" rel="self" type="application/rss+xml" />
	<link>http://theiterator.com</link>
	<description>This is my blog. There are many like it, but this one is mine.</description>
	<lastBuildDate>Fri, 23 Sep 2011 06:35:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>&#8220;Value does not fall within the expected range&#8221; while opening a file in Visual Studio 2008</title>
		<link>http://theiterator.com/2010/11/value-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008/</link>
		<comments>http://theiterator.com/2010/11/value-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008/#comments</comments>
		<pubDate>Thu, 04 Nov 2010 10:07:58 +0000</pubDate>
		<dc:creator>theiterator</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tfs]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://theiterator.com/?p=117</guid>
		<description><![CDATA[I came across a curious problem a couple of days ago. Visual Studio greeted me with a &#8220;Value does not fall within the expected range&#8221; when trying to open some of the configuration and text files in one of my solutions. This occurred even if I closed the solution and tried to open the individual [...]]]></description>
			<content:encoded><![CDATA[<p>I came across a curious problem a couple of days ago. Visual Studio greeted me with a &#8220;<em>Value does not fall within the expected range&#8221; </em>when trying to open some of the configuration and text files in one of my solutions.</p>
<p>This occurred even if I closed the solution and tried to open the individual files. ProcessMonitor.exe revealed nothing. Disabling plugins didn&#8217;t help. Deleting .suo and .user files didn&#8217;t help.</p>
<p>Googling for a solution revealed a couple of patterns. People were getting this either in VB.NET Windows Forms projects, profiling C++ applications or trying to open TFS work items. The latter resonated. TFS, my long-time nemesis, we meet in battle again.</p>
<p>I tried <strong>removing the local path mapping for the project in my TFS workspace, deleted the folder and recreated the mapping</strong>. Win.</p>
<p class="bookmark-me"><a title="technorati.com" href="http://www.technorati.com/faves?add=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/technorati.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F&amp;title=%26%238220%3BValue+does+not+fall+within+the+expected+range%26%238221%3B+while+opening+a+file+in+Visual+Studio+2008"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/delicious.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="stumbleupon.com" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F&amp;title=%26%238220%3BValue+does+not+fall+within+the+expected+range%26%238221%3B+while+opening+a+file+in+Visual+Studio+2008"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/stumbleupon.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="digg.com" href="http://digg.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F&amp;title=%26%238220%3BValue+does+not+fall+within+the+expected+range%26%238221%3B+while+opening+a+file+in+Visual+Studio+2008"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/digg.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="www.facebook.com" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F&amp;t=%26%238220%3BValue+does+not+fall+within+the+expected+range%26%238221%3B+while+opening+a+file+in+Visual+Studio+2008"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/facebook.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="reddit.com" href="http://reddit.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F&amp;title=%26%238220%3BValue+does+not+fall+within+the+expected+range%26%238221%3B+while+opening+a+file+in+Visual+Studio+2008"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/reddit.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="twitthis.com" href="http://twitthis.com/twit?url=http%3A%2F%2Ftheiterator.com%2F2010%2F11%2Fvalue-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008%2F&amp;title=%26%238220%3BValue+does+not+fall+within+the+expected+range%26%238221%3B+while+opening+a+file+in+Visual+Studio+2008"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/twitter.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://theiterator.com/2010/11/value-does-not-fall-within-the-expected-range-while-opening-a-file-in-visual-studio-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to nest NHibernate mapping files in Visual Studio projects</title>
		<link>http://theiterator.com/2009/02/how-to-nest-nhibernate-mapping-files-in-visual-studio-projects/</link>
		<comments>http://theiterator.com/2009/02/how-to-nest-nhibernate-mapping-files-in-visual-studio-projects/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 16:13:19 +0000</pubDate>
		<dc:creator>theiterator</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[nhibernate]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://theiterator.com/?p=65</guid>
		<description><![CDATA[Nesting files in Visual Studio projects is as simple as (pun intended) opening your project file into a text editor, finding your reference to a project file and adding &#60;DependentUpon&#62;Class.cs&#60;/DependentUpon&#62; within the element. However, there&#8217;s a catch. Nesting the files causes the file names to be overwritten. In this case, the .hbm.xml suffix gets dropped. [...]]]></description>
			<content:encoded><![CDATA[<p>Nesting files in Visual Studio projects is as simple as (pun intended) opening your project file into a text editor, finding your reference to a project file and adding &lt;DependentUpon&gt;Class.cs&lt;/DependentUpon&gt; within the element.</p>
<p>However, there&#8217;s a catch. Nesting the files causes the file names to be overwritten. In this case, the .hbm.xml suffix gets dropped. That effectively prevents Configuration.AddAssembly() from finding the mapping information. A way around this pitfall is defining the dependency as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;EmbeddedResource</span> <span style="color: #000066;">include</span>=<span style="color: #ff0000;">&quot;ServiceRequest.hbm.xml&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;DependentUpon<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ServiceRequest.cs<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/DependentUpon<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;LogicalName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ServiceRequest.hbm.xml<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/LogicalName<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/EmbeddedResource<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Thanks go to Sami for cracking this nut with me.</p>
<p class="bookmark-me"><a title="technorati.com" href="http://www.technorati.com/faves?add=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/technorati.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F&amp;title=How+to+nest+NHibernate+mapping+files+in+Visual+Studio+projects"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/delicious.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="stumbleupon.com" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F&amp;title=How+to+nest+NHibernate+mapping+files+in+Visual+Studio+projects"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/stumbleupon.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="digg.com" href="http://digg.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F&amp;title=How+to+nest+NHibernate+mapping+files+in+Visual+Studio+projects"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/digg.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="www.facebook.com" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F&amp;t=How+to+nest+NHibernate+mapping+files+in+Visual+Studio+projects"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/facebook.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="reddit.com" href="http://reddit.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F&amp;title=How+to+nest+NHibernate+mapping+files+in+Visual+Studio+projects"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/reddit.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="twitthis.com" href="http://twitthis.com/twit?url=http%3A%2F%2Ftheiterator.com%2F2009%2F02%2Fhow-to-nest-nhibernate-mapping-files-in-visual-studio-projects%2F&amp;title=How+to+nest+NHibernate+mapping+files+in+Visual+Studio+projects"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/twitter.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://theiterator.com/2009/02/how-to-nest-nhibernate-mapping-files-in-visual-studio-projects/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The toolbox</title>
		<link>http://theiterator.com/2008/12/the-toolbox/</link>
		<comments>http://theiterator.com/2008/12/the-toolbox/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 11:51:02 +0000</pubDate>
		<dc:creator>theiterator</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.theiterator.com/?p=42</guid>
		<description><![CDATA[I&#8217;m not too big on bloating my Visual Studio with addons and whatnot, but there are a few tweaks here and there. My Visual Studio color scheme is a slightly tweaked version of the Desert Nights scheme by Thomas Restrepo. You can grab it for Visual Studio 2008 here. I also use the awesome Sonic [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not too big on bloating my Visual Studio with addons and whatnot, but there are a few tweaks here and there. My Visual Studio color scheme is a slightly tweaked version of the <a href="http://winterdom.com/weblog/2007/11/12/DesertNightsAVS2005ColorScheme.aspx">Desert Nights</a> scheme by Thomas Restrepo. You can grab it for Visual Studio 2008 <a href="http://www.theiterator.com/wp-content/uploads/2008/12/theiterator.vssettings">here</a>.</p>
<p><a href="http://www.theiterator.com/wp-content/uploads/2008/12/vs_screenshot.jpg"><img class="alignnone size-medium wp-image-43" title="Visual Studio color theme" src="http://www.theiterator.com/wp-content/uploads/2008/12/vs_screenshot-300x233.jpg" alt="" width="300" height="233" /></a></p>
<p>I also use the awesome <a href="http://jens-schaller.de/sonictools/sonicfilefinder/index.htm">Sonic File Finder</a> addon. It allows you to search for files in your solutions. Programming can be a frantic excercise in jumping between numerous code files and the solution explorer is a really poor way to do it. Most of the time you know what file you&#8217;re going for, so just hitting ctrl+, and typing a part of the file name saves you a bunch of time and sanity.</p>
<p><a href="http://www.theiterator.com/wp-content/uploads/2008/12/vs_screenshot2.jpg"><img class="alignnone size-medium wp-image-45" title="Visual Studio with Sonic File Finder" src="http://www.theiterator.com/wp-content/uploads/2008/12/vs_screenshot2-300x234.jpg" alt="" width="300" height="234" /></a></p>
<p>I also used to use the <a href="http://www.apexsql.com/sql_tools_edit.asp">ApexSQL Edit</a> for its superior performance and intellisense feature but it kinda got rendered obsolete after the release of Sql Server 2008 with its built-in intellisense. <a href="http://www.apexsql.com/sql_tools_diff.asp">ApexSQL Diff</a>, however, is a great tool to have in your belt. It does what you&#8217;d expect: compares database schemas and merges them. It performs surprisingly complicated merges without breaking a sweat. Both of the aforementioned applications by ApexSQL are of extremely high quality, they perform well and are stable as the negation of something not very stable. Highly recommended.</p>
<p class="bookmark-me"><a title="technorati.com" href="http://www.technorati.com/faves?add=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/technorati.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F&amp;title=The+toolbox"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/delicious.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="stumbleupon.com" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F&amp;title=The+toolbox"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/stumbleupon.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="digg.com" href="http://digg.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F&amp;title=The+toolbox"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/digg.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="www.facebook.com" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F&amp;t=The+toolbox"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/facebook.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="reddit.com" href="http://reddit.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F&amp;title=The+toolbox"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/reddit.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="twitthis.com" href="http://twitthis.com/twit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F12%2Fthe-toolbox%2F&amp;title=The+toolbox"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/twitter.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://theiterator.com/2008/12/the-toolbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flat Solution Explorer</title>
		<link>http://theiterator.com/2008/01/flat-solution-explorer/</link>
		<comments>http://theiterator.com/2008/01/flat-solution-explorer/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 10:22:00 +0000</pubDate>
		<dc:creator>theiterator</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.theiterator.com/?p=5</guid>
		<description><![CDATA[My god I fell in love with this thing. Best thing since sliced bread. http://www.codeplex.com/VSFlatSolutionExp]]></description>
			<content:encoded><![CDATA[<p>My god I fell in love with this thing. Best thing since sliced bread.</p>
<p><a href="http://www.codeplex.com/VSFlatSolutionExp">http://www.codeplex.com/VSFlatSolutionExp</a></p>
<p class="bookmark-me"><a title="technorati.com" href="http://www.technorati.com/faves?add=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/technorati.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="del.icio.us" href="http://del.icio.us/post?url=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F&amp;title=Flat+Solution+Explorer"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/delicious.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="stumbleupon.com" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F&amp;title=Flat+Solution+Explorer"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/stumbleupon.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="digg.com" href="http://digg.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F&amp;title=Flat+Solution+Explorer"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/digg.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="www.facebook.com" href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F&amp;t=Flat+Solution+Explorer"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/facebook.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="reddit.com" href="http://reddit.com/submit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F&amp;title=Flat+Solution+Explorer"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/reddit.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> <a title="twitthis.com" href="http://twitthis.com/twit?url=http%3A%2F%2Ftheiterator.com%2F2008%2F01%2Fflat-solution-explorer%2F&amp;title=Flat+Solution+Explorer"><img src="http://theiterator.com/wp-content/plugins/bookmark-me/images/twitter.png" style="margin:0;border:0;padding:0" alt="bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://theiterator.com/2008/01/flat-solution-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

