<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Abhijit&#039;s World of .NET &#187; Visual Studio 2010</title>
	<atom:link href="http://abhijitjana.net/category/visual-studio-2010/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhijitjana.net</link>
	<description>Success is a journey , It’s not a destination</description>
	<lastBuildDate>Wed, 09 May 2012 17:50:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='abhijitjana.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/5686a1e614b4b192b9ff56ffbb1c9000?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Abhijit&#039;s World of .NET &#187; Visual Studio 2010</title>
		<link>http://abhijitjana.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://abhijitjana.net/osd.xml" title="Abhijit&#039;s World of .NET" />
	<atom:link rel='hub' href='http://abhijitjana.net/?pushpress=hub'/>
		<item>
		<title>JScript Debugger&#8211; &#8220;Unable to attach the process. Another debugger might be attached to the process&#8221; &#8211; while application is running from Visual Studio. [ Solution ]</title>
		<link>http://abhijitjana.net/2012/01/20/jscript-debugger-unable-to-attach-the-process-another-debugger-might-be-attached-to-the-process-while-application-is-running-from-visual-studio-solution/</link>
		<comments>http://abhijitjana.net/2012/01/20/jscript-debugger-unable-to-attach-the-process-another-debugger-might-be-attached-to-the-process-while-application-is-running-from-visual-studio-solution/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 16:57:48 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[ASP.NET 4.0]]></category>
		<category><![CDATA[ASP.NET 4.5]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Visual Studio 2011]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[codeproject]]></category>
		<category><![CDATA[Debugging]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/?p=3416</guid>
		<description><![CDATA[IE Developer toolbar provide us a fantastic and easiest way to debug JavaScript with in browser.&#160; If the web site is hosted on IIS and you are trying&#160; debug JavaScript using IE Developer tool bar, it will work fine if you the correct browser setting for debugging. If you are running your web application directly [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3416&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>IE Developer toolbar provide us a fantastic and easiest way to debug JavaScript with in browser.&#160; If the web site is hosted on IIS and you are trying&#160; debug JavaScript using IE Developer tool bar, it will work fine if you the correct browser setting for debugging. If you are running your web application directly from visual studio, you might came across the problem of “<strong>Unable to attach to the process</strong>”&#160; while click on “<strong>Start debugging</strong>” button in IE Developer toolbar. In this post I am going to talk about the resolution of the same and will also talk about little bit behind the scene.</p>
<p><span id="more-3416"></span><br />
<h2><font><font color="#000080"><font>Problem:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font></font>&#160;</font></h2>
<p>IE Developer Toolbar – JS Debugger Error <font><strong>“Unable to attach the process. Another debugger might be attached to the process” </strong></font>. </p>
<h3><font>Steps :</font></h3>
<p>1. Run an <strong>ASP.NET</strong> application from <strong>Visual Studio</strong>.</p>
<p>2. Once application launched, Press <strong>F12</strong> in browser to launch Developer Toolbar.</p>
<p>3. Move to “<strong>Script”</strong> Tab and Click on “<strong>Start Debugging</strong>” . <font size="1">Put necessary breakpoints on the script function as required before click</font>.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image4.png?w=429&h=94" width="429" height="94" /></p>
<p>On click of “<strong>Start Debugging</strong>”, you will receive below error message. which says, already another debugger attached and you can not attach with current IE Process for debugging.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image5.png?w=560&h=209" width="560" height="209" /></p>
<h2><font color="#000080">Solution :&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font></h2>
<p>Follow the below steps for resolve this issue.</p>
<p>1. Go back to Visual Studio and&#160; Select “<strong>Detach All</strong>” from “<strong>Debug</strong>” menu.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image6.png?w=440&h=223" width="440" height="223" /></p>
<p>2. Now click on “<strong>Start Debugging</strong>” from IE Developer Toolbar.&#160; No error , and you can continue with debugging and other work.</p>
<h2><font color="#646b86"></font><font color="#000080"><font>Behind the scene :&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font><font color="#646b86"></font></h2>
<p>Visual Studio automatically instantiate an Internet explorer process to launch the web sites. You can check the process level using “<strong>Process Explorer</strong>”. </p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image7.png?w=505&h=152" width="505" height="152" /></p>
<p>Also, it attached the process&#160; “<strong>iexplore.exe</strong>” automatically&#160; during launch of site that helps us debug&#160; JavaScript from visual studio itself. You can check&#160; it from Solution explorer itself</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image8.png?w=614&h=191" width="614" height="191" /></p>
<p>Which mean, while your site is running in browser, “<strong>iexplore.exe</strong>” ( Process for Internet Explorer) is already attached .&#160; One of the most simplest way to check this out is, navigate to&#160; <strong><a href="http://dailydotnettips.com/2012/01/20/how-to-get-list-of-attached-processes-in-visual-studio-while-debugging/" target="_blank">Debug &gt; Windows&gt; Processes</a> .&#160; </strong>This will list out all attached process with in visual studio . For any typical ASP.NET web application which is running from visual studio will have two process and <strong>iexplore</strong> is one of them.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image9.png?w=775&h=180" width="775" height="180" /></p>
<p>That’s why when you are trying to attach the same process from IE Developer tool bar, it is throwing error<strong> <font></font>“Unable to attach the process. Another debugger might be attached to the process” . </strong></p>
<p><em>So now we know what was the causing the issue and let’s have a look what we did to resolve this.&#160; </em></p>
<p>As a resolution,&#160; we used “<strong>Detach All</strong>” from debug menu, which actually detach all the process which is attached with visual studio except local ASP.NET Development server process&#160; ( <strong>WebDev.WebServer40.EXE</strong> ).&#160; </p>
<blockquote><p><strong>Note :</strong> “<strong>Detach All”</strong> will detach all the attached process apart from ASP.NET Development server. Because detaching the development server is nothing but stopping your application. If you want to stop, either <strong>stop debugging</strong> or “<strong>Terminate</strong>” the local development sever process.</p>
</blockquote>
<p>“<strong>Detach All”</strong> will remove iexplore.exe from the list of attached process. So, you can go ahead and start the debugging in IE Developer toolbar.</p>
<p><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;border-top:0;border-right:0;padding-top:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image10.png?w=765&h=178" width="765" height="178" /></p>
<h3><font color="#000080">Detaching a Particular Process Instead “Detach All”&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </font></h3>
<p>If there are multiple processes attached and if you want to detach only <strong>“IE</strong> <strong>Process”,</strong> you can simply do it from process attach window, by selecting&#160; “<strong>Detach Process</strong>” from the content menu of the “<strong>iexplore.exe</strong>”.&#160; This will help you to retain on other process in attached state.</p>
<p><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;border-top:0;border-right:0;padding-top:0;margin:0 auto;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2012/01/image11.png?w=734&h=255" width="734" height="255" /></p>
<blockquote><p>To know more about <strong>Processes Window</strong>, check out this post <a href="http://dailydotnettips.com/2012/01/20/how-to-get-list-of-attached-processes-in-visual-studio-while-debugging/">How to get list of attached processes in Visual Studio while debugging ?</a></p>
</blockquote>
<p>Hope this helps !</p>
<p>Cheers !</p>
<p>Abhijit</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/asp-net-4-0/'>ASP.NET 4.0</a>, <a href='http://abhijitjana.net/category/asp-net-4-5/'>ASP.NET 4.5</a>, <a href='http://abhijitjana.net/category/tips-and-tricks/'>Tips and Tricks</a>, <a href='http://abhijitjana.net/category/visual-studio/'>Visual Studio</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>, <a href='http://abhijitjana.net/category/visual-studio-2011/'>Visual Studio 2011</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3416/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3416/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3416/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3416&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2012/01/20/jscript-debugger-unable-to-attach-the-process-another-debugger-might-be-attached-to-the-process-while-application-is-running-from-visual-studio-solution/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2012/01/image11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Use Visual Studio 2010 to Profile your ASP.NET Application which is hosted on IIS</title>
		<link>http://abhijitjana.net/2011/10/04/use-visual-studio-2010-to-profile-your-asp-net-application-which-is-hosted-on-iis/</link>
		<comments>http://abhijitjana.net/2011/10/04/use-visual-studio-2010-to-profile-your-asp-net-application-which-is-hosted-on-iis/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 16:23:45 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[ASP.NET 4.0]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[Profiler]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[asp.net 4.0]]></category>
		<category><![CDATA[codeproject]]></category>
		<category><![CDATA[Profiler Tool]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/2011/10/04/use-visual-studio-2010-to-profile-your-asp-net-application-which-is-hosted-on-iis/</guid>
		<description><![CDATA[Most of all are well aware about command line profiling for ASP.NET Application using  VSPerfASPNETCmd command line tool . This can easily profile your ASP.NET Web applications which is hosted on IIS. We just need to run VSPerfASPNETCmd command with required parameter. Once profiling done, we can inspect the generated performance  report (.vsp) file within [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3273&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of all are well aware about command line profiling for ASP.NET Application using  <strong><a href="http://msdn.microsoft.com/en-us/library/ee308442.aspx" target="_blank">VSPerfASPNETCmd</a></strong> command line tool . This can easily profile your ASP.NET Web applications which is hosted on IIS. We just need to run <a href="http://msdn.microsoft.com/en-us/library/ee308442.aspx" target="_blank">VSPerfASPNETCmd</a> command with required parameter. Once profiling done, we can inspect the generated performance  report (.vsp) file within Visual Studio. But, do you know we can do the complete profiling within Visual Studio itself. How ? Here you go.</p>
<p><span id="more-3273"></span></p>
<p><em>[Note : I recorded a quick 3 min video on the same and  embedded at end . ] </em></p>
<p>Start a new instance of <em>Visual Studio</em> <em>2010</em> and Open <em><strong>Performance Explorer</strong></em>  from <em><strong>Analyze</strong></em> Menu . Click on the <strong>“<em>New Performance Session</em></strong>” icon.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/10/image1.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:10px;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image_thumb.png?w=323&h=230" alt="image" width="323" height="230" border="0" /></a></p>
<p>This will create a new Performance session for you with two different folders, <em><span style="text-decoration:underline;">Reports</span></em>  ( Which is the repository for all .vsp files ) and <span style="text-decoration:underline;"><em>Targets</em></span> ( Targets folder shows the binaries that are profiled in the  current session )</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/10/image2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:10px;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image_thumb1.png?w=329&h=138" alt="image" width="329" height="138" border="0" /></a></p>
<p>Now, here is the trick, Right Click on “<strong>Targets</strong>” folder  and Click on “<strong>Add Existing web Site…”</strong></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/10/image3.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:10px;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image_thumb2.png?w=375&h=203" alt="image" width="375" height="203" border="0" /></a></p>
<p>Below dialog will appear where have to provide the url of your application which is hosted on IIS.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/10/image4.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:10px;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image_thumb3.png?w=451&h=356" alt="image" width="451" height="356" border="0" /></a></p>
<p>Click on <em>OK</em>, you will find the associated file that targeted to your web application within the targets folder.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/10/image5.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:10px;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image_thumb4.png?w=429&h=253" alt="image" width="429" height="253" border="0" /></a></p>
<p>Now you can start profiling  by clicking on “<strong>Start Profiling</strong>” option from the Performance session context menu.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/10/image6.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;margin:10px;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image_thumb5.png?w=409&h=213" alt="image" width="409" height="213" border="0" /></a></p>
<p>Now you can see your profiling being started and checkout the targeted process Id for profiling ( In Performance output window) . Yes,  it’s targeted to the  worker process (w3wp.exe )  for the application which is running at IIS.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image7.png?w=589&h=259" alt="image" width="589" height="259" border="0" /></p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image8.png?w=614&h=171" alt="image" width="614" height="171" border="0" /></p>
<p>Stop profiling when you are done with the navigation of your application, you will find the generated reports under reports folder.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image9.png?w=593&h=100" alt="image" width="593" height="100" border="0" /></p>
<p><img style="display:inline;margin:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/10/image10.png?w=355&h=174" alt="image" width="355" height="174" /></p>
<p>Now you can inspect the performance report within your visual studio itself.</p>
<p>Here is a quick video</p>
<p><span style="text-align:center; display: block;"><a href="http://abhijitjana.net/2011/10/04/use-visual-studio-2010-to-profile-your-asp-net-application-which-is-hosted-on-iis/"><img src="http://img.youtube.com/vi/Mcs9VqreEps/2.jpg" alt="" /></a></span></p>
<p>Here is few useful tips and tricks on profiling.</p>
<ul>
<li><a href="http://dailydotnettips.com/2011/09/28/how-to-enable-tier-interaction-profiling-tip-in-visual-studio-2010-profiler/">How to enable Tier Interaction Profiling ( TIP ) in Visual Studio 2010 Profiler ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/27/highlighting-execution-hot-path-in-visual-studio-2010-profiler-call-tree/">Highlighting Execution Hot Path in Visual Studio 2010 Profiler Call Tree</a></li>
<li><a href="http://dailydotnettips.com/2011/09/26/create-work-item-in-tfs-for-specific-visual-studio-2010-profiler-report/">Create Work Item in TFS for Specific Visual Studio 2010 Profiler Report</a></li>
<li><a href="http://dailydotnettips.com/2011/09/25/setting-up-noise-reduction-option-for-performance-reports-in-visual-studio-2010-profiler/">Setting Up Noise Reduction Option for Performance Reports in Visual Studio 2010 Profiler</a></li>
<li><a href="http://dailydotnettips.com/2011/09/24/how-to-change-default-performance-report-name-in-visual-studio-2010/">How to change Default Performance Report Name in Visual Studio 2010 ?</a></li>
</ul>
<p>Hope this helps.<br />
Cheers !</p>
<p>Aj</p>
<br />Filed under: <a href='http://abhijitjana.net/category/asp-net-4-0/'>ASP.NET 4.0</a>, <a href='http://abhijitjana.net/category/iis/'>IIS</a>, <a href='http://abhijitjana.net/category/profiler/'>Profiler</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3273/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3273/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3273/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3273&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/10/04/use-visual-studio-2010-to-profile-your-asp-net-application-which-is-hosted-on-iis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/10/image10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>25 Tips on ASP.NET, C#, MEF, Visual Studio, Profiler &#8211; September 2011 Links</title>
		<link>http://abhijitjana.net/2011/09/30/25-tips-on-asp-net-c-mef-visual-studio-profiler-september-2011-links/</link>
		<comments>http://abhijitjana.net/2011/09/30/25-tips-on-asp-net-c-mef-visual-studio-profiler-september-2011-links/#comments</comments>
		<pubDate>Fri, 30 Sep 2011 13:24:28 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[ASP.NET 4.0]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[dailydotnettips]]></category>
		<category><![CDATA[Tips & Tricks]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/2011/09/30/25-tips-on-asp-net-c-mef-visual-studio-profiler-september-2011-links/</guid>
		<description><![CDATA[Daily .NET Tips is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.&#160;&#160; This month we have wide range of tips including ASP.NET, C#, MEF, Visual Studio, Profiler [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3253&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://dailydotnettips.com">Daily .NET Tips </a>is aiming to sharing useful coding tips and tricks for .NET Developers. This site completely design for sharing Tips and Tricks, useful Code Snippet which anyone use in daily development work and targeted anything related with .NET.&#160;&#160; This month we have wide range of tips including ASP.NET, C#, MEF, Visual Studio, Profiler etc. In this post I am quickly listing down all the tips which are published over the month September 2011</p>
<p><span id="more-3253"></span>
<ol>
<li><a href="http://dailydotnettips.com/2011/09/28/how-to-enable-tier-interaction-profiling-tip-in-visual-studio-2010-profiler/">How to enable Tier Interaction Profiling ( TIP ) in Visual Studio 2010 Profiler ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/27/highlighting-execution-hot-path-in-visual-studio-2010-profiler-call-tree/">Highlighting Execution Hot Path in Visual Studio 2010 Profiler Call Tree</a></li>
<li><a href="http://dailydotnettips.com/2011/09/26/create-work-item-in-tfs-for-specific-visual-studio-2010-profiler-report/">Create Work Item in TFS for Specific Visual Studio 2010 Profiler Report</a></li>
<li><a href="http://dailydotnettips.com/2011/09/25/setting-up-noise-reduction-option-for-performance-reports-in-visual-studio-2010-profiler/">Setting Up Noise Reduction Option for Performance Reports in Visual Studio 2010 Profiler</a></li>
<li><a href="http://dailydotnettips.com/2011/09/24/how-to-change-default-performance-report-name-in-visual-studio-2010/">How to change Default Performance Report Name in Visual Studio 2010 ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/20/using-code-definition-widow-with-call-hierarchy-in-visual-studio-2010/">Using Code Definition Window with Call Hierarchy in Visual Studio 2010</a></li>
<li><a href="http://dailydotnettips.com/2011/09/19/navigate-code-using-code-definition-window-in-visual-studio/">Navigate Code Using Code Definition Window in Visual Studio</a></li>
<li><a href="http://dailydotnettips.com/2011/09/18/data-schema-comparison-in-visual-studio-2010/">Data Schema Comparison in Visual Studio 2010</a></li>
<li><a href="http://dailydotnettips.com/2011/09/17/sort-generic-list-using-lambda-expression-for-dynamic-type-and-dynamic-property/">Sort Generic List Using Lambda Expression For Dynamic Type And Dynamic Property</a></li>
<li><a href="http://dailydotnettips.com/2011/09/16/how-to-pass-command-line-arguments-using-visual-studio/">How to Pass Command Line Arguments using Visual Studio ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/15/specifying-assembly-information-in-visual-studio/">Specifying Assembly Information in Visual Studio</a></li>
<li><a href="http://dailydotnettips.com/2011/09/14/install-a-shared-assembly-to-the-gac-as-post-build-event-from-visual-studio/">Install a shared Assembly to the GAC as post build event from Visual Studio</a></li>
<li><a href="http://dailydotnettips.com/2011/09/13/programmatically-get-assembly-version/">Programmatically Get Assembly Version</a></li>
<li><a href="http://dailydotnettips.com/2011/09/12/maps-keys-to-a-collection-of-values-using-lookup-collection/">Maps Keys to a Collection of Values using Lookup Collection</a></li>
<li><a href="http://dailydotnettips.com/2011/09/11/conditional-binding-expression-with-asp-net-gridview/">Conditional Binding Expression with ASP.NET GridView</a></li>
<li><a href="http://dailydotnettips.com/2011/09/10/how-to-change-selected-date-background-color-of-current-week-in-asp-net-calendar/">How to change selected date background color of current week in ASP.NET Calendar ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/09/how-to-change-background-color-of-current-week-in-asp-net-calendar/">How to Change Background Color of Current Week in ASP.NET Calendar ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/08/how-to-enable-code-coverage-in-visual-studio-2010/">How to enable code coverage in Visual Studio 2010 ?</a></li>
<li><a href="http://dailydotnettips.com/2011/09/07/setting-up-policies-for-extensible-parts-in-mef/">Setting up Policies for Extensible Parts in MEF</a></li>
<li><a href="http://dailydotnettips.com/2011/09/06/importconstructor-to-inject-constructor-mef/">Use of ImportConstructor to inject Constructor code in MEF</a></li>
<li><a href="http://dailydotnettips.com/2011/09/05/writing-metadata-in-contracts-of-mef/">Writing Metadata in Contracts of MEF</a></li>
<li><a href="http://dailydotnettips.com/2011/09/04/working-with-compositionbatch-in-mef/">Working with CompositionBatch in MEF</a></li>
<li><a href="http://dailydotnettips.com/2011/09/03/allow-recomposition-in-mef/">Allow Recomposition in MEF</a></li>
<li><a href="http://dailydotnettips.com/2011/09/02/getting-lazy-with-mef/">Getting Lazy with MEF</a></li>
<li><a href="http://dailydotnettips.com/2011/09/01/partnotdiscoverable-attribute-in-mef/">PartNotDiscoverable attribute in MEF</a></li>
</ol>
<p>&#160;</p>
<p>To get regular updates visit <a href="http://dailydotnettips.com">http://dailydotnettips.com</a> and follow <a href="http://twitter.com/dailydotnettips">@dailydotnettips</a> at Twitter </p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/asp-net-4-0/'>ASP.NET 4.0</a>, <a href='http://abhijitjana.net/category/tips-and-tricks/'>Tips and Tricks</a>, <a href='http://abhijitjana.net/category/visual-studio/'>Visual Studio</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3253&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/09/30/25-tips-on-asp-net-c-mef-visual-studio-profiler-september-2011-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>
	</item>
		<item>
		<title>Download PPT &#8211; &#8220;Tune Your ASP.NET Application Using Visual Studio 2010 Profiler&#8221; &#8211; Virtual Tech Days &#8211; 29th Sept 2011</title>
		<link>http://abhijitjana.net/2011/09/29/download-ppt-tune-your-asp-net-application-using-visual-studio-2010-profiler-virtual-tech-days-29th-sept-2011/</link>
		<comments>http://abhijitjana.net/2011/09/29/download-ppt-tune-your-asp-net-application-using-visual-studio-2010-profiler-virtual-tech-days-29th-sept-2011/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 12:17:49 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET Community Events]]></category>
		<category><![CDATA[ASP.NET 4.0]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Session PPT]]></category>
		<category><![CDATA[Virtual Tech Days]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/2011/09/29/download-ppt-tune-your-asp-net-application-using-visual-studio-2010-profiler-virtual-tech-days-29th-sept-2011/</guid>
		<description><![CDATA[Today I delivered 1 hour session on “Tune Your ASP.NET Application Using Visual Studio 2010 Profiler”&#160; at Microsoft Virtual Tech days 2011.&#160; Got few minute delayed to start the session due to some network issues. during the session I started with fundamentals of profiling and&#160; different profiling methods and also talked about choosing right profiling [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3251&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I delivered 1 hour session on “Tune Your ASP.NET Application Using Visual Studio 2010 Profiler”&#160; at Microsoft Virtual Tech days 2011.&#160; Got few minute delayed to start the session due to some network issues. during the session I started with fundamentals of profiling and&#160; different profiling methods and also talked about choosing right profiling technique. During the demos I showed different tooling features with in VS 2010 Profiler. Profiled&#160; Few ASP.NET Application using Sampling and Instrumentation and&#160; discussed about complete analysis and internal of how sampling and instrumentation works . I have also covered the Tier Interaction Profile, Profiling ASP.NET Application from Command Prompt and JavaScript Profiling.</p>
<p><span id="more-3251"></span>
<p>You can View and download the slide from here, </p>
<div style="width:425px;" id="__ss_9470330"><strong><a title="Tune Your ASP.NET Application Using Visual Studio 2010 Profiler" href="http://www.slideshare.net/AbhijitJana1/tune-your-aspnet-application-using-visual-std" target="_blank">Tune Your ASP.NET Application Using Visual Studio 2010 Profiler</a></strong> <iframe src='http://www.slideshare.net/slideshow/embed_code/9470330' width='425' height='348' scrolling='no'></iframe>
<div style="padding:5px 0 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/AbhijitJana1" target="_blank">Abhijit Jana</a> </div>
</p></div>
<p>Thanks&#160; again for attending and sharing your feedback and great response. If you have question related with the session please drop me message over this post, will try to respond as early as possible.</p>
<p>Thanks !</p>
<p>Aj</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-community-events/'>.NET Community Events</a>, <a href='http://abhijitjana.net/category/asp-net-4-0/'>ASP.NET 4.0</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3251/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3251/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3251/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3251&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/09/29/download-ppt-tune-your-asp-net-application-using-visual-studio-2010-profiler-virtual-tech-days-29th-sept-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>
	</item>
		<item>
		<title>Development With Kinect .NET SDK (Part V) &#8211; Developing Application using Multiple Kinect Devices</title>
		<link>http://abhijitjana.net/2011/09/23/development-with-kinect-net-sdk-part-v-developing-application-using-multiple-kinect-devices/</link>
		<comments>http://abhijitjana.net/2011/09/23/development-with-kinect-net-sdk-part-v-developing-application-using-multiple-kinect-devices/#comments</comments>
		<pubDate>Fri, 23 Sep 2011 14:15:28 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[kinect SDK]]></category>
		<category><![CDATA[Kinect SDK With Multiple Devices]]></category>
		<category><![CDATA[Kinect Tutorial]]></category>
		<category><![CDATA[multiple Kinect Devices]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/?p=3238</guid>
		<description><![CDATA[This is the fifth post in the series of Development With Kinect .NET SDK.  In this post I am going to discuss about interacting with multiple Kinect devices with in a single system using Kinect .NET SDK. Before going forward, I will strongly recommend you to read my previous post where I have discussed about [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3238&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the fifth post in the series of <a href="http://abhijitjana.net/tag/kinect-tutorial/">Development With Kinect .NET SDK.</a>  In this post I am going to discuss about interacting with multiple Kinect devices with in a single system using Kinect .NET SDK. Before going forward, I will strongly recommend you to read my previous post where I have discussed about <a href="http://abhijitjana.net/2011/09/20/development-with-kinect-net-sdk-part-iv-connecting-multiple-kinect-devices-with-system/">Connecting Multiple Kinect Devices with System</a>  which will help you setup your system with multiple devices.</p>
<p><span id="more-3238"></span></p>
<p>Once both devices configured and setup properly,  you can run the below code snippet to check if Kinect SDK detects both of  the  devices.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image65.png?w=586&h=178" alt="image" width="586" height="178" border="0" /></p>
<p>Once you have the correct device count you can start with application development. During this exercise we will be applying all the learning that we have gained over the past few articles.</p>
<p>Let’s start with the a New “<em><span style="color:#000080;">WPF</span></em>” Project and named it as “<em><span style="color:#000080;">MultipleKinectDemo</span></em>”</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image66.png?w=648&h=422" alt="image" width="648" height="422" align="left" border="0" /></p>
<p>Navigate to solution explorer, Right Click on the Project and Select “<em><span style="color:#000080;">Add Reference</span></em>” and add “<span style="color:#000080;"><em>Microsoft.Research.Kinect.dll</em></span>” as reference assembly.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;margin:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image67.png?w=354&h=229" alt="image" width="354" height="229" border="0" /></p>
<p>Add a new class named “<em><span style="color:#000080;">KinectDevice</span></em>”  which will be  a container entity for multiple Kinect devices.   Below is the code snippet for the <em><span style="color:#000080;">KinectDevice.cs</span></em>.</p>
<p><pre class="brush: csharp;">
using Microsoft.Research.Kinect.Nui;
/// &lt;summary&gt;
/// Kinect Device
/// &lt;/summary&gt;
public sealed class KinectDevice
{
    /// &lt;summary&gt;
    /// Gets or sets the name of the device.
    /// &lt;/summary&gt;
    /// &lt;value&gt;The name of the device.&lt;/value&gt;
    public string DeviceName { get; set; }

    /// &lt;summary&gt;
    /// Gets or sets the kinect runtime.
    /// &lt;/summary&gt;
    /// &lt;value&gt;The kinect runtime.&lt;/value&gt;
    public Runtime KinectRuntime { get; set; }
}
</pre></p>
<p>In the above class “<em><span style="color:#000080;">KinectRuntime</span></em>” is type of  Kinect <span style="text-decoration:underline;"><span style="color:#000080;text-decoration:underline;">Runtime</span></span> and  We will be creating a <span style="text-decoration:underline;"><em><span style="color:#000080;text-decoration:underline;">List&lt;KinectDevice&gt;</span></em></span> to contain the multiple object of devices.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image68.png?w=409&h=488" alt="image" width="409" height="488" border="0" /></p>
<p>Capturing <span style="color:#000080;">video</span>, <span style="color:#000080;">Depth</span> <span style="color:#000080;">images</span> are same as we did earlier for a single kinect, but the new steps involves with initializing of multiple Kinect devices.   The Kinect .NET SDK does provide support for multiple Kinect devices.   Runtime class has a <span style="color:#000080;">overloaded constructed</span> where it take index as argument.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image69.png?w=329&h=114" alt="image" width="329" height="114" border="0" /></p>
<p>You can create a new <span style="color:#000080;">Runtime</span> object and pass the index of sensors  as  <span style="text-decoration:underline;"><em><span style="color:#000080;text-decoration:underline;"> r</span><span style="color:#000080;text-decoration:underline;">untimeNui = new Runtime(index)</span></em></span>.</p>
<p>In our application we will create a <span style="text-decoration:underline;"><em><span style="color:#000080;text-decoration:underline;">List&lt;KinectDevice</span></em></span>&gt; and store the  each runtime object  .</p>
<p>Before that, create a basic US as shown in below,</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image70.png?w=641&h=461" alt="image" width="641" height="461" border="0" /></p>
<p>Very straight forward UI, you can check out the XAML markup which in given in then end.</p>
<p>Let’s do it now Step by Step</p>
<h2><span style="color:#000080;">Detect Kinect Devices </span><span style="color:#000080;"><br />
</span></h2>
<p>First of all we need to detect the devices. Kinect SDK APIs provides a class “<em><span style="color:#000080;">Device</span></em>” which r<em><span style="color:#000080;">epresents a system’s Kinect sensors</span></em>. It’s has a property “<span style="color:#000080;">Count</span>” which holds the number of Kinect been detected.  Write the blow code snippet in the Detect Button click event.</p>
<p><pre class="brush: csharp;">
 /// &lt;summary&gt;
        /// Handles the Click event of the buttonDetect control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonDetect_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Device device = new Device();
                this.DeviceCount = device.Count;
                this.buttonDetect.Content = string.Format(&quot;Kinect Device Detected {0}&quot;, this.DeviceCount.ToString());
            }
            catch (Exception exp)
            {
                MessageBox.Show(string.Format(&quot;Error Occured in Device Detection : &quot;, exp.Message));
            }
        }
</pre></p>
<p><span style="color:#000080;">this.DeviceCount</span> is a private properties which defined locally to the current class.</p>
<p><pre class="brush: csharp;">
        /// &lt;summary&gt;
        /// Gets or sets the device count.
        /// &lt;/summary&gt;
        /// &lt;value&gt;The device count.&lt;/value&gt;
        private int DeviceCount { get; set; }
</pre></p>
<p>After successfully detection of the devices, we changed the content of the Button with number of detected device.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border-width:0;margin:0 auto;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image71.png?w=409&h=46" alt="image" width="409" height="46" border="0" /></p>
<h2><span style="color:#000080;">Multiple Kinect Runtime</span></h2>
<p>As discussed earlier, Kinect .SDK support detection of multiple SDK and Runtime class has a overloaded constructor that takes index as arguments.  Below code snippets shows how we can initialize multiple Kinect Runtime</p>
<p><pre class="brush: csharp;">
 /// &lt;summary&gt;
        /// Handles the Click event of the buttonInitializeRuntime control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonInitializeRuntime_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                for (int i = 0; i &lt; this.DeviceCount; i++)
                {
                    kinectDevices.Add(new KinectDevice
                                        {
                                            KinectRuntime = new Runtime(i),
                                            DeviceName = string.Format(&quot;{0} {1}&quot;,
                                            DeviceName, i.ToString())
                                        });
                }

                this.buttonKinectOne.IsEnabled = true;
                this.buttonKinectTwo.IsEnabled = true;
            }
            catch (Exception exp)
            {
                MessageBox.Show(string.Format(&quot;Runtime Initialization Failed : &quot;, exp.Message));
            }
        }
</pre></p>
<p><span style="color:#000080;">kinectDevices</span> is a <em><span style="color:#000080;">List of KinectDevice</span></em> which I have discussed earlier.</p>
<p><pre class="brush: csharp;">
        /// &lt;summary&gt;
        /// Kinect Device Place Holder
        /// &lt;/summary&gt;
        List&lt;KinectDevice&gt; kinectDevices = new List&lt;KinectDevice&gt;();
</pre></p>
<h2><span style="color:#000080;">Taking Control over Individual Kinect  </span></h2>
<p>Once we have the runtime initialized, we can easily take control over the individual Kinect.<span style="color:#000080;"> kinectDevices[0]</span> and <span style="color:#000080;">kinectDevices[1]</span> are the runtime container for individual Kinect. Below code snippets show how we can detect the first Kinect devices.</p>
<p><pre class="brush: csharp;">
  /// &lt;summary&gt;
        /// Handles the Click event of the buttonKinectOne control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonKinectOne_Click(object sender, RoutedEventArgs e)
        {
            KinectDevice deviceOne = kinectDevices[0];
            Runtime deviceRuntimeOne = deviceOne.KinectRuntime;
            deviceRuntimeOne.Initialize(RuntimeOptions.UseColor);
            deviceRuntimeOne.NuiCamera.ElevationAngle = 0;
            deviceName1.Content = deviceOne.DeviceName;
            deviceRuntimeOne.VideoFrameReady += new EventHandler&lt;ImageFrameReadyEventArgs&gt;(deviceRuntimeOne_VideoFrameReady);
            deviceRuntimeOne.VideoStream.Open(ImageStreamType.Video, 2, ImageResolution.Resolution640x480, ImageType.Color);
        }
</pre></p>
<p>As we have the specific Kinect runtime, we can easily take care of <span style="color:#000080;">VideoFrameReady</span> event and  <span style="color:#000080;">VideoStream</span>.Open() method.</p>
<p><pre class="brush: csharp;">
 /// &lt;summary&gt;
        /// Handles the VideoFrameReady event of the deviceRuntimeOnce control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;Microsoft.Research.Kinect.Nui.ImageFrameReadyEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void deviceRuntimeOne_VideoFrameReady(object sender, ImageFrameReadyEventArgs e)
        {
            image1.Source = e.ImageFrame.ToBitmapSource();
            PlanarImage imageData = e.ImageFrame.Image;
            camera1Small.Source = BitmapSource.Create(imageData.Width, imageData.Height, 96, 96, PixelFormats.Cmyk32, null, imageData.Bits, imageData.Width * imageData.BytesPerPixel);
        }
</pre></p>
<p>Similar we can write the code for <span style="color:#000080;">kinectDevices[1]</span></p>
<p>Well, this is the base, rest things are very similar to work with single Kinect device.</p>
<p><strong><span style="color:#000080;">Here is the complete code snippet of the application</span></strong></p>
<p><pre class="brush: csharp;">
/// Developing Application using Multiple Kinect
/// Author : Abhijit Jana
/// Date : 17 - 09 2011
/// ---------------------------------------------------------------------------

namespace MultipleKinectDemo
{
    using System;
    using System.Collections.Generic;
    using System.Windows;
    using Coding4Fun.Kinect.Wpf;
    using Microsoft.Research.Kinect.Nui;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;

    /// &lt;summary&gt;
    /// Interaction logic for MainWindow.xaml
    /// &lt;/summary&gt;
    public partial class MainWindow : Window
    {
        /// &lt;summary&gt;
        /// Gets or sets the device count.
        /// &lt;/summary&gt;
        /// &lt;value&gt;The device count.&lt;/value&gt;
        private int DeviceCount { get; set; }

        /// &lt;summary&gt;
        /// Kinect Device Place Holder
        /// &lt;/summary&gt;
        List&lt;KinectDevice&gt; kinectDevices = new List&lt;KinectDevice&gt;();

        private const string DeviceName = &quot;Kinect Sensors Device&quot;;

        /// &lt;summary&gt;
        /// Initializes a new instance of the &lt;see cref=&quot;MainWindow&quot;/&gt; class.
        /// &lt;/summary&gt;
        public MainWindow()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(MainWindow_Loaded);
            Unloaded += new RoutedEventHandler(MainWindow_Unloaded);
        }

        /// &lt;summary&gt;
        /// Handles the Unloaded event of the MainWindow control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void MainWindow_Unloaded(object sender, RoutedEventArgs e)
        {
            foreach (KinectDevice device in kinectDevices)
            {
                device.KinectRuntime.Uninitialize();
            }
        }

        /// &lt;summary&gt;
        /// Handles the Loaded event of the MainWindow control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            this.buttonKinectOne.IsEnabled = false;
            this.buttonKinectTwo.IsEnabled = false;
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the buttonDetect control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonDetect_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Device device = new Device();
                this.DeviceCount = device.Count;
                this.buttonDetect.Content = string.Format(&quot;Kinect Device Detected {0}&quot;, this.DeviceCount.ToString());
            }
            catch (Exception exp)
            {
                MessageBox.Show(string.Format(&quot;Error Occured in Device Detection : &quot;, exp.Message));
            }
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the buttonInitializeRuntime control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonInitializeRuntime_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                for (int i = 0; i &lt; this.DeviceCount; i++)
                {
                    kinectDevices.Add(new KinectDevice
                                        {
                                            KinectRuntime = new Runtime(i),
                                            DeviceName = string.Format(&quot;{0} {1}&quot;,
                                            DeviceName, i.ToString())
                                        });
                }

                this.buttonKinectOne.IsEnabled = true;
                this.buttonKinectTwo.IsEnabled = true;
            }
            catch (Exception exp)
            {
                MessageBox.Show(string.Format(&quot;Runtime Initialization Failed : &quot;, exp.Message));
            }
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the buttonKinectOne control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonKinectOne_Click(object sender, RoutedEventArgs e)
        {
            KinectDevice deviceOne = kinectDevices[0];
            Runtime deviceRuntimeOne = deviceOne.KinectRuntime;
            deviceRuntimeOne.Initialize(RuntimeOptions.UseColor);
            deviceRuntimeOne.NuiCamera.ElevationAngle = 0;
            deviceName1.Content = deviceOne.DeviceName;
            deviceRuntimeOne.VideoFrameReady += new EventHandler&lt;ImageFrameReadyEventArgs&gt;(deviceRuntimeOne_VideoFrameReady);
            deviceRuntimeOne.VideoStream.Open(ImageStreamType.Video, 2, ImageResolution.Resolution640x480, ImageType.Color);
        }

        /// &lt;summary&gt;
        /// Handles the VideoFrameReady event of the deviceRuntimeOnce control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;Microsoft.Research.Kinect.Nui.ImageFrameReadyEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void deviceRuntimeOne_VideoFrameReady(object sender, ImageFrameReadyEventArgs e)
        {
            image1.Source = e.ImageFrame.ToBitmapSource();
            PlanarImage imageData = e.ImageFrame.Image;
            camera1Small.Source = BitmapSource.Create(imageData.Width, imageData.Height, 96, 96, PixelFormats.Cmyk32, null, imageData.Bits, imageData.Width * imageData.BytesPerPixel);
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the buttonKinectTwo control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonKinectTwo_Click(object sender, RoutedEventArgs e)
        {
            KinectDevice deviceTwo = kinectDevices[1];
            Runtime deviceRuntimeTwo = deviceTwo.KinectRuntime;
            deviceRuntimeTwo.Initialize(RuntimeOptions.UseColor);
            deviceRuntimeTwo.NuiCamera.ElevationAngle = 0;
            deviceName2.Content = deviceTwo.DeviceName;
            deviceRuntimeTwo.VideoFrameReady += new EventHandler&lt;ImageFrameReadyEventArgs&gt;(deviceRuntimeTwo_VideoFrameReady);
            deviceRuntimeTwo.VideoStream.Open(ImageStreamType.Video, 2, ImageResolution.Resolution640x480, ImageType.Color);
        }

        /// &lt;summary&gt;
        /// Handles the VideoFrameReady event of the deviceRuntimeTwo control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;Microsoft.Research.Kinect.Nui.ImageFrameReadyEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void deviceRuntimeTwo_VideoFrameReady(object sender, ImageFrameReadyEventArgs e)
        {
            image2.Source = e.ImageFrame.ToBitmapSource();
            PlanarImage imageData = e.ImageFrame.Image;
            camera2Small.Source = BitmapSource.Create(imageData.Width, imageData.Height, 96, 96, PixelFormats.Cmyk32, null, imageData.Bits, imageData.Width * imageData.BytesPerPixel);
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the camera1Up control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void camera1Up_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                kinectDevices[0].KinectRuntime.NuiCamera.ElevationAngle = kinectDevices[0].KinectRuntime.NuiCamera.ElevationAngle + 5;
            }
            catch (ArgumentOutOfRangeException aore)
            {

                MessageBox.Show(&quot;Elevation angle must be between Elevation Minimum/Maximum&quot;);
            }

            catch (Exception)
            {

            }

        }

        /// &lt;summary&gt;
        /// Handles the Click event of the camera1Down control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void camera1Down_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                kinectDevices[0].KinectRuntime.NuiCamera.ElevationAngle = kinectDevices[0].KinectRuntime.NuiCamera.ElevationAngle - 5;
            }
            catch (ArgumentOutOfRangeException argumentExcpetion)
            {
                MessageBox.Show(&quot;Elevation angle must be between Elevation Minimum/Maximum&quot;);
            }
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the camera2Up control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void camera2Up_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                kinectDevices[1].KinectRuntime.NuiCamera.ElevationAngle = kinectDevices[1].KinectRuntime.NuiCamera.ElevationAngle + 5;
            }
            catch (ArgumentOutOfRangeException argumentExcpetion)
            {

                MessageBox.Show(&quot;Elevation angle must be between Elevation Minimum/Maximum&quot;);
            }
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the camera2Down control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void camera2Down_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                kinectDevices[1].KinectRuntime.NuiCamera.ElevationAngle = kinectDevices[1].KinectRuntime.NuiCamera.ElevationAngle - 5;
            }
            catch (ArgumentOutOfRangeException aore)
            {
                MessageBox.Show(&quot;Elevation angle must be between Elevation Minimum/Maximum&quot;);
            }
        }
    }
}

</pre></p>
<p><strong><span style="color:#000080;">XAML Markup. just drag and drop control <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </span></strong></p>
<p><pre class="brush: xml;">
&lt;Grid&gt;
        &lt;Border BorderBrush=&quot;Silver&quot; BorderThickness=&quot;5&quot; Height=&quot;257&quot; HorizontalAlignment=&quot;Left&quot;
                Margin=&quot;32,207,0,0&quot; Name=&quot;border1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;269&quot;&gt;&lt;/Border&gt;
        &lt;Border BorderBrush=&quot;Silver&quot; BorderThickness=&quot;5&quot; Height=&quot;257&quot; Name=&quot;border2&quot; Width=&quot;269&quot; Margin=&quot;488,206,46,90&quot;&gt;
            &lt;Image Height=&quot;246&quot; Name=&quot;image2&quot; Stretch=&quot;Fill&quot; Width=&quot;259&quot; /&gt;
        &lt;/Border&gt;
        &lt;Button Content=&quot;Kinect 1&quot; Height=&quot;42&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;35,480,0,0&quot; Name=&quot;buttonKinectOne&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;266&quot; Click=&quot;buttonKinectOne_Click&quot; /&gt;
        &lt;Button Content=&quot;Kinect 2&quot; Height=&quot;42&quot; HorizontalAlignment=&quot;Right&quot; Margin=&quot;0,480,51,0&quot; Name=&quot;buttonKinectTwo&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;259&quot; Click=&quot;buttonKinectTwo_Click&quot; /&gt;
        &lt;Button Content=&quot;Detect Kinects&quot; Height=&quot;40&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;243,12,0,0&quot; Name=&quot;buttonDetect&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;280&quot; Click=&quot;buttonDetect_Click&quot; /&gt;
        &lt;Label Content=&quot;Camera Device Name&quot; Height=&quot;26&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;32,180,0,0&quot; Name=&quot;deviceName1&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;271&quot; /&gt;
        &lt;Label Content=&quot;Camera Device Name&quot; Height=&quot;26&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;486,180,0,0&quot; Name=&quot;deviceName2&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;271&quot; /&gt;
        &lt;Image Height=&quot;249&quot; Name=&quot;image1&quot; Stretch=&quot;Fill&quot; Margin=&quot;35,211,502,93&quot; /&gt;
        &lt;Button Content=&quot;Initialize Runtime&quot; Height=&quot;38&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;243,67,0,0&quot; Name=&quot;buttonInitializeRuntime&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;280&quot; Click=&quot;buttonInitializeRuntime_Click&quot; /&gt;
        &lt;Button Content=&quot;UP&quot; FontWeight=&quot;ExtraBold&quot; Height=&quot;43&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;307,356,0,0&quot; Name=&quot;camera1Up&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;41&quot; Click=&quot;camera1Up_Click&quot; /&gt;
        &lt;Button Content=&quot;Down&quot; FontWeight=&quot;ExtraBold&quot; Height=&quot;43&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;307,413,0,0&quot; Name=&quot;camera1Down&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;41&quot; Click=&quot;camera1Down_Click&quot; /&gt;
        &lt;Image Height=&quot;109&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;254,228,0,0&quot; Name=&quot;camera1Small&quot; Stretch=&quot;Fill&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;127&quot; /&gt;
        &lt;Border BorderBrush=&quot;#FFB10E00&quot; BorderThickness=&quot;1&quot; Height=&quot;121&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;248,222,0,0&quot; Name=&quot;border3&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;140&quot;&gt;&lt;/Border&gt;
        &lt;Button Content=&quot;UP&quot; FontWeight=&quot;ExtraBold&quot; Height=&quot;43&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;441,356,0,0&quot; Name=&quot;camera2Up&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;41&quot; Click=&quot;camera2Up_Click&quot; /&gt;
        &lt;Button Content=&quot;Down&quot; FontWeight=&quot;ExtraBold&quot; Height=&quot;43&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;441,413,0,0&quot; Name=&quot;camera2Down&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;41&quot; Click=&quot;camera2Down_Click&quot; /&gt;
        &lt;Border BorderBrush=&quot;#FFB10E00&quot; BorderThickness=&quot;1&quot; Height=&quot;121&quot; Name=&quot;border4&quot; Width=&quot;140&quot; Margin=&quot;402,222,261,210&quot;&gt;
            &lt;Image Height=&quot;118&quot; Name=&quot;camera2Small&quot; Stretch=&quot;Fill&quot; Width=&quot;133&quot; /&gt;
        &lt;/Border&gt;
    &lt;/Grid&gt;
</pre></p>
<p>Here is the output of the above application.</p>
<p><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;padding-top:0;border:0;margin:0 auto;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image72.png?w=510&h=365" alt="image" width="510" height="365" border="0" /></p>
<h2><strong><strong><a href="https://skydrive.live.com/?cid=6ab190a26079cd46&amp;sc=documents&amp;nl=1&amp;uc=1&amp;id=6AB190A26079CD46%21218">Download Complete Project </a></strong></strong></h2>
<p>Hope this helps !<br />
Cheers !<br />
Aj</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/kinect/'>Kinect</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3238&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/09/23/development-with-kinect-net-sdk-part-v-developing-application-using-multiple-kinect-devices/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image65.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image66.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image67.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image68.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image69.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image70.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image71.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image72.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Development With Kinect .NET SDK (Part IV) &#8211; Connecting Multiple Kinect Devices with System</title>
		<link>http://abhijitjana.net/2011/09/20/development-with-kinect-net-sdk-part-iv-connecting-multiple-kinect-devices-with-system/</link>
		<comments>http://abhijitjana.net/2011/09/20/development-with-kinect-net-sdk-part-iv-connecting-multiple-kinect-devices-with-system/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 04:24:50 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Configure Multiple Kinect]]></category>
		<category><![CDATA[How to Connect Multiple Kinects]]></category>
		<category><![CDATA[kinect SDK]]></category>
		<category><![CDATA[Kinect Tutorial]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/2011/09/20/development-with-kinect-net-sdk-part-iv-connecting-multiple-kinect-devices-with-system/</guid>
		<description><![CDATA[This is the fourth post in the series of Development With Kinect .NET SDK. In few of my previous posts I have covered Setting up Kinect Devices and Getting Started with Kinect Development ( Part I) , Exploring NUI APIs with Camera ( Part II)  and Adjusting Kinect Camera Angle (Part III). Till now whatever [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3208&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the fourth post in the series of Development With Kinect .NET SDK. In few of my previous posts I have covered <a href="http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/">Setting up Kinect Devices and Getting Started with Kinect Development ( Part I)</a> , <a href="http://abhijitjana.net/2011/09/17/development-with-kinect-net-sdk-part-ii-using-nui-apis-with-camera/" target="_blank">Exploring NUI APIs with Camera ( Part II)</a>  and <a href="http://abhijitjana.net/2011/09/18/development-with-kinect-net-sdk-part-iii-adjusting-the-kinect-camera-angle/" target="_blank">Adjusting Kinect Camera Angle (Part III)</a>. Till now whatever I have covered, that comes under dealing with  single  Kinect devices. Let’s have some more fun with multiple Kinect devices.  The Kinect .NET SDK does provide support for multiple Kinect devices.   In this post I am going to discuss how you can configure two devices with your system.</p>
<p><span id="more-3208"></span></p>
<p>The Kinect SDK does provide support for Multiple Kinect devices and we can plug multiple devices in a same system.  Let’s first check the configuration related with H/W. What will happen if we plugged in multiple Kinect.</p>
<p>Navigate to <strong>Control Panel &gt; Device Manager</strong> and Expand “<strong>Microsoft Kinect</strong>” .</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/camera_not_detected.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="Camera_Not_Detected" src="http://abhijitjana.files.wordpress.com/2011/09/camera_not_detected_thumb.png?w=407&h=289" alt="Camera_Not_Detected" width="407" height="289" border="0" /></a></p>
<p>You will find multiple Kinect devices has been detected by your system. But, Check out the<strong> <span style="text-decoration:underline;">“Warning Symbol”</span></strong> with one of Kinect Camera Devices</p>
<p>Right Click on that item and Select <strong>Properties</strong>, below dialog screen will appear. Check out the <em>Device Status</em> section it’s says “<strong>This Device Cannot start. (Code 10)</strong> .</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image59.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb58.png?w=594&h=429" alt="image" width="594" height="429" border="0" /></a></p>
<p>I was just wondering why it is not working ? Is there something wrong with second Kinect Device ?  The result was same after changing the USB ports for Kinect devices with in the different ports that were available with my laptop.</p>
<p>I started investigation and found some answer <a href="http://social.msdn.microsoft.com/Forums/en-US/kinectsdknuiapi/thread/4da8c75e-9aad-4dc3-bd83-d77ab4cd2f82" target="_blank">over here</a>. It’s says, There is currently a limitation where Kinect devices might not work reliably when they are connected to the same USB host controller as other USB devices, such as webcams or other Kinect devices.</p>
<p>What I did next is, Changed the device manager view to “<strong>Devices by Connection</strong>”</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image60.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb59.png?w=531&h=419" alt="image" width="531" height="419" border="0" /></a></p>
<p>What I found is , Both of the Kinect are being controlled by Same USB Controller. So, it was looks like I don’t have any chance to work multiple Kinect as I checked with all the USB ports.</p>
<p>Well, <a href="http://twitter.com/#!/jebarson007" target="_blank">Jebarson</a> gave me an idea to plugged into the USB ports which were available with Laptop docking station. I just did that. Well, it worked. Check out the below snaps, both the Kinect Sensors detected properly.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/devicemanager_kinect2.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="DeviceManager_Kinect2" src="http://abhijitjana.files.wordpress.com/2011/09/devicemanager_kinect2_thumb.png?w=269&h=434" alt="DeviceManager_Kinect2" width="269" height="434" border="0" /></a></p>
<p>So, we are done with H/W Configuration stuff . What about accessing them using Application ?</p>
<p>Kinect SDK APIs provides a class “<strong>Device</strong>” which represents a system’s Kinect sensors. It’s has a property “<strong>Count</strong>” which will show the number of Kinect been detected.  So, I wrote following line of code, and check out the result.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/devicedetectioncode.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:right;padding-top:0;border-width:0;" title="DeviceDetectionCode" src="http://abhijitjana.files.wordpress.com/2011/09/devicedetectioncode_thumb.png?w=737&h=206" alt="DeviceDetectionCode" width="737" height="206" align="right" border="0" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>That’s all from here. In next Post we will check how to develop application Multiple Kinect . That will be more interesting.</p>
<p>&nbsp;</p>
<blockquote><p><strong><img class="wlEmoticon wlEmoticon-lightbulb" style="border-style:none;" src="http://abhijitjana.files.wordpress.com/2011/09/wlemoticon-lightbulb.png?w=460" alt="Light bulb" />Other Posts from this series :</strong></p>
<p><a href="http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/"><span style="font-size:x-small;">Development With Kinect .NET SDK (Part I) – Installation and Development Environment Setup</span></a></p>
<p><a href="http://abhijitjana.net/2011/09/17/development-with-kinect-net-sdk-part-ii-using-nui-apis-with-camera/"><span style="font-size:x-small;">Development With Kinect .NET SDK (Part II) – Using NUI APIs with Camera</span></a></p>
<p><a href="http://abhijitjana.net/2011/09/18/development-with-kinect-net-sdk-part-iii-adjusting-the-kinect-camera-angle/"><span style="font-size:x-small;">Development With Kinect .NET SDK (Part III) – Adjusting the Kinect Camera Angle</span></a></p></blockquote>
<p>Hope this helps !</p>
<p>Cheers !!</p>
<p>Abhijit</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/kinect/'>Kinect</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3208/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3208/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3208/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3208&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/09/20/development-with-kinect-net-sdk-part-iv-connecting-multiple-kinect-devices-with-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/camera_not_detected_thumb.png" medium="image">
			<media:title type="html">Camera_Not_Detected</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb58.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb59.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/devicemanager_kinect2_thumb.png" medium="image">
			<media:title type="html">DeviceManager_Kinect2</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/devicedetectioncode_thumb.png" medium="image">
			<media:title type="html">DeviceDetectionCode</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/wlemoticon-lightbulb.png" medium="image">
			<media:title type="html">Light bulb</media:title>
		</media:content>
	</item>
		<item>
		<title>Development With Kinect .NET SDK (Part III) &#8211; Adjusting the Kinect Camera Angle</title>
		<link>http://abhijitjana.net/2011/09/18/development-with-kinect-net-sdk-part-iii-adjusting-the-kinect-camera-angle/</link>
		<comments>http://abhijitjana.net/2011/09/18/development-with-kinect-net-sdk-part-iii-adjusting-the-kinect-camera-angle/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 12:00:29 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Kinect Camera]]></category>
		<category><![CDATA[Kinect Camera Angle]]></category>
		<category><![CDATA[Kinect Tutorial]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/?p=3185</guid>
		<description><![CDATA[This is the Part III of my Kinect .NET SDK Development series post. In past two posts I have discussed about  Installation of Kinect Devices along with setting up your development environment and Exploring NUI APIs with Camera. In this post I am going to cover some more fundamental stuff of Kinect Camera. Kinect .NET [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3185&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the Part III of my Kinect .NET SDK Development series post. In past two posts I have discussed about  <a href="http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/" target="_blank">Installation of Kinect Devices along with setting up your development environment</a> and <a href="http://abhijitjana.net/2011/09/17/development-with-kinect-net-sdk-part-ii-using-nui-apis-with-camera/" target="_blank">Exploring NUI APIs with Camera</a>. In this post I am going to cover some more fundamental stuff of Kinect Camera. Kinect .NET SDK provides some API to interact with motorized tilt ( Check out the device details section of first post for more information )  to enables the camera up (<span style="color:#000080;">+27 Degree</span>)  or down (<span style="color:#000080;">-27 degrees</span>) .  To adjust the motorized tilt  you need to  set the <span style="color:#000080;">NUI</span> Cameras <span style="color:#000080;">ElevationAngle</span> property to a value between –27 and +27.<br />
<span id="more-3185"></span><br />
<a href="http://abhijitjana.files.wordpress.com/2011/09/image53.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb52.png?w=378&h=164" alt="image" width="378" height="164" border="0" /></a><br />
let’s follow the below step to create an application to demonstrate it.</p>
<p><strong>Step 1.</strong> Create a <span style="color:#000080;">New WPF Project</span> in Visual Studio 2010 named it as “<span style="color:#000080;">AdjustingKinectCameraDemo</span>”</p>
<p><strong>Step 2.</strong> Add “<span style="color:#000080;">Microsoft.Research.Kinect.dll</span>” as <span style="color:#000080;">Reference Assembly</span>.</p>
<p><strong>Step 3.</strong> Open the code view of your application and add “<span style="color:#000080;">Microsoft.Research.Kinect.Nui</span>” as <span style="color:#000080;">Namespaces</span>.</p>
<p><strong>Step 4.</strong> The next thing we are going to do is, designing a small UI with one <span style="color:#000080;">Image Control</span>, <span style="color:#000080;">TextBox</span> and a <span style="color:#000080;">Button control</span>.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image54.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb53.png?w=418&h=271" alt="image" width="418" height="271" border="0" /></a></p>
<p>You can use below <span style="color:#000080;">XAML</span> Markup for the above design</p>
<p><pre class="brush: csharp;">
 &lt;Grid&gt;
        &lt;Image Height=&quot;203&quot; HorizontalAlignment=&quot;Left&quot; Margin=&quot;120,23,0,0&quot;
               Name=&quot;imageControl&quot; Stretch=&quot;Fill&quot; VerticalAlignment=&quot;Top&quot; Width=&quot;268&quot; /&gt;
        &lt;TextBox Height=&quot;34&quot; HorizontalAlignment=&quot;Left&quot;
                 Margin=&quot;158,240,0,0&quot; Name=&quot;textAngel&quot;
                 VerticalAlignment=&quot;Top&quot; Width=&quot;119&quot; /&gt;
        &lt;Button Content=&quot;Ok&quot; Height=&quot;36&quot; HorizontalAlignment=&quot;Left&quot;
                Margin=&quot;287,240,0,0&quot; Name=&quot;buttonAngel&quot;
                VerticalAlignment=&quot;Top&quot; Width=&quot;89&quot; Click=&quot;buttonAngle_Click&quot; /&gt;
    &lt;/Grid&gt;
</pre></p>
<p><strong>Step 5.</strong> The next step is to<span style="color:#000080;"> initialize the Kinect Runtime</span> and <span style="color:#000080;">display the video into image control</span>. We did this exercise in our last post.  So, here I am not explaining how to do that, Just use below code snippet for the same.</p>
<p><pre class="brush: csharp;">
       /// &lt;summary&gt;
        /// Define the Kinect Sensor Runtime
        /// &lt;/summary&gt;
        Runtime kinectRuntime = new Runtime();

        /// &lt;summary&gt;
        /// Initializes a new instance of the &lt;see cref=&quot;MainWindow&quot;/&gt; class.
        /// &lt;/summary&gt;
        public MainWindow()
        {
            InitializeComponent();
            Loaded += new RoutedEventHandler(MainWindow_Loaded);
            Unloaded += new RoutedEventHandler(MainWindow_Unloaded);
        }

        /// &lt;summary&gt;
        /// Handles the Unloaded event of the MainWindow control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void MainWindow_Unloaded(object sender, RoutedEventArgs e)
        {
            // Uninitialize the Device when Unload
            this.kinectRuntime.Uninitialize();
        }

        /// &lt;summary&gt;
        /// Handles the Loaded event of the MainWindow control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            // Initialize the Device when Load
            this.kinectRuntime.Initialize(RuntimeOptions.UseColor);
            this.kinectRuntime.VideoFrameReady += new EventHandler&lt;ImageFrameReadyEventArgs&gt;(kinectRuntime_VideoFrameReady);
            this.kinectRuntime.VideoStream.Open(ImageStreamType.Video, 2, ImageResolution.Resolution640x480, ImageType.Color);
        }

        /// &lt;summary&gt;
        /// Handles the VideoFrameReady event of the kinectRuntime control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;Microsoft.Research.Kinect.Nui.ImageFrameReadyEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        void kinectRuntime_VideoFrameReady(object sender, ImageFrameReadyEventArgs e)
        {
            PlanarImage planarImage = e.ImageFrame.Image;
            imageControl.Source = BitmapSource.Create(planarImage.Width, planarImage.Height, 96, 96, PixelFormats.Bgr32, null, planarImage.Bits, planarImage.Width * planarImage.BytesPerPixel);
        }
</pre></p>
<p><strong>Step 6 :</strong> Change the camera angle on button click as show in below code snippet.</p>
<p><pre class="brush: csharp;">
  /// &lt;summary&gt;
        /// Handles the Click event of the buttonAngle control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonAngle_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                // Set the ElevationAngle of current runtime camera
                this.kinectRuntime.NuiCamera.ElevationAngle = Convert.ToInt32(this.textAngel.Text);
            }
            catch (ArgumentOutOfRangeException exp)
            {
                MessageBox.Show(exp.Message);
            }
        }

</pre></p>
<p>If the value of Elevation Angel &gt; 27 or &lt; -27  degree application will trow a &#8220;<span style="color:#000080;">ArgumentOutOfRangException</span>&#8221; .</p>
<p>That’s all, just run the application and give the textbox value in between +27 to  -27, you will see the Kinect motorized tilt is changing with the camera angel. Below is the screen shots with Angel 0, +27 and – 27 degrees where as  the position of Kinect device was same.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image55.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb54.png?w=281&h=174" alt="image" width="281" height="174" align="left" border="0" /></a><a href="http://abhijitjana.files.wordpress.com/2011/09/image56.png"><img class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb56.png?w=237&h=169" alt="image" width="237" height="169" align="right" border="0" /></a></p>
<p>Check out the quick Video demo as well.</p>
<div><span style="text-align:center; display: block;"><a href="http://abhijitjana.net/2011/09/18/development-with-kinect-net-sdk-part-iii-adjusting-the-kinect-camera-angle/"><img src="http://img.youtube.com/vi/6nT4X34syvY/2.jpg" alt="" /></a></span></div>
<p>Note, this features is not for frequent uses. Generally this need to setup and track skeleton during the start up of your Application.</p>
<p>Read <a href="http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/guides.aspx">Kinect SDK Documentation</a> for more information.</p>
<h2><strong><strong><a href="https://skydrive.live.com/?cid=6ab190a26079cd46&amp;sc=documents&amp;nl=1&amp;uc=1&amp;id=6AB190A26079CD46%21218">Download Complete Project </a></strong></strong></h2>
<p>Till now whatever we have learned we learned about a single Kinect Device. In my next two post I will discussion about <em><span style="text-decoration:underline;">configuring multiple Kinect Devices and then will develop a application using Multiple devices</span></em>. Then we will bake with Skeleton Tracking and Audio fundamentals.  So lot&#8217;s of interesting stuff on the way !!!</p>
<p>Hope this helps !</p>
<p>Cheers !!</p>
<p>AJ</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/kinect/'>Kinect</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3185/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3185/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3185/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3185&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/09/18/development-with-kinect-net-sdk-part-iii-adjusting-the-kinect-camera-angle/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb52.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb53.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb54.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb56.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Development With Kinect .NET SDK (Part I) &#8211; Installation and Development Environment Setup</title>
		<link>http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/</link>
		<comments>http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 19:08:08 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Kinect]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[Kinect Tutorial]]></category>
		<category><![CDATA[Setup Kinect SDK Development Environment]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/?p=3091</guid>
		<description><![CDATA[The Kinect SDK is a developer toolkit for developing applications. This SDK provides a fantastic interface to interact with Kinect programmatically. The Kinect for Windows SDK beta includes drivers that interact with H/W and provides an interface to interact with device, APIs for  interacting with  Camera, Sensors, microphone and Motor. The SDK provides capabilities to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3091&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <span style="color:#000080;">Kinect SDK</span> is a developer toolkit for developing applications. This <span style="color:#000080;">SDK</span> provides a fantastic interface to interact with <span style="color:#000080;">Kinect</span> programmatically. The Kinect for Windows SDK beta includes drivers that interact with H/W and provides an interface to interact with device, APIs for  interacting with  Camera, Sensors, microphone and Motor. The SDK provides capabilities to the developers who build applications with  C#, VB or C++  with Visual Studio 2010  which is running on Windows 7. I started developing application with Kinect SDK almost 2 months back, from the day when I received my Kinect Device. I tweeted about my first application over <a href="http://twitter.com/#!/AbhijitJana/status/86311041025327104" target="_blank">here</a>  and I am still learning about the Kinect SDK API’s and how to use them in different ways. Let’s share the learning over here. I will keep posting as step by step to allow you to  understand the API&#8217;s and get inside Kinect development. I will write a series of post where I will discuss about fundamentals of Kinect SDK API and developing Application using it and yes Step by Step and obviously with Demo Project</p>
<p><span id="more-3091"></span></p>
<p>So what are the thing we are going to learn today ? Well, we will learn about the system requirements and the installation of the Kinect device, which will ensure that our device setup properly and we are good to start with development.</p>
<h2><span style="color:#000080;">Get Ready with Your Development Environment</span></h2>
<p>The current version of Kinect for Windows SDK beta 1  needs below requirements to start</p>
<h3>Hardware</h3>
<ul>
<li><a href="http://www.xbox.com/en-US/Xbox360/Accessories/Kinect/kinectforxbox360">Kinect for Xbox 360 sensor</a></li>
<li>Computer with a dual-core, 2.66-GHz or faster processor</li>
<li>Windows 7–compatible graphics card that supports DirectX® 9.0c capabilities</li>
<li>2-GB RAM (4-GB RAM recommended)</li>
</ul>
<h3>Software</h3>
<ul>
<li>Windows 7 (x86 or x64)</li>
<li><a href="http://www.microsoft.com/express/downloads/">Visual Studio 2010 Express</a> (or other 2010 edition)</li>
<li><a href="http://msdn.microsoft.com/en-us/netframework/aa569263">Microsoft .NET Framework 4.0</a></li>
</ul>
<p><a href="http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/download.aspx" target="_blank">Refer ^ for more information</a></p>
<h2><span style="color:#000080;">Download and Install Kinect for Windows SDK beta</span></h2>
<p><a href="http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/download.aspx" target="_blank">Download the SDK Beta</a>, Once you have the development environment setup ready. Please make sure you are downloading the <span style="text-decoration:underline;"><em>SDK Version based on 64bit or 32bit Operating System</em></span>. Once done with download, install it. You really do not need to plugin your Kinect devices during the installation of SDK.</p>
<h2> <span style="color:#000080;">Know your Kinect Device</span></h2>
<p>Before checking out Driver installation, let’s have a quick look into the basic H/W elements of Kinect. This contains 3d Depth Sensors, RGB Camera which is used for Video Capturing , Array of MIC and TILT.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image9.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb9.png?w=482&h=306" alt="image" width="482" height="306" border="0" /></a></p>
<p>Kinect SDK provides some API to interact with motorized tilt to enables the camera up or down 27 degrees  . This API is the part of Kinect Camera.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image10.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb10.png?w=279&h=174" alt="image" width="279" height="174" border="0" /></a></p>
<p>I will be talking details about each and everything in my upcoming post while exploring the API’s for each every section.</p>
<h2><span style="color:#000080;">Checkout your Installation of Device Driver</span></h2>
<p>Plug in your Kinect USB cable with Computer. Once Windows detects the devices, you will get the LED Indicator blinking ( Yeah, this one is mine) .</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/wp_000633.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="WP_000633" src="http://abhijitjana.files.wordpress.com/2011/09/wp_000633_thumb.jpg?w=391&h=293" alt="WP_000633" width="391" height="293" border="0" /></a></p>
<p>Wait for Windows to recognize the sponsor&#8217;s.  You can check it out from <strong>Control Panel &gt; Device Manager</strong> for the installed device driver. By default with only USB connection, Windows will detect only the device, as shown in below picture.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image11.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb11.png?w=215&h=385" alt="image" width="215" height="385" border="0" /></a></p>
<p>But, Camera , Sensors and Audio is yet to detect. Here is a point, To detect all  Kinect elements, device need some high power supply. For that you need to plug the power supply to your Kinect Device from external Power Source. This will enables windows to detect all the components of Kinect Devices.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image12.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb12.png?w=218&h=338" alt="image" width="218" height="338" border="0" /></a></p>
<p>Here is the Quick Video for the Device detection.</p>
<div id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:47204f19-b826-406e-90ed-f118af2c5541" class="wlWriterEditableSmartContent" style="display:inline;float:none;margin:0;padding:0;">
<div><span style="text-align:center; display: block;"><a href="http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/"><img src="http://img.youtube.com/vi/4rJA0hSYOvs/2.jpg" alt="" /></a></span></div>
<div style="width:448px;clear:both;font-size:.8em;">Kinect Device Detection : A Small Clip Recorded</div>
</div>
<h4></h4>
<h4></h4>
<h4></h4>
<h4></h4>
<h2><span style="color:#000080;"><strong>Test Your Device </strong></span></h2>
<p>You have done with setup and installation. Let have a quick test your device.  Kinect SDK installs few sample application , Sample Skeletal Viewer is one of them. Just run that application, you will able to see your view in Depth View Skeletal View and Camera View.</p>
<h4><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image13.png?w=775&h=295" alt="image" width="775" height="295" border="0" /></h4>
<p>If all of them are coming up. Your are all set to start development.</p>
<h2><span style="color:#000080;">What else Kinect SDK installed for Developers ?</span></h2>
<p>Yes, Kinect SDK also installed a best resource to learn Kinect SDK Development and Explore the APIs. This installation contains, Kinect SDK API Reference file.<em> I learned most of the things from here itself.</em></p>
<h2><span style="color:#000080;"><strong>How Application Interacts with Kinect</strong></span></h2>
<p>You have already installed SDK and Kinect Setup properly . So before start with development, let have a look how Application interacts with Kinect Devices. Kinect SDK Installed set of API to interact with Devices, You application will talk to those APIs and APIs will talk to Devices. Below images shows the same flow.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image14.png"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb13.png?w=245&h=306" alt="image" width="245" height="306" border="0" /></a></p>
<h2><span style="color:#000080;"><strong>Staring With Application Development</strong>  :</span></h2>
<p>Finally all the setup are done.  Let’s  have start some development with Visual Studio 2010 and create a small application  which will <span style="color:#000000;">Initialize Kinect Sensor and display the Unique device name</span></p>
<p>Fire a new instance of Visual Studio, Select New Project Option from file Menu and Select “WPF Application” Template , Give the name as “MyFirstKinectDemo”</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image15.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb14.png?w=506&h=296" alt="image" width="506" height="296" border="0" /></a></p>
<p>Click on OK, It will create a blank WPF Application for you.  Before going ahead, first lets design the UI as show in below</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image16.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb15.png?w=516&h=314" alt="image" width="516" height="314" border="0" /></a></p>
<p>Below code snippet  is the XAML markup for the above design. Well, its very simple.</p>
<p></p>
<p>Now it’s time to interact with Kinect SDK API’s. To start with, you need to first add the reference of  Kinect SDK assemblies. Navigate to solution explorer, <span style="color:#000000;">Right Click</span> on the Project and Select <span style="color:#000000;">“Add Reference”</span></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image17.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb16.png?w=318&h=181" alt="image" width="318" height="181" border="0" /></a></p>
<p>The assembly you need to add is “Microsoft.Research.Kinect.dll” ,  You can search for Kinect keyword in the Assembly search text box to get it faster.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image88.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image88_thumb.png?w=652&h=192" alt="image" width="652" height="192" border="0" /></a></p>
<p>This will add Microsoft.Research.Kinect.dll as reference to your project. The top level view of this assembly  in Object Explorer given as below. These two are the different segment of Kinect APIs.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image18.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb17.png?w=315&h=86" alt="image" width="315" height="86" border="0" /></a></p>
<p>If you want to interact with NUI ( Natural User Interface)   API  like camera, sensors, Skeleton viewer  you have to use the below namespaces.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image105.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image105_thumb.png?w=374&h=37" alt="image" width="374" height="37" border="0" /></a></p>
<p>If you want to interact with Kinect Audio Array, you have to include</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image112.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image112_thumb.png?w=376&h=34" alt="image" width="376" height="34" border="0" /></a></p>
<p>For this application, we will be using NUI API hence we will be adding below namespaces with our code.</p>
<p><pre class="brush: csharp;">
using Microsoft.Research.Kinect.Nui;
</pre></p>
<p>First of all you need to define the runtime of Kinect as shown in below,  this represents the instance of Kinect Sensor.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image20.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb19.png?w=333&h=55" alt="image" width="333" height="55" border="0" /></a></p>
<p>After that,  initialize the runtime with the options you want to use. Below are this Runtime options which Kinect Supports</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image21.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb20.png?w=452&h=110" alt="image" width="452" height="110" border="0" /></a></p>
<p>In the next article I will discuss more about the runtime options. For this example,  use RuntimeOptions.UseColor to use the RGB camera.</p>
<p>Below is complete Code snippet for Initialize and Uninitialized the Kinect Device.</p>
<p><pre class="brush: csharp;">

    /// &lt;summary&gt;
    /// Interaction logic for MainWindow.xaml
    /// &lt;/summary&gt;
    public partial class MainWindow : Window
    {
        /// &lt;summary&gt;
        ///
        /// &lt;/summary&gt;
        Runtime nuiRuntime = new Runtime();

        /// &lt;summary&gt;
        /// Initializes a new instance of the &lt;see cref=&quot;MainWindow&quot;/&gt; class.
        /// &lt;/summary&gt;
        public MainWindow()
        {
            InitializeComponent();
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the buttonInitialize control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonInitialize_Click(object sender, RoutedEventArgs e)
        {
           // Intialize Kinect Device with UseColor Runtime Option
            nuiRuntime.Initialize(RuntimeOptions.UseColor);
            MessageBox.Show(&quot;Device Runtime Initialized&quot;);

            //Get the Camera Device Name
            labelDeviceName.Content = nuiRuntime.NuiCamera.UniqueDeviceName;
        }

        /// &lt;summary&gt;
        /// Handles the Click event of the buttonUnInitialize control.
        /// &lt;/summary&gt;
        /// &lt;param name=&quot;sender&quot;&gt;The source of the event.&lt;/param&gt;
        /// &lt;param name=&quot;e&quot;&gt;The &lt;see cref=&quot;System.Windows.RoutedEventArgs&quot;/&gt; instance containing the event data.&lt;/param&gt;
        private void buttonUnInitialize_Click(object sender, RoutedEventArgs e)
        {
            // Uninitilize Runtime
            nuiRuntime.Uninitialize();
            MessageBox.Show(&quot;Device Runtime UnInitialized&quot;);
        }
    }
</pre></p>
<p>That’s all, Run the Application and Click on “Initialize Kinect Runtime” , your application will initialize a runtime of Kinect device via SDK APIs and you will get below message as written in code.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image22.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb21.png?w=405&h=56" alt="image" width="405" height="56" border="0" /></a></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image23.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb22.png?w=413&h=267" alt="image" width="413" height="267" border="0" /></a></p>
<p>After the acceptance of the initialize message, you will get the Unique Camera device name.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image24.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb23.png?w=337&h=36" alt="image" width="337" height="36" border="0" /></a></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image25.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb24.png?w=379&h=247" alt="image" width="379" height="247" border="0" /></a></p>
<p>Clicking on “Uninitialized Kinect Runtime, button will execute the below code to uninitialized device</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image26.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb25.png?w=337&h=62" alt="image" width="337" height="62" border="0" /></a></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/09/image27.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/09/image_thumb26.png?w=441&h=271" alt="image" width="441" height="271" border="0" /></a></p>
<h2><a href="https://skydrive.live.com/?cid=6ab190a26079cd46&amp;sc=documents&amp;nl=1&amp;uc=1&amp;id=6AB190A26079CD46%21218"><strong><span style="color:#000080;">Download Sample</span></strong></a></h2>
<p>Well, That’s all . To Summarize the stuff what I have discussed till now is, setting up your development environment, installing Kinect SDK, Detecting  the devices and a small application to initialize the  Kinect devices. This is only the beginning, we will talk a lot more about API and will start with something new in my next post.</p>
<p><a href="http://research.microsoft.com/en-us/um/redmond/projects/kinectsdk/default.aspx">More Study and Reference</a></p>
<p>Thanks !</p>
<p>Abhijit</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/kinect/'>Kinect</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3091/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3091/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3091/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3091&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/09/14/development-with-kinect-net-sdk-part-i-installation-and-development-environment-setup/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/wp_000633_thumb.jpg" medium="image">
			<media:title type="html">WP_000633</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb13.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb14.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image88_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb17.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image105_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image112_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb19.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb20.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb21.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb22.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb23.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb24.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb25.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/09/image_thumb26.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Install a shared Assembly to the GAC as post build event from Visual Studio</title>
		<link>http://abhijitjana.net/2011/08/25/install-a-shared-assembly-to-the-gac-as-post-build-event-from-visual-studio/</link>
		<comments>http://abhijitjana.net/2011/08/25/install-a-shared-assembly-to-the-gac-as-post-build-event-from-visual-studio/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 20:09:01 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Visual Studio]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Assembly]]></category>
		<category><![CDATA[GAC]]></category>
		<category><![CDATA[Gacutil]]></category>
		<category><![CDATA[install Assembly into GAC from Visual Studio]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/?p=3002</guid>
		<description><![CDATA[The Global Assembly Cache (GAC) is a Cache for globally available Assemblies. Most of the shared assemblies are installed inside GAC to shared across different applications. The Global Assembly Cache tool (Gacutil.exe) allow us to manipulate the contents of the global assembly cache along with install and un-install Assembly. During the development, we generally  take [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3002&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://msdn.microsoft.com/en-us/library/yf1d93sz.aspx" target="_blank"><em>Global Assembly Cache</em> (GAC)</a> is a Cache for globally available Assemblies. Most of the <a href="http://msdn.microsoft.com/en-us/library/aa371839%28v=vs.85%29.aspx" target="_blank"><em>shared assemblies</em></a> are installed inside GAC to shared across different applications. The <a href="http://msdn.microsoft.com/en-us/library/ex0ss12c.aspx" target="_blank">Global Assembly Cache tool</a> (Gacutil.exe) allow us to manipulate the contents of the global assembly cache along with install and un-install Assembly. During the development, we generally  take help of <em>gacutil</em> from command prompt to install or uninstall assemblies into or from GAC. This is a repetitive process, every time you made some changes in your library you might need to deploy it into the GAC. Visual Studio has a nice feature called Pre-Build and Post-Build events. Using these events we execute some specific  commands before or after the build. In this post I am going to show you how we can configure the post build event to deploy an Assembly to GAC.</p>
<p><span id="more-3002"></span></p>
<p>Installing Assembly to the  GAC requires admin privileges. Visual Studio must be started with elevated rights.  From the <em>Project Properties Window  Page</em> of the class library ( which you want to put into GAC) , Navigate to “<em>Build Events”</em> Tab.  Build Events tab having two command line option for both Pre-Build and Post-Build event.  We will be configuring the Post Build Event to install the dll into GAC because we want to put the dll into GAC after the successful build.</p>
<p>Below is the  typical syntax for installing Assembly into GAC  from command prompt which we used generally</p>
<p><pre class="brush: csharp;">
gacutil [options] [assemblyName | assemblyPath | assemblyListFile]
</pre></p>
<p><em>Visual Studio Build Events</em> also use the same syntax. But, the interesting part is the Location of GAC.  Yes, the GAC was split into two. We all knows, .NET 4.0 introduced CLR 4.0. NET Framework 2.0 and .NET Framework 3.5 targeted to  CLR 2.0  and  .NET Framework 4.0 is targeted to CLR 4.0. The GAC is now split into private GAC’s for each runtime that targeted differently to CLR 2.0 and CLR 4.0 . I will recommend you read the article  “<a href="http://msdn.microsoft.com/en-us/magazine/dd727509.aspx" target="_blank">Understanding the CLR Binding”</a> for more details.</p>
<p>Let’s assume, the Assembly is targeted to .NET 4.0 . To Add this Assembly, we have to specify the below Pre-Build Command.</p>
<p><pre class="brush: csharp;">
&quot;%ProgramFiles%\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\gacutil.exe&quot;  /i &quot;$(TargetPath)&quot;
</pre></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image32.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb32.png?w=580&h=417" alt="image" width="580" height="417" border="0" /></a></p>
<p><em>$(TargetPath)</em> is a pre defined macros that returns the dll full path.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image33.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb33.png?w=494&h=322" alt="image" width="494" height="322" border="0" /></a></p>
<p>Ok, that’s all. <em>Save</em> the file and build  your class library.  You are expecting the assembly to be installed into GAC.  But after build  you will get below error indicates something went wrong.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image34.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb34.png?w=643&h=124" alt="image" width="643" height="124" border="0" /></a></p>
<p>From the error message it is difficult to understand what’s went wrong. In this situation <em>Output window</em> is very useful. Below is the captured details by out put window.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image35.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb35.png?w=697&h=136" alt="image" width="697" height="136" border="0" /></a></p>
<p>Well, if you know what is assembly and what is shared assembly, you must be knowing about  Strong name.  A Shared Assembly must have a strong name to uniquely identify.  <a href="http://msdn.microsoft.com/en-us/library/wd40t7ad.aspx" target="_blank">Read more about strong name</a></p>
<p>So, let’s quickly create a strong name using  Strong Name tool . Open Visual Studio Command Prompt and type the below command.</p>
<p><pre class="brush: csharp;">sn –k  &gt; c:\mytestkey.snk </pre></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image36.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;float:left;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb36.png?w=703&h=172" alt="image" width="703" height="172" align="left" border="0" /></a></p>
<p>This will generates and writes the public and private key pair in C:\mytestkey.snk file. If you are interested, you can read <a href="http://msdn.microsoft.com/en-us/library/k5b5tt23%28v=vs.80%29.aspx" target="_blank">Strong Name Tool (Sn.exe)</a> for further details on Strong Name Tool.</p>
<p>Once you have done with the snk file generation, go back to<em> visual studio &gt;  Properties Pages &gt; Signing </em>Tab.  Enabled the “Sing the assembly” option. This will allow you to choose the “snk” file.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image37.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb37.png?w=670&h=177" alt="image" width="670" height="177" border="0" /></a></p>
<p>From the “<em>Choose a strong name key file”</em> dropdown, browse the newly generated snk (<em>mytestkey.snk</em>) file.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image38.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb38.png?w=564&h=86" alt="image" width="564" height="86" border="0" /></a></p>
<p>That all, now you can build the application and check the “Output window” as well for details.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image39.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb39.png?w=441&h=99" alt="image" width="441" height="99" border="0" /></a></p>
<p>Check for your GAC, you will find your assembly installed there.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image40.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border:0;" title="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb40.png?w=408&h=300" alt="image" width="408" height="300" border="0" /></a></p>
<p>For .NET Framework 3.5, if you have use below command as post build event</p>
<p><pre class="brush: csharp;">
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\gacutil.exe&quot;  /i &quot;$(TargetPath)&quot;
</pre></p>
<p>So you really don’t not need to run gacutil command from command prompt ever time after successful build. Visual Studio will take care of each and every thing automatically. For this type of scenarios, Output window is very important, because you can get details of the execution from here only. Similarly like Post-Build event, you can use Pre-Build event to remove some assemblies from GAC.</p>
<p>That’s all.</p>
<p>Hope this will help !</p>
<p>Cheers !</p>
<p>Aj.</p>
<blockquote class='twitter-tweet'><p>[New Blog Post]  Install a shared Assembly to the GAC as post build event from Visual Studio wp.me/ppvPE-Mq <a href="http://twitter.com/search?q=%23vstudio" title="#vstudio">#vstudio</a> <a href="http://twitter.com/search?q=%23gac" title="#gac">#gac</a> <a href="http://twitter.com/search?q=%23assembly" title="#assembly">#assembly</a>&mdash; <br />Abhijit Jana (@AbhijitJana) <a href='http://twitter.com/#!/AbhijitJana/status/106461017319555073' data-datetime='2011-08-24T20:20:59+00:00'>August 24, 2011</a></p></blockquote>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/visual-studio/'>Visual Studio</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/3002/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/3002/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/3002/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/3002/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/3002/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/3002/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/3002/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/3002/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=3002&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/08/25/install-a-shared-assembly-to-the-gac-as-post-build-event-from-visual-studio/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb32.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb33.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb34.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb35.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb36.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb37.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb38.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb39.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb40.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Tracking Out of Scope Objects using DataTips while debugging in Visual Studio 2010</title>
		<link>http://abhijitjana.net/2011/08/10/tracking-out-of-scope-objects-using-datatips-while-debugging-in-visual-studio-2010/</link>
		<comments>http://abhijitjana.net/2011/08/10/tracking-out-of-scope-objects-using-datatips-while-debugging-in-visual-studio-2010/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 06:35:56 +0000</pubDate>
		<dc:creator>Abhijit Jana</dc:creator>
				<category><![CDATA[.NET 4.0]]></category>
		<category><![CDATA[Debugging]]></category>
		<category><![CDATA[Visual Studio 2010]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[DataTips]]></category>
		<category><![CDATA[Track out of scope Object]]></category>

		<guid isPermaLink="false">https://abhijitjana.wordpress.com/?p=2964</guid>
		<description><![CDATA[Visual Studio 2010 introduced&#160; a nice new “DataTip pinning” features that enable you to better track of variable and expression while debugging. I am sure by this time you must be knowing what is “Data Tips”&#160; and&#160; different features of it.&#160; In In this Post I am going to share a small tip which talks [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=2964&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Visual Studio 2010 introduced&#160; a nice new “<a href="http://msdn.microsoft.com/en-us/library/ea46xwzd.aspx" target="_blank">DataTip pinning</a>” features that enable you to better track of variable and expression while debugging. I am sure by this time you must be knowing what is “Data Tips”&#160; and&#160; different features of it.&#160; In In this Post I am going to share a small tip which talks about tracking some out of scope object using DataTips while debugging.</p>
<p><span id="more-2964"></span>
<p>Keeping track of out of scope object is not&#160; new stuff in Visual Studio. You can use “Watch Window” to keep track of out of scope object while debugging by Creating a “Object ID”. Here is one of my old post which discussed about <a href="http://abhijitjana.net/2010/10/20/how-to-track-an-object-which-is-out-of-scope-while-debugging/" target="_blank">How to track an object which is Out of Scope while Debugging ?</a></p>
<p>Visual Studio 2010 DataTip also supports creating “<font color="#000080">Object ID</font>” of objects. By using “<font color="#000080">Make Object ID</font>” option we are informing Visual Studio Debugger <em>to keep track of that object no matter it’s within scope or out of scope for the current context</em>. Along with “<em>DataTips</em>” we can create “<em>Object ID</em>” either from Locals, Autos or from Watch Windows. Object ID is a integer number followed by a pound (#) sign. When we create Object ID for an particular object, <font color="#000080">Visual Studio Debugger ( CLR Debugging Services )</font> use an integer value to uniquely identify the object. This “<em>Object ID”</em> allows you to get the object details even if it is out of scope.</p>
<p>Let’s consider a simple example where we have a list of students and we are displaying them in a console.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image15.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb15.png?w=341&h=195" width="341" height="195" /></a></p>
<p>On Run above code snippet will give output something like this</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image16.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb16.png?w=317&h=120" width="317" height="120" /></a></p>
<p>In the next step, we have set a breakpoint while displaying the information in console and Pinned the current <em>Stud</em> object which is the <em>Students[0].</em> </p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image17.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb17.png?w=515&h=80" width="515" height="80" /></a></p>
<p>On the next iteration, pinned element will change&#160; to<em> Students[1]</em> and similarly to Students[2] and Student[3] for rest other iteration.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image18.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb18.png?w=428&h=62" width="428" height="62" /></a></p>
<p>Now, assume currently you are inspecting the object “<em>Stud</em>” in pinned DataTips which is referring “<em>Students[1]”</em> , at this point you want the value of&#160; previous “<em>stud</em>” object which was point to “Students[0]. Well, don’t say that we have the value in Students list and we can check it from there, yes we can, but our objective is something different here.&#160; Let’s focus on how we can retain the previous values of Stud object.</p>
<p>So now we are going to create an object ID for stud to keep the track.&#160; How ? Well, with in DataTip, just right click on the object and select “<font><em><strong>Make Object ID</strong></em></font>”</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image19.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb19.png?w=547&h=107" width="547" height="107" /></a></p>
<p>This will add&#160; a number with the pound (#) sign with in value field of Data Tips. That #number is the unique identifier of the marked object.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image20.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb20.png?w=345&h=109" width="345" height="109" /></a></p>
<p>By referring the object Id we can get the value of Object at any point of time during debugging no matter of the scope of the object.&#160; This is very simple example, but think about you want to keep track of some object information which are in some local method scope.</p>
<p>What next ? Iterate to next element, DataTip will show the element of Students[1] .</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image21.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb21.png?w=546&h=62" width="546" height="62" /></a></p>
<p>So where is our previous “<em>Stud</em>” object. To get that value, right click on “<em>DataTips</em>” and select “<strong>Add Expression</strong>”</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image22.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb22.png?w=251&h=185" width="251" height="185" /></a></p>
<p>This will create a placeholder for new elements with in DataTips. </p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image23.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb23.png?w=298&h=100" width="298" height="100" /></a></p>
<p>Type 1# with in the new place holder and that’s all. <img style="border-style:none;" class="wlEmoticon wlEmoticon-thumbsup" alt="Thumbs up" src="http://abhijitjana.files.wordpress.com/2011/08/wlemoticon-thumbsup.png?w=460" /> You have the value of previous “Stud” objects. </p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image24.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb24.png?w=451&h=148" width="451" height="148" /></a></p>
<p>Similarly you can create more “Object ID” to keep other variables as well. You can inspect that object in Immediate window as well </p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image25.png"><img style="background-image:none;padding-left:0;padding-right:0;display:inline;padding-top:0;border-width:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb25.png?w=354&h=138" width="354" height="138" /></a>&#160;</p>
<p>On a side note, you can&#160; also use <em>Visual Studio Memory Window</em> to check if there is something exists on the particular Address or not.&#160; You can navigate to Memory Window from Debug &gt; Windows &gt; Memory <strong>.</strong></p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image26.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb26.png?w=425&h=220" width="425" height="220" /></a></p>
<p><strong>Note :</strong> The Memory window is available only if address-level debugging is enabled ( <em>Tools &gt; Options &gt; Debugging</em> )</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image27.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb27.png?w=333&h=56" width="333" height="56" /></a></p>
<p>Before create the Object ID, if you try to find out the address, you will get “unable to evaluate the expression” message.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image28.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb28.png?w=597&h=165" width="597" height="165" /></a></p>
<p>On creation of Object ID, you will get the memory details of the Object.</p>
<p><a href="http://abhijitjana.files.wordpress.com/2011/08/image29.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://abhijitjana.files.wordpress.com/2011/08/image_thumb29.png?w=600&h=166" width="600" height="166" /></a></p>
<p>I will suggest to give a look at my previous article&#160; for details discussion on “<a href="http://abhijitjana.net/2010/10/20/how-to-track-an-object-which-is-out-of-scope-while-debugging/" target="_blank">Watch window and Object ID Creation” </a></p>
<p>To Summarize, By using “<em>Make Object ID”</em> option we are informing Visual Studio Debugger to Keep track of that object no matter it’s within scope or out of scope. When we create Object ID for an particular object, Visual Studio Debugger ( CLR Debugging Services ) use an integer value to uniquely identify the object. This “Object ID” allows you to get the object details even if it is out of scope. If you received the message “<em>Can’t evaluate the Object Values”</em> while working with “Object ID”, it means that Object has been garbage collected. This is another way where you can identify that an Object has been garbage collected.</p>
<blockquote><p><img style="border-style:none;" class="wlEmoticon wlEmoticon-lightbulb" alt="Light bulb" src="http://abhijitjana.files.wordpress.com/2011/08/wlemoticon-lightbulb.png?w=460" />Related Post : </p>
<p><a href="http://abhijitjana.net/2010/10/20/how-to-track-an-object-which-is-out-of-scope-while-debugging/" target="_blank">How to track an object which is Out of Scope while Debugging ?</a></p>
<p><a href="http://abhijitjana.net/2010/10/26/10-tips-you-should-know-about-watch-window-while-debugging-in-visual-studio/">10 Tips you should know about “Watch Window” While debugging in Visual Studio</a></p>
<p><a href="http://abhijitjana.net/2010/12/02/how-to-use-out-of-scope-object-with-in-conditional-breakpoint/">How to use out of scope object with in Conditional Breakpoint ?</a></p>
</blockquote>
<p>Hope this will help !</p>
<p>Cheers !</p>
<p>Aj</p>
<br />Filed under: <a href='http://abhijitjana.net/category/net-4-0/'>.NET 4.0</a>, <a href='http://abhijitjana.net/category/debugging/'>Debugging</a>, <a href='http://abhijitjana.net/category/visual-studio-2010/'>Visual Studio 2010</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/abhijitjana.wordpress.com/2964/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/abhijitjana.wordpress.com/2964/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/abhijitjana.wordpress.com/2964/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/abhijitjana.wordpress.com/2964/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/abhijitjana.wordpress.com/2964/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/abhijitjana.wordpress.com/2964/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/abhijitjana.wordpress.com/2964/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/abhijitjana.wordpress.com/2964/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=abhijitjana.net&#038;blog=6080566&#038;post=2964&#038;subd=abhijitjana&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://abhijitjana.net/2011/08/10/tracking-out-of-scope-objects-using-datatips-while-debugging-in-visual-studio-2010/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2d57d87d3990f59469b6b6bd8f03f490?s=96&#38;d=wavatar&#38;r=G" medium="image">
			<media:title type="html">Abhijit Jana</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb15.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb16.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb17.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb18.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb19.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb20.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb21.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb22.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb23.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/wlemoticon-thumbsup.png" medium="image">
			<media:title type="html">Thumbs up</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb24.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb25.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb26.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb27.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb28.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/image_thumb29.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://abhijitjana.files.wordpress.com/2011/08/wlemoticon-lightbulb.png" medium="image">
			<media:title type="html">Light bulb</media:title>
		</media:content>
	</item>
	</channel>
</rss>
