<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://geeks.netindonesia.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Incoherent Rambling</title><link>http://geeks.netindonesia.net/blogs/jimmy/default.aspx</link><description>.Net, coding, architecture and life in general</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 20917.1142)</generator><item><title>WTF Moment - 403 - Forbidden: Access is denied when browsing to Azure role inside Dev Environment</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx</link><pubDate>Wed, 24 Apr 2013 00:58:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:194755</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=194755</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;Problem origin:&lt;/p&gt;&lt;p&gt;Installed a new Azure development platform using Win7, VS2010, SQL 2012 Express.&amp;nbsp; Installed latest Azure tools, and stopped .NET 4.5 installation midway...&lt;/p&gt;&lt;p&gt;Loaded the Azure project in VS,&amp;nbsp;tried&amp;nbsp;debugging. Debugger wouldn&amp;#39;t attach.&lt;/p&gt;&lt;p&gt;Ran without debugger, browser loaded and ... 403.&amp;nbsp; WTF&lt;/p&gt;&lt;p&gt;Messed around with IIS settings and&amp;nbsp;permission&amp;nbsp;from Management console... didn&amp;#39;t work.&lt;/p&gt;&lt;p&gt;Bang head on wall... look around some more... found this...&lt;/p&gt;&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/9472490/windows-azure-cant-start-locally"&gt;http://stackoverflow.com/questions/9472490/windows-azure-cant-start-locally&lt;/a&gt;&lt;/p&gt;&lt;p&gt;aspnet_regiis -I to the rescue...&lt;/p&gt;&lt;p&gt;Everything started working again :).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx&amp;amp;subject=WTF Moment - 403 - Forbidden: Access is denied when browsing to Azure role inside Dev Environment" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx&amp;amp;t=WTF+Moment+-+403+-+Forbidden%3a+Access+is+denied+when+browsing+to+Azure+role+inside+Dev+Environment" target="_blank" title="Submit WTF Moment - 403 - Forbidden: Access is denied when browsing to Azure role inside Dev Environment to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx&amp;amp;title=WTF+Moment+-+403+-+Forbidden%3a+Access+is+denied+when+browsing+to+Azure+role+inside+Dev+Environment" target="_blank" title="Submit WTF Moment - 403 - Forbidden: Access is denied when browsing to Azure role inside Dev Environment to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx&amp;amp;phase=2" target="_blank" title="Submit WTF Moment - 403 - Forbidden: Access is denied when browsing to Azure role inside Dev Environment to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2013/04/24/wtf-moment-403-forbidden-access-is-denied-when-browsing-to-azure-role-inside-dev-environment.aspx&amp;amp;title=WTF+Moment+-+403+-+Forbidden%3a+Access+is+denied+when+browsing+to+Azure+role+inside+Dev+Environment" target="_blank" title="Add WTF Moment - 403 - Forbidden: Access is denied when browsing to Azure role inside Dev Environment to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=194755" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/azure/default.aspx">azure</category></item><item><title>Six Must Have Free Tools for BizTalk  Developer</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx</link><pubDate>Sat, 22 Dec 2012 03:21:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:194680</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=194680</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx#comments</comments><description>&lt;p&gt;After getting my feet wet doing BizTalk development for about a year now, I found the following free tools quite useful during development / support lifecycle (Not necessarily in order of importance).&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;1. &lt;a href="http://www.fiddler2.com" target="_blank"&gt;Fiddler&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Very very useful to be able to monitor web traffic especially when integrating with WCF / Web Service endpoint.&amp;#160; Also useful when trying to figure out what’s going across the wire when prototyping web service call using a 3rd party web service API i.e. HP Trim, IBM Maximo, SunSystems Connect, etc.&amp;#160; Found it helpful when trying to determine the correct SOAP Action to bind to the port as well.&amp;#160; Used it to debug / monitor messages flying across the wire after deployment (act as a proxy to BizTalk web service / WCF endpoints).&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;2. &lt;a href="http://www.soapui.org" target="_blank"&gt;SoapUI&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Got introduced to this tool in the last couple projects.&amp;#160; Basically Fiddler can play this role as well, but I’ve found myself using this to create and save sample SOAP calls and see what’s coming back from web service call without having to manually intercept messages coming and going across the wire ala Fiddler.&amp;#160; If you know what message you want to send across and the endpoint it needs to go to, you can fake outgoing message from one system and send it directly to the next endpoint.&amp;#160; Found it quite useful when the source system is not quite ready yet to be integrated while you have to test the next part of the integration or the inbound system is unable to communicate to BizTalk for whatever reason in a support / testing scenario.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;3. &lt;a href="http://dansharpxmlviewer.codeplex.com" target="_blank"&gt;DanSharp XmlViewer&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Quick way to get the right xpath given a sample XML file.&amp;#160; Otherwise you have to go through the XML schema in Visual Studio to figure this out.&amp;#160; Just load the sample XML, click on the node / attribute you are interested in and ouila, instant xpath.&amp;#160; You can test xpath modification as well to see what result you are going to get.&amp;#160; It has saved me a lot of headache trying to debug xml namespacing issue.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;4. &lt;a href="http://xsltcake.com/" target="_blank"&gt;xsltcake&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Awesome, I repeat… AWESOME, online tool to create and test XSL transformation ala &lt;a href="http://jsfiddle.net" target="_blank"&gt;jsfiddle&lt;/a&gt; / &lt;a href="http://jsbin.com" target="_blank"&gt;jsbin&lt;/a&gt; (similar tools for quick prototyping JavaScript and sharing them to the masses).&amp;#160; It even can do Microsoft inline scripting using inline C#, VB, etc. when you set the processor to .NET.&amp;#160; This has become my favorite free tool when I have to do custom XSLT mapping.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;5. &lt;a href="http://technet.microsoft.com/en-au/sysinternals/bb896647.aspx" target="_blank"&gt;Windows Sysinternals DebugView&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;What can I say… this is just another awesome tool.&amp;#160; One thing that is a pain to do in BizTalk solution is debugging it, so put a lot.. I mean A LOT of System.Diagnostics.Trace (TraceInfo / TraceError) statements in your expression shapes in the orchestration / custom components and see it light up inside DebugView to see what’s actually going on in your BizTalk application.&amp;#160; LIFESAVER in UAT / production environment!!&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;6. &lt;a href="http://en.wikipedia.org/wiki/Find_(command)" target="_blank"&gt;find&lt;/a&gt; (Windows built in command line tool)&lt;/p&gt;  &lt;p&gt;Hmm… couldn’t find the technet / msdn article on this, but…&amp;#160; This is a tool that you can use to quickly figure out if a particular message goes through a BizTalk “debug/audit” ports.&amp;#160; Trick is to actually save the messages you wish to audit (just subscribe to the port or build it into your orchestration).&amp;#160; Hook it up to File Receive Location and when you need to find a particular message having a certain text in it, fire up command prompt, go to the directory where you store your audit files and launch this. I.e. find /N “&amp;lt;InvoiceID&amp;gt;12934&amp;lt;/InvoiceId&amp;gt;” *.xml | more.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;There you have it…&amp;#160; Did I mention they are all free?&amp;#160; So… just use them and enjoy.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx&amp;amp;subject=Six Must Have Free Tools for BizTalk  Developer" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx&amp;amp;t=Six+Must+Have+Free+Tools+for+BizTalk++Developer" target="_blank" title="Submit Six Must Have Free Tools for BizTalk  Developer to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx&amp;amp;title=Six+Must+Have+Free+Tools+for+BizTalk++Developer" target="_blank" title="Submit Six Must Have Free Tools for BizTalk  Developer to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx&amp;amp;phase=2" target="_blank" title="Submit Six Must Have Free Tools for BizTalk  Developer to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/12/22/six-must-have-free-tools-for-biztalk-developer.aspx&amp;amp;title=Six+Must+Have+Free+Tools+for+BizTalk++Developer" target="_blank" title="Add Six Must Have Free Tools for BizTalk  Developer to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=194680" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/BizTalk/default.aspx">BizTalk</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/tool/default.aspx">tool</category></item><item><title>Hello, Windows 8 :)</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx</link><pubDate>Sat, 18 Aug 2012 21:45:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:193526</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=193526</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx#comments</comments><description>&lt;p&gt;Decided to try an in-place upgrade from Windows 7 to Windows 8 RTM last night.&amp;nbsp;&amp;nbsp; Mounted the ISO file and started the installation.&amp;nbsp; Decided to just migrate my personal files.&amp;nbsp; After a few reboots that happened probably over 15 minutes it was done.&amp;nbsp; Everything was in order and all good to go.&lt;/p&gt;&lt;p&gt;Installed some free apps from the Windows Marketplace and from what I&amp;#39;ve seen so far, I&amp;#39;m happy with the new OS and how it behave on bare metal.&amp;nbsp; Too bad there isn&amp;#39;t any touch capability on the machine that I decided to put it on.&amp;nbsp; Would love to see how that will behave.&lt;/p&gt;&lt;p&gt;To be honest, I&amp;#39;ve been frequenting JB-HIFI stores (similar to Best Buy for those who doesn&amp;#39;t know what I am talking about) and a bit disappointed that none of the current laptop offerings including the newer thinner notebooks&amp;nbsp;are sporting any touch interface.&amp;nbsp; I guess I&amp;#39;ll just have to wait a bit more time till Surface is out to try this.&amp;nbsp; At the price point of USD 299 to start (if rumor is right) I think I might just try and get one.&lt;/p&gt;&lt;p&gt;Oh, I&amp;#39;ll take back my previous comment on how Win8 was booting slow.&amp;nbsp; I am quite please to see that when booting off bare metal it IS a lot faster than 7 on my 500 gig spinning metal of death, hehehe.&amp;nbsp; I guess it was the VHD overhead after all.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx&amp;amp;subject=Hello, Windows 8 :)" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx&amp;amp;t=Hello%2c+Windows+8+%3a)" target="_blank" title="Submit Hello, Windows 8 :) to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx&amp;amp;title=Hello%2c+Windows+8+%3a)" target="_blank" title="Submit Hello, Windows 8 :) to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx&amp;amp;phase=2" target="_blank" title="Submit Hello, Windows 8 :) to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/08/19/hello-windows-8.aspx&amp;amp;title=Hello%2c+Windows+8+%3a)" target="_blank" title="Add Hello, Windows 8 :) to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=193526" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Windows+8/default.aspx">Windows 8</category></item><item><title>Booting Windows 8 from Existing VirtualBox VHD from existing Windows 7.</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx</link><pubDate>Fri, 22 Jun 2012 21:54:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:193486</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=193486</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx#comments</comments><description>&lt;p&gt;You probably already know that you can boot off VHD from Windows 7.&amp;nbsp; If you don&amp;#39;t, it&amp;#39;s about time you learn it.&amp;nbsp; It&amp;#39;s a very neat feature.&lt;/p&gt;&lt;p&gt;You also probably seen blog posts on how to install and boot Windows 8 from VHD (&lt;a title="Guide to Installing and Booting Windows 8 Developer Preview off a VHD (Virtual Hard Disk) " href="http://www.hanselman.com/blog/GuideToInstallingAndBootingWindows8DeveloperPreviewOffAVHDVirtualHardDisk.aspx" target="_blank"&gt;such as this one from @hanselman&lt;/a&gt;).&lt;/p&gt;&lt;p&gt;As everyone else that doesn&amp;#39;t actually have tons of machines&amp;nbsp;lying around&amp;nbsp;to try Windows 8 and does not want to lose the current OS installation, you probably been playing around with Windows 8 in a virtualized environment such as &lt;a title="VirtualBox" href="http://www.virtualbox.org"&gt;VirtualBox&lt;/a&gt;.&amp;nbsp; And if you do,you probably know that you can have a&amp;nbsp;virtual hard drive in VHD format when you create your virtual machine.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Hmm... &lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;so, Windows 7 can boot VHD... &lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;and VirtualBox can create VHD... &lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;and I already have a Windows 8 virtual machine that is stored in VHD format in VirtualBox.&lt;/strong&gt;&amp;nbsp; &lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Hey!! Why don&amp;#39;t I just boot it up from THAT??!!&lt;/strong&gt; &lt;img src="http://geeks.netindonesia.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Well, ... of course you can!&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;But... what the heck for... you can just create VHD in Windows 7 using diskpart utility and mount it and burn Win8 iso to USB stick and make it bootable &lt;/strong&gt;(&lt;em&gt;if you can find a&amp;nbsp;large enough one around&lt;/em&gt;) &lt;strong&gt;or a bootable DVD&lt;/strong&gt; (&lt;em&gt;who the heck does this nowadays?&lt;/em&gt;).&lt;/p&gt;&lt;p&gt;&lt;em&gt;See.. &lt;/em&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;I have VirtualBox already (&lt;em&gt;I did mentioned this, right?&lt;/em&gt;).&amp;nbsp; &lt;/li&gt;&lt;li&gt;It&amp;#39;s easy enough to create VHD and install Win8 (&lt;em&gt;doesn&amp;#39;t matter if it is developer or consumer or release preview or ...&lt;/em&gt;) from the ISO in VirtualBox. (&lt;em&gt;I always use VHD format since it is portable between multiple VM platforms anyway.&lt;/em&gt;)&lt;/li&gt;&lt;li&gt;It&amp;#39;s probably the first thing that you would do anyway when wanting to try the new and shiny things in any OS (install it in a virtual platform and play around with it).&lt;/li&gt;&lt;li&gt;Now that I&amp;#39;ve done all this... why not reuse the VHD?&amp;nbsp; No reason not to.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;But... what happen to all my device configurations? See... in VirtualBox, my network driver, my sound driver, my&amp;nbsp;display&amp;nbsp;driver, etc.&amp;nbsp;are bound to specific virtualized drivers.&amp;nbsp; If I boot from that VHD wouldn&amp;#39;t Windows 8 be screwed up?&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Well, from what I have running so far, it doesn&amp;#39;t seem to be.&amp;nbsp; The first time it booted from the VHD, it looks like Windows 8 reconfigures the devices anyway so when I am booted up, I see my real hardwares from the Device Manager.&amp;nbsp; So, no worry there.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Neat... so... what do I do know if I want to do this?&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;You only need 3 steps.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Step 1.&amp;nbsp;&amp;nbsp;Detach the VHD from VirtualBox and remove it&amp;nbsp;and release it from VirtualBox Virtual Media Manager.&amp;nbsp;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;(You might not need to do this, but this is what I did just to prevent unwanted side effects, just in case).&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;strong&gt;Remove and release... hmm.. how the heck do I that?&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;Sigh... Select the Windows 8 VM from inside VirtualBox Manager, bring up the Settings for it, then on Storage, select the VHD from the attached controller, and click the Remove Attachment icon at the bottom of the Storage Tree pane to remove the VHD.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;To release the media from VirtualBox, open the Virtual Media Manager by going&lt;/em&gt;&lt;em&gt; back to VirtualBox Manager, click Ctrl-D or&amp;nbsp;choose File, Virtual Media Manager from the menu.&amp;nbsp; &lt;/em&gt;&lt;em&gt;From the Hard Disks tab, choose the Windows 8 VHD and click the Release icon near the top.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;Step 2. Mount the VHD natively in Windows 7 using Disk Manager and mark it active.&lt;/strong&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;em&gt;... &lt;/em&gt;&lt;em&gt;Don&amp;#39;t know how to this too?... Fine...&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Open up Computer Management by typing this cryptic string into your Start menu search bar: &lt;strong&gt;diskmgmt.msc&lt;/strong&gt; and press Enter.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Click the Action menu, and choose Attach VHD and choose the Windows 8 VHD that you just released from step 1. &lt;strong&gt;DO NOT make it Read only!&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;(I might be wrong here, but I&amp;#39;ve read this somewhere and it worked for me.&amp;nbsp; You might not need to do the following....)&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;After you&amp;#39;ve done this, you should see the VHD as a disk in the center lower pane.&amp;nbsp; I think Windows will also assign specific drive letter to it.&amp;nbsp; You might have 2&amp;nbsp;partitions off the same virtual disk... now, this is the tricky part... you need to mark the one w/ the new Windows 8 OS active.&amp;nbsp; You can do this by judging the size of the partition or a safer way is to browse your new drives and see which one it is.&amp;nbsp; It should have a Windows folder from the root drive when you open it in Explorer.&amp;nbsp; Say... you have 2 more new drives after you mount the VHD, say drive D and drive E.&amp;nbsp; Browse those drives and see which one has Windows directory.&amp;nbsp; That&amp;#39;s the one you want to make active.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;To mark the partition as active, just right click on it from the Disk Management lower center pane and choose Mark partition as Active.&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;But... but... I want to see nice pretty pictures of what I should click...&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Bah... no pretty picture for you... I am too lazy to do screen capture this early in the morning, hahaha.&amp;nbsp; Figure it out.&amp;nbsp; Frankly, if you don&amp;#39;t know how to do this, you shouldn&amp;#39;t be doing this anyway.&amp;nbsp; You might screw up your machine and cry like a baby aferward. &lt;img src="http://geeks.netindonesia.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Bah... I am l33t enough, I want to do this using diskpart!!&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;You silly, silly person... why choose command line when there is a simple GUI for it... sigh.&amp;nbsp; Do what you wish.&amp;nbsp; There should be enough blog posts out there to explain this.&amp;nbsp; @hanselman post above is a good starting point.&amp;nbsp; &lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;strong&gt;Step 3. Add boot entry to the boot loader using bcdboot.&lt;/strong&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;OK... remember what drive you seen the Windows installation before in step 2?&amp;nbsp; You need to add that to the boot loader.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Getting too lazy to explain, hehehe.&lt;/em&gt;&amp;nbsp; Uhm... just follow the section called &lt;strong&gt;Add a Mapped VHD to Your Boot Menu &lt;/strong&gt;in &lt;a title="Booting from a VHD" href="http://blogs.msdn.com/b/charlie/archive/2009/09/02/booting-from-a-vhd.aspx"&gt;this blog post&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;There... done.&amp;nbsp; Now you can reboot your machine, the new graphical&amp;nbsp;boot loader should comes up and will let you boot Windows 8 from the&amp;nbsp;attached VHD.&amp;nbsp; It will take a while the first time you boot into Windows 8 since it will try to reconfigure all the new found hardwares.&lt;/p&gt;&lt;p&gt;Enjoy your new shiny, fast and fluid thing.&lt;/p&gt;&lt;p&gt;&lt;em&gt;Speaking about fast... People in the podcasts&amp;nbsp;I listen to&amp;nbsp;keep saying&amp;nbsp;WOW, look how fast Win8 boot up... uhm... how come I don&amp;#39;t see that.&amp;nbsp;&amp;nbsp; Maybe they are too freaking rich and have SSD for their boot drive... or is it the VHD thing that&amp;#39;s making it slow... shrug.&amp;nbsp; Still take a bit of time for me to boot up Win8 from my spinning metal of death 500 gig laptop hard drive.&amp;nbsp; Frankly my Win7 installation boot faster but... whatever.&amp;nbsp; LOL.&lt;/em&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx&amp;amp;subject=Booting Windows 8 from Existing VirtualBox VHD from existing Windows 7." target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx&amp;amp;t=Booting+Windows+8+from+Existing+VirtualBox+VHD+from+existing+Windows+7." target="_blank" title="Submit Booting Windows 8 from Existing VirtualBox VHD from existing Windows 7. to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx&amp;amp;title=Booting+Windows+8+from+Existing+VirtualBox+VHD+from+existing+Windows+7." target="_blank" title="Submit Booting Windows 8 from Existing VirtualBox VHD from existing Windows 7. to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx&amp;amp;phase=2" target="_blank" title="Submit Booting Windows 8 from Existing VirtualBox VHD from existing Windows 7. to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2012/06/23/booting-windows-8-from-existing-virtualbox-vhd-from-existing-windows-7.aspx&amp;amp;title=Booting+Windows+8+from+Existing+VirtualBox+VHD+from+existing+Windows+7." target="_blank" title="Add Booting Windows 8 from Existing VirtualBox VHD from existing Windows 7. to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=193486" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Fun/default.aspx">Fun</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Windows+7/default.aspx">Windows 7</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/virtualization/default.aspx">virtualization</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Windows+8/default.aspx">Windows 8</category></item><item><title>I got Windows 8.  Goodbye 3rd party virtualization?</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx</link><pubDate>Sat, 17 Sep 2011 09:40:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:193079</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=193079</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx#comments</comments><description>&lt;p&gt;Finally, Hyper-V is coming to Windows client and not just server.&amp;nbsp; For a long time I have to use 3rd party products such as VirtualBox, which is very nice, or VMWare Workstation, etc. to run my 64 bit VMs or dual boot to Windows Server instance to try out Hyper-V.&amp;nbsp; Guess it&amp;#39;s no longer required since Hyper-V will be built-in to Windows client itself.&lt;/p&gt;&lt;p&gt;Mounting VHD is also easier to do in Win8 (at least from what I&amp;#39;ve seen in the keynote).&lt;/p&gt;&lt;p&gt;Another cool thing is mounting ISO is also easier now and built-in to the OS.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Awesome!! :)&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx&amp;amp;subject=I got Windows 8.  Goodbye 3rd party virtualization?" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx&amp;amp;t=I+got+Windows+8.++Goodbye+3rd+party+virtualization%3f" target="_blank" title="Submit I got Windows 8.  Goodbye 3rd party virtualization? to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx&amp;amp;title=I+got+Windows+8.++Goodbye+3rd+party+virtualization%3f" target="_blank" title="Submit I got Windows 8.  Goodbye 3rd party virtualization? to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx&amp;amp;phase=2" target="_blank" title="Submit I got Windows 8.  Goodbye 3rd party virtualization? to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/09/17/i-got-windows-8-goodbye-3rd-party-virtualization.aspx&amp;amp;title=I+got+Windows+8.++Goodbye+3rd+party+virtualization%3f" target="_blank" title="Add I got Windows 8.  Goodbye 3rd party virtualization? to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=193079" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/virtualization/default.aspx">virtualization</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Windows+8/default.aspx">Windows 8</category></item><item><title>How to call SharePoint Web Service with Specific Credential from Silverlight OOB</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx</link><pubDate>Tue, 22 Mar 2011 17:08:55 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192271</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192271</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx#comments</comments><description>&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;h2&gt;The Problem&lt;/h2&gt;  &lt;p&gt;While playing around with SharePoint web service from Silverlight out of browser, I bumped into web service proxy limitation where I am forced to authenticate no matter what I pass to the &lt;strong&gt;&lt;font face="Courier New"&gt;ClientCredential.UserName&lt;/font&gt;&lt;/strong&gt; property of the web service client proxy.&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&lt;span class="rem"&gt;//This does not work... will get authentication prompt&lt;/span&gt;
var request = HttpWebRequest.Create(uri);
request.ClientCredential.UserName.UserName = &lt;span class="str"&gt;&amp;quot;DOMAIN\\user1&amp;quot;&lt;/span&gt;;
request.ClientCredential.UserName.Password = &lt;span class="str"&gt;&amp;quot;password&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

&lt;pre class="csharpcode"&gt;&amp;#160;&lt;/pre&gt;

&lt;h2&gt;The Authentication Problem Workaround&lt;/h2&gt;

&lt;p&gt;Luckily, starting from Silverlight 3 up, you can use the &lt;a href="http://msdn.microsoft.com/en-us/library/system.net.browser.webrequestcreator.clienthttp(VS.95).aspx" target="_blank"&gt;ClientHttp&lt;/a&gt; object that allows passing specific credential for the web request.&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="rem"&gt;//This now work wonderfully from Out of Browser Silverlight 3 or up&lt;/span&gt;
var request = WebRequestCreator.ClientHttp.Create(&lt;span class="kwrd"&gt;new&lt;/span&gt; Uri(&lt;span class="str"&gt;&amp;quot;http://localhost/_vti_bin/lists.asmx&amp;quot;&lt;/span&gt;, UriKind.Absolute));

&lt;span class="rem"&gt;//This is required, or otherwise you will be prompted for authentication&lt;/span&gt;
&lt;span class="rem"&gt;//It basically said, no don&amp;#39;t use the current login, I&amp;#39;ll tell you what login to use later.&lt;/span&gt;
request.UseDefaultCredential = &lt;span class="kwrd"&gt;false&lt;/span&gt;

&lt;span class="rem"&gt;//Pass your credential here...&lt;/span&gt;
request.Credentials = &lt;span class="kwrd"&gt;new&lt;/span&gt; NetworkCredential(&lt;span class="str"&gt;&amp;quot;user1&amp;quot;&lt;/span&gt;, &lt;span class="str"&gt;&amp;quot;password&amp;quot;&lt;/span&gt;, &lt;span class="str"&gt;&amp;quot;DOMAIN&amp;quot;&lt;/span&gt;);&lt;/pre&gt;

&lt;p&gt;Ouila! Authentication problem solved.&amp;#160; Bye bye authentication prompt.&amp;#160; See you later... or not.&lt;/p&gt;

&lt;h2&gt;What About My Web Service?&lt;/h2&gt;

&lt;p&gt;Now... for the second problem, without the nicely generated web service proxy, how the heck am I going to call my web service method?&lt;/p&gt;

&lt;p&gt;Well, luckily, SharePoint and other web service for that matter, give you a neat example of what to pass in a SOAP message like so:&lt;/p&gt;

&lt;p&gt;if you put something like &lt;a href="http://localhost/_vti_bin/lists.asmx"&gt;http://localhost/_vti_bin/lists.asmx&lt;/a&gt; into your browser Address (URL) field, you&amp;#39;ll get this:&lt;/p&gt;

&lt;p&gt;&lt;a href="http://geeks.netindonesia.net/blogs/jimmy/image_11D73DAF.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:5px 5px 5px 0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://geeks.netindonesia.net/blogs/jimmy/image_thumb_7D717823.png" width="520" height="473" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this case, I am interested in adding a list item to one of my SharePoint list.&amp;#160; The method (SOAP action) for this is &lt;strong&gt;UpdateListItems&lt;/strong&gt;.&amp;#160; If you don&amp;#39;t believe me, see &lt;a href="http://msdn.microsoft.com/en-us/library/websvclists.lists.updatelistitems.aspx" target="_blank"&gt;this&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;So if you click the UpdateListItems from the nice list above, you&amp;#39;ll get this: 
  &lt;br /&gt;&lt;a href="http://geeks.netindonesia.net/blogs/jimmy/image_40F90379.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:5px 5px 5px 0px;padding-left:0px;padding-right:0px;display:inline;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="image" border="0" alt="image" src="http://geeks.netindonesia.net/blogs/jimmy/image_thumb_694835CD.png" width="520" height="445" /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;See that SOAP message example (in particular the top one which is a SOAP 1.1 request message)? 
  &lt;br /&gt;Yeah it&amp;#39;s a bit ugly, but trust me underneath the nicely generated web service proxy that you usually get when adding a service reference, you&amp;#39;ll see this message somewhere in there if you open up the generated proxy client code in one shape or form.&amp;#160; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;lt;digress&amp;gt;Actually if you look inside the generated proxy inside &lt;a href="http://reflector.red-gate.com/download.aspx?TreatAsUpdate=1" target="_blank"&gt;Reflector&lt;/a&gt; or similar tool like &lt;a href="http://wiki.sharpdevelop.net/ilspy.ashx" target="_blank"&gt;ILSpy&lt;/a&gt; for those who don&amp;#39;t want to pay for Reflector, you&amp;#39;ll see the serializable form of this as class and class members which later on will be serialized into 

    &lt;br /&gt;the XML format that you see above. &amp;lt;/digress&amp;gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Well, like it or not, you will need to create your own web service wrapper around the SOAP message.&amp;#160; The good thing is... it&amp;#39;s not that hard.&lt;/p&gt;

&lt;p&gt;Below is a bit of code that I whipped out and refactored in about 2 hours to do this (for now only the UpdateListItems is implemented plus the rest of SOAP Web Service infrastructure):&lt;/p&gt;

&lt;div class="csharpcode"&gt;
  &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.IO;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Net;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Linq;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Xml.Linq;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Net.Browser;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;&lt;span class="kwrd"&gt;namespace&lt;/span&gt; SilverlightApplication9&lt;/pre&gt;

  &lt;pre class="alt"&gt;{&lt;/pre&gt;

  &lt;pre&gt;    &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; SharePointWebService&lt;/pre&gt;

  &lt;pre class="alt"&gt;    {&lt;/pre&gt;

  &lt;pre&gt;        &lt;span class="kwrd"&gt;static&lt;/span&gt; XNamespace xsi = &lt;span class="str"&gt;&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;static&lt;/span&gt; XNamespace xsd = &lt;span class="str"&gt;&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;        &lt;span class="kwrd"&gt;static&lt;/span&gt; XNamespace soap = &lt;span class="str"&gt;&amp;quot;http://schemas.xmlsoap.org/soap/envelope/&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;static&lt;/span&gt; XNamespace sharepoint = &lt;span class="str"&gt;&amp;quot;http://schemas.microsoft.com/sharepoint/soap/&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        XElement SoapEnvelopeTemplate;&lt;/pre&gt;

  &lt;pre&gt;        Uri WebServiceUri;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        NetworkCredential Credential;&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; SharePointWebService(Uri spWebServiceUri, NetworkCredential credential)&lt;/pre&gt;

  &lt;pre&gt;        {&lt;/pre&gt;

  &lt;pre class="alt"&gt;            WebServiceUri = spWebServiceUri;&lt;/pre&gt;

  &lt;pre&gt;            Credential = credential;&lt;/pre&gt;

  &lt;pre class="alt"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;            SoapEnvelopeTemplate = &lt;span class="kwrd"&gt;new&lt;/span&gt; XElement(soap + &lt;span class="str"&gt;&amp;quot;Envelope&amp;quot;&lt;/span&gt;,&lt;/pre&gt;

  &lt;pre class="alt"&gt;            &lt;span class="kwrd"&gt;new&lt;/span&gt; XAttribute(XNamespace.Xmlns + &lt;span class="str"&gt;&amp;quot;xsi&amp;quot;&lt;/span&gt;, xsi),&lt;/pre&gt;

  &lt;pre&gt;            &lt;span class="kwrd"&gt;new&lt;/span&gt; XAttribute(XNamespace.Xmlns + &lt;span class="str"&gt;&amp;quot;xsd&amp;quot;&lt;/span&gt;, xsd),&lt;/pre&gt;

  &lt;pre class="alt"&gt;            &lt;span class="kwrd"&gt;new&lt;/span&gt; XAttribute(XNamespace.Xmlns + &lt;span class="str"&gt;&amp;quot;soap&amp;quot;&lt;/span&gt;, soap),&lt;/pre&gt;

  &lt;pre&gt;            &lt;span class="kwrd"&gt;new&lt;/span&gt; XElement(soap + &lt;span class="str"&gt;&amp;quot;Body&amp;quot;&lt;/span&gt;));&lt;/pre&gt;

  &lt;pre class="alt"&gt;        }&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; UpdateListItemsAsync(&lt;span class="kwrd"&gt;string&lt;/span&gt; listName, XElement updates, Action&amp;lt;XDocument&amp;gt; callback)&lt;/pre&gt;

  &lt;pre&gt;        {&lt;/pre&gt;

  &lt;pre class="alt"&gt;            var message = CreateUpdateListItemsMessage(listName, updates);&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            SoapActionInvokeAsync(&lt;/pre&gt;

  &lt;pre&gt;                &lt;span class="str"&gt;&amp;quot;http://schemas.microsoft.com/sharepoint/soap/UpdateListItems&amp;quot;&lt;/span&gt;,&lt;/pre&gt;

  &lt;pre class="alt"&gt;                message,&lt;/pre&gt;

  &lt;pre&gt;                callback);&lt;/pre&gt;

  &lt;pre class="alt"&gt;        }&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; SoapActionInvokeAsync(&lt;span class="kwrd"&gt;string&lt;/span&gt; soapAction, XElement soapMessage, Action&amp;lt;XDocument&amp;gt; callback)&lt;/pre&gt;

  &lt;pre&gt;        {&lt;/pre&gt;

  &lt;pre class="alt"&gt;            WebRequest request = WebRequestCreator.ClientHttp.Create(WebServiceUri);&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            &lt;span class="kwrd"&gt;if&lt;/span&gt; (Credential != &lt;span class="kwrd"&gt;null&lt;/span&gt;)&lt;/pre&gt;

  &lt;pre&gt;            {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                request.UseDefaultCredentials = &lt;span class="kwrd"&gt;false&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;                request.Credentials = Credential;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            }&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            request.Headers[&lt;span class="str"&gt;&amp;quot;SOAPAction&amp;quot;&lt;/span&gt;] = &lt;span class="str"&gt;&amp;quot;\&amp;quot;&amp;quot;&lt;/span&gt; + soapAction + &lt;span class="str"&gt;&amp;quot;\&amp;quot;&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;            request.ContentType = &lt;span class="str"&gt;&amp;quot;text/xml; charset=utf-8&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            request.Method = &lt;span class="str"&gt;&amp;quot;POST&amp;quot;&lt;/span&gt;;&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            var message = &lt;span class="str"&gt;&amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;utf-8\&amp;quot;?&amp;gt;\n&amp;quot;&lt;/span&gt; + soapMessage.ToString();&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            request.BeginGetRequestStream((ar1) =&amp;gt;&lt;/pre&gt;

  &lt;pre&gt;            {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                &lt;span class="kwrd"&gt;using&lt;/span&gt; (var stream = request.EndGetRequestStream(ar1))&lt;/pre&gt;

  &lt;pre&gt;                {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                    &lt;span class="kwrd"&gt;using&lt;/span&gt; (var writer = &lt;span class="kwrd"&gt;new&lt;/span&gt; StreamWriter(stream))&lt;/pre&gt;

  &lt;pre&gt;                    {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                        writer.Write(message);&lt;/pre&gt;

  &lt;pre&gt;                    }&lt;/pre&gt;

  &lt;pre class="alt"&gt;                }&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;                request.BeginGetResponse((ar2) =&amp;gt;&lt;/pre&gt;

  &lt;pre&gt;                {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                    XDocument xml = XDocument.Load(&lt;/pre&gt;

  &lt;pre&gt;                        request.EndGetResponse(ar2).GetResponseStream());&lt;/pre&gt;

  &lt;pre class="alt"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;                    callback(xml);&lt;/pre&gt;

  &lt;pre class="alt"&gt;                }, &lt;span class="kwrd"&gt;null&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre&gt;            }, &lt;span class="kwrd"&gt;null&lt;/span&gt;);&lt;/pre&gt;

  &lt;pre class="alt"&gt;        }&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;public&lt;/span&gt; XElement CreateUpdateListItemsMessage(&lt;span class="kwrd"&gt;string&lt;/span&gt; listName, XElement updates)&lt;/pre&gt;

  &lt;pre&gt;        {&lt;/pre&gt;

  &lt;pre class="alt"&gt;            EnsureSharePointNamespace(updates);&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            var body = &lt;span class="kwrd"&gt;new&lt;/span&gt; XElement(sharepoint + &lt;span class="str"&gt;&amp;quot;UpdateListItems&amp;quot;&lt;/span&gt;,&lt;/pre&gt;

  &lt;pre&gt;                &lt;span class="kwrd"&gt;new&lt;/span&gt; XAttribute(&lt;span class="str"&gt;&amp;quot;xmlns&amp;quot;&lt;/span&gt;, sharepoint),&lt;/pre&gt;

  &lt;pre class="alt"&gt;                &lt;span class="kwrd"&gt;new&lt;/span&gt; XElement(sharepoint + &lt;span class="str"&gt;&amp;quot;listName&amp;quot;&lt;/span&gt;, listName),&lt;/pre&gt;

  &lt;pre&gt;                &lt;span class="kwrd"&gt;new&lt;/span&gt; XElement(sharepoint + &lt;span class="str"&gt;&amp;quot;updates&amp;quot;&lt;/span&gt;, updates));&lt;/pre&gt;

  &lt;pre class="alt"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;            var envelope = XElement.Parse(SoapEnvelopeTemplate.ToString());&lt;/pre&gt;

  &lt;pre class="alt"&gt;            envelope.Descendants(soap + &lt;span class="str"&gt;&amp;quot;Body&amp;quot;&lt;/span&gt;).First().Add(body);&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            &lt;span class="kwrd"&gt;return&lt;/span&gt; envelope;&lt;/pre&gt;

  &lt;pre&gt;        }&lt;/pre&gt;

  &lt;pre class="alt"&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre&gt;        &lt;span class="kwrd"&gt;protected&lt;/span&gt; XElement EnsureSharePointNamespace(XElement el)&lt;/pre&gt;

  &lt;pre class="alt"&gt;        {&lt;/pre&gt;

  &lt;pre&gt;            &lt;span class="kwrd"&gt;foreach&lt;/span&gt; (var e &lt;span class="kwrd"&gt;in&lt;/span&gt; el.DescendantsAndSelf())&lt;/pre&gt;

  &lt;pre class="alt"&gt;            {&lt;/pre&gt;

  &lt;pre&gt;                e.Name = sharepoint.GetName(e.Name.LocalName);&lt;/pre&gt;

  &lt;pre class="alt"&gt;            }&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            &lt;span class="kwrd"&gt;return&lt;/span&gt; el;&lt;/pre&gt;

  &lt;pre&gt;        }&lt;/pre&gt;

  &lt;pre class="alt"&gt;    }&lt;/pre&gt;

  &lt;pre&gt;}&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;And here is an example of how to use it from Silverlight:&lt;/p&gt;

&lt;div class="csharpcode"&gt;
  &lt;pre class="alt"&gt;           var ws = &lt;span class="kwrd"&gt;new&lt;/span&gt; SharePointWebService(&lt;/pre&gt;

  &lt;pre&gt;                &lt;span class="kwrd"&gt;new&lt;/span&gt; Uri(&lt;span class="str"&gt;&amp;quot;https://localhost/_vti_bin/lists.asmx&amp;quot;&lt;/span&gt;, UriKind.Absolute),&lt;/pre&gt;

  &lt;pre class="alt"&gt;                &lt;span class="kwrd"&gt;new&lt;/span&gt; NetworkCredential(&lt;span class="str"&gt;&amp;quot;user1&amp;quot;&lt;/span&gt;, &lt;span class="str"&gt;&amp;quot;password&amp;quot;&lt;/span&gt;, &lt;span class="str"&gt;&amp;quot;DOMAIN&amp;quot;&lt;/span&gt;));&lt;/pre&gt;

  &lt;pre&gt;&amp;#160;&lt;/pre&gt;

  &lt;pre class="alt"&gt;            ws.UpdateListItemsAsync(&lt;span class="str"&gt;&amp;quot;jtest&amp;quot;&lt;/span&gt;,&lt;/pre&gt;

  &lt;pre&gt;                XElement.Parse(&lt;span class="str"&gt;@&amp;quot;&amp;lt;Batch&amp;gt;&amp;lt;Method ID=&amp;quot;&lt;/span&gt;&lt;span class="str"&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class="str"&gt;&amp;quot; Cmd=&amp;quot;&lt;/span&gt;&lt;span class="str"&gt;&amp;quot;New&amp;quot;&lt;/span&gt;&lt;span class="str"&gt;&amp;quot;&amp;gt;&amp;lt;Field Name=&amp;quot;&lt;/span&gt;&lt;span class="str"&gt;&amp;quot;Title&amp;quot;&lt;/span&gt;&lt;span class="str"&gt;&amp;quot;&amp;gt;New item&amp;lt;/Field&amp;gt;&amp;lt;/Method&amp;gt;&amp;lt;/Batch&amp;gt;&amp;quot;&lt;/span&gt;),&lt;/pre&gt;

  &lt;pre class="alt"&gt;                (doc) =&amp;gt;&lt;/pre&gt;

  &lt;pre&gt;                {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                    Dispatcher.BeginInvoke(() =&amp;gt;&lt;/pre&gt;

  &lt;pre&gt;                    {&lt;/pre&gt;

  &lt;pre class="alt"&gt;                        textBox1.Text = doc.ToString();&lt;/pre&gt;

  &lt;pre&gt;                    });&lt;/pre&gt;

  &lt;pre class="alt"&gt;                });&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;&amp;#160;&lt;/p&gt;

&lt;p&gt;This has been a pretty fun exercise... It would be better if the proxy ClientCredential code can do similar thing, but well... live sucks and that&amp;#39;s why you are a coder, right?&amp;#160;&amp;#160; &lt;/p&gt;

&lt;p&gt;&lt;em&gt;&amp;lt;digress&amp;gt;Some of you might be thinking what the hell the relation between live sucks and being a coder.... Don&amp;#39;t worry, I don&amp;#39;t know either, LOL.&amp;#160; Guess that&amp;#39;s why this blog is called Incoherent Rambling... &amp;lt;/digress&amp;gt;&lt;/em&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx&amp;amp;subject=How to call SharePoint Web Service with Specific Credential from Silverlight OOB" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx&amp;amp;t=How+to+call+SharePoint+Web+Service+with+Specific+Credential+from+Silverlight+OOB" target="_blank" title="Submit How to call SharePoint Web Service with Specific Credential from Silverlight OOB to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx&amp;amp;title=How+to+call+SharePoint+Web+Service+with+Specific+Credential+from+Silverlight+OOB" target="_blank" title="Submit How to call SharePoint Web Service with Specific Credential from Silverlight OOB to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx&amp;amp;phase=2" target="_blank" title="Submit How to call SharePoint Web Service with Specific Credential from Silverlight OOB to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/23/how-to-call-sharepoint-web-service-with-specific-credential-from-silverlight-oob.aspx&amp;amp;title=How+to+call+SharePoint+Web+Service+with+Specific+Credential+from+Silverlight+OOB" target="_blank" title="Add How to call SharePoint Web Service with Specific Credential from Silverlight OOB to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192271" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/silverlight/default.aspx">silverlight</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/SharePoint/default.aspx">SharePoint</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/SharePoint+2010/default.aspx">SharePoint 2010</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Credential/default.aspx">Credential</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Authentication/default.aspx">Authentication</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/OOB/default.aspx">OOB</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Web+Service/default.aspx">Web Service</category></item><item><title>How to Add a link in SharePoint 2010 that will launch InfoPath form template?</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx</link><pubDate>Wed, 16 Mar 2011 17:54:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192248</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192248</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx#comments</comments><description>&lt;p&gt;While playing around with SharePoint 2010, I want to add a link to my site home page that will do the same thing when I am in a particular document / form library and click the Add Document link.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In other word, how can I launch Word or Excel or InfoPath from my own link without having to go inside the library and clicking Add Document?&lt;/p&gt;&lt;p&gt;At first, I couldn&amp;#39;t figure out how to do this.&amp;nbsp; Decided to dive into the HTML source of the Form Library AllItems.aspx view and found a CoreInvoke JS method, like:&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;font face="courier new,courier"&gt;CoreInvoke(&amp;#39;createNewDocumentWithProgIDEx&amp;#39;, &amp;#39;template source URI&amp;#39;, event, &amp;#39;save location URI&amp;#39;, &amp;#39;SharePoint.OpenXMLDocuments&amp;#39;, true);&lt;/font&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I plop that inside a link tag and it worked.&amp;nbsp;&lt;/p&gt;&lt;p&gt;After the fact, I look around the web and finally found someone else that has done this already...&lt;/p&gt;&lt;p&gt;See: &lt;a href="http://www.sharepointkings.com/2010/02/create-new-document-link-in-listview.html"&gt;http://www.sharepointkings.com/2010/02/create-new-document-link-in-listview.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The syntax is something like: &lt;font face="courier new,courier"&gt;&lt;strong&gt;createNewDocumentWithProgID(&lt;em&gt;templateSourceURI&lt;/em&gt;, &lt;em&gt;saveLocation&lt;/em&gt;, &lt;em&gt;docType&lt;/em&gt;,&amp;nbsp;false);&lt;/strong&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In my case, I want to launch an InfoPath form template, and I found the following work just fine:&lt;/p&gt;&lt;p&gt;&lt;font color="#000000" face="courier new,courier"&gt;&lt;strong&gt;createNewDocumentWithProgID(&amp;#39;http://intranet/spike/FormLib1/Forms/template.xml&amp;#39;, &amp;#39;http://intranet/spike/FormLib1&amp;#39;, &amp;#39;SharePoint.OpenXMLDocuments&amp;#39;, false);&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff"&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx&amp;amp;subject=How to Add a link in SharePoint 2010 that will launch InfoPath form template?" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx&amp;amp;t=How+to+Add+a+link+in+SharePoint+2010+that+will+launch+InfoPath+form+template%3f" target="_blank" title="Submit How to Add a link in SharePoint 2010 that will launch InfoPath form template? to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx&amp;amp;title=How+to+Add+a+link+in+SharePoint+2010+that+will+launch+InfoPath+form+template%3f" target="_blank" title="Submit How to Add a link in SharePoint 2010 that will launch InfoPath form template? to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx&amp;amp;phase=2" target="_blank" title="Submit How to Add a link in SharePoint 2010 that will launch InfoPath form template? to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/17/how-to-add-a-link-in-sharepoint-2010-that-will-launch-infopath-form-template.aspx&amp;amp;title=How+to+Add+a+link+in+SharePoint+2010+that+will+launch+InfoPath+form+template%3f" target="_blank" title="Add How to Add a link in SharePoint 2010 that will launch InfoPath form template? to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192248" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/InfoPath+2010/default.aspx">InfoPath 2010</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/SharePoint+2010/default.aspx">SharePoint 2010</category></item><item><title>Coolest Feature of IE9 in My Opinion</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx</link><pubDate>Tue, 15 Mar 2011 11:22:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192238</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192238</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx#comments</comments><description>&lt;p&gt;Just want to link to Scott Hanselmann&amp;#39;s blog post on Site Pinning and the cool things that you can do with it.&amp;nbsp; I think it&amp;#39;s the coolest feature in IE9... graphic hardware acceleration, canvas support, improved javascript speed... PHHBTTT... seen it too many times, but this... is awesome ... or maybe not?&amp;nbsp; Well, I think it is anyhow &lt;img src="http://geeks.netindonesia.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="http://www.hanselman.com/blog/IE9SiteSpecificBrowsersAndAddingYourOwnJumpListItemsToPinnedTabs.aspx"&gt;http://www.hanselman.com/blog/IE9SiteSpecificBrowsersAndAddingYourOwnJumpListItemsToPinnedTabs.aspx&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Check it out.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Information that you will find: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;How to add Jump List that is available from Windows 7 Pinned Site&lt;/li&gt;&lt;li&gt;Adding notification to the&amp;nbsp;pinned site&amp;nbsp;icon in the taskbar (Push Overlay)&lt;/li&gt;&lt;li&gt;Adding task bar buttons to the pinned site&lt;/li&gt;&lt;/ul&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx&amp;amp;subject=Coolest Feature of IE9 in My Opinion" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx&amp;amp;t=Coolest+Feature+of+IE9+in+My+Opinion" target="_blank" title="Submit Coolest Feature of IE9 in My Opinion to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx&amp;amp;title=Coolest+Feature+of+IE9+in+My+Opinion" target="_blank" title="Submit Coolest Feature of IE9 in My Opinion to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx&amp;amp;phase=2" target="_blank" title="Submit Coolest Feature of IE9 in My Opinion to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/15/coolest-feature-of-ie9-in-my-opinion.aspx&amp;amp;title=Coolest+Feature+of+IE9+in+My+Opinion" target="_blank" title="Add Coolest Feature of IE9 in My Opinion to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192238" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/ie9/default.aspx">ie9</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/site+pinning/default.aspx">site pinning</category></item><item><title>Oh Nirvana... VirtualBox, Hyper-V VHD and Synergy</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx</link><pubDate>Thu, 10 Mar 2011 16:27:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192225</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192225</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx#comments</comments><description>&lt;p&gt;In my daily work, I am doing a lot of prototyping, testing, etc.&amp;nbsp; And for this, I lean heavily on virtualization to isolate my workstation versus the prototyping / testing environment and for its ability to quickly rollback to previous snapshot.&lt;/p&gt;&lt;p&gt;Currently, I configured my laptop to be a dual boot system (Windows 7 and Windows Server 2008 R2 w/ Hyper-V, both implemented as 40GB VHD in the actual harddisk).&amp;nbsp; I utilized Boot from VHD capability of Windows to do this, which is pretty sweet.&lt;/p&gt;&lt;p&gt;But I am getting tired of having to maintain 2 OS on the same box.&amp;nbsp; I am trying to get rid of W2K8R2 from my system since 99% of the time I am using Windows 7 anyhow.&amp;nbsp; But one thing kept preventing me from doing this... call it laziness or whatever you wish, but I use Hyper-V to run some precanned VHDs from Microsoft such as SharePoint 2010 demo which already has everything that I need.&amp;nbsp; I supposed the other reason for this is just to play around with Hyper-V so I understand the technology and can demonstrate them when needed.&lt;/p&gt;&lt;p&gt;The rest of my virtualized environment actually run in Windows 7 using VirtualBox which support 64-bit guest OS.&amp;nbsp; I like VirtualBox very much for what it can do; Not to mention it is also free.&amp;nbsp; So one pet peef that I had previously is I couldn&amp;#39;t find a way to boot Hyper-V VHD from inside VirtualBox.&amp;nbsp; Virtual Server / VPC VHD runs just fine, but not Hyper-V one... weird.&lt;/p&gt;&lt;p&gt;Today, I decided to look around the web again, and finally came across &lt;a href="http://ollysense.blogspot.com/2010/05/virtualbox-using-hyper-v-vhd-image.html" target="_blank"&gt;this particular blog post&lt;/a&gt;... lo and behold... it is actually possible to do this.&amp;nbsp; The trick is just to not to use SATA to boot up the VHD, but rather to attach it to the IDE controller instead.&amp;nbsp; Curious, I tried to quickly create a VM inside VirtualBox and connect it to my existing &lt;a href="http://www.microsoft.com/downloads/en/details.aspx?FamilyID=751fa0d1-356c-4002-9c60-d539896c66ce&amp;amp;displaylang=en" target="_blank"&gt;Hyper-V SP2010-7a.vhd&lt;/a&gt;.&amp;nbsp; Boot it up and guess what... it runs :). YAY!!&lt;/p&gt;&lt;p&gt;So now... I need to decide whether to scrap the 40GB W2K8R2 VHD from my hard drive or not ... Hmmm...&lt;/p&gt;&lt;p&gt;Nothing against Hyper-V, but I just wish Hyper-V can run on top of Win7 so I don&amp;#39;t have to do the OS switcheroos.&amp;nbsp; Most of my tools like Office, Outlook pst and ost, etc. are in my Win7 system.&amp;nbsp; It is such a hassle to maintain 2 different OS (patches, etc.) and the applications when I only use the other one 1% of the time.&amp;nbsp; And Virtual Server / VPC are not an option on Win7 since they can&amp;#39;t run 64-bit guest OS which is needed for SharePoint 2010.&lt;/p&gt;&lt;p&gt;On a totally different thing, at home I like to use my work laptop as my server environment and actually do the work from my home laptop that is attached to a secondary monitor.&amp;nbsp; So I was thinking... wouldn&amp;#39;t it be neat if I can use my home laptop keyboard and mouse to control my work laptop seamlessly... I am not talking about remoting to it since that will actually waste some screen space on my home laptop.&amp;nbsp; But rather, emulate a 3 screens environmment where my work laptop is the left most screen and my home laptop is the middle screen and the additional LCD for the right most screen.&amp;nbsp; One screen to browse, one screen to do some works like coding, and another one for other peripheral stuffs like TweetDeck or&amp;nbsp;email or whatever.&amp;nbsp; It turns out you can do this... Found &lt;a href="http://synergy2.sourceforge.net/" target="_blank"&gt;this piece of open source software (Synergy)&lt;/a&gt; that will allow you to do just that.&amp;nbsp; Cut and paste work just fine across machines and it work across multiple OS too (Windows, MacOS, and Linux).&amp;nbsp; Awesome.&lt;/p&gt;&lt;p&gt;So, with the new ability to run Hyper-V VHD inside VirtualBox and lots of screen estate and seamless control over my other computer screen using Synergy... I am a happy camper :).&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx&amp;amp;subject=Oh Nirvana... VirtualBox, Hyper-V VHD and Synergy" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx&amp;amp;t=Oh+Nirvana...+VirtualBox%2c+Hyper-V+VHD+and+Synergy" target="_blank" title="Submit Oh Nirvana... VirtualBox, Hyper-V VHD and Synergy to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx&amp;amp;title=Oh+Nirvana...+VirtualBox%2c+Hyper-V+VHD+and+Synergy" target="_blank" title="Submit Oh Nirvana... VirtualBox, Hyper-V VHD and Synergy to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx&amp;amp;phase=2" target="_blank" title="Submit Oh Nirvana... VirtualBox, Hyper-V VHD and Synergy to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/10/oh-nirvana-virtualbox-hyper-v-vhd-and-synergy.aspx&amp;amp;title=Oh+Nirvana...+VirtualBox%2c+Hyper-V+VHD+and+Synergy" target="_blank" title="Add Oh Nirvana... VirtualBox, Hyper-V VHD and Synergy to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192225" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/virtualization/default.aspx">virtualization</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/synergy/default.aspx">synergy</category></item><item><title>Finally!! Indonesian Mobile Developers Can Submit WP7 Application to the MarketPlace.</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx</link><pubDate>Wed, 09 Mar 2011 13:30:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192211</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192211</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx#comments</comments><description>&lt;p&gt;There are/were 2 things that bug me as an Indonesian in regard to Windows Phone 7.&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&amp;nbsp;From Indonesian consumer point of view... The ability to purchase application in Marketplace is basically non existant if you don&amp;#39;t have the right credit card.&amp;nbsp; What I mean by the right credit card is a non Indonesian credit card. &lt;em&gt;(If anyone know different, please let me know.)&lt;/em&gt;&lt;/li&gt;&lt;li&gt;From Indonesian&amp;nbsp;mobile developer&amp;nbsp;point of view... The ability to submit&amp;nbsp;WP7 application into the&amp;nbsp;MarketPlace via &lt;a href="http://create.msdn.com" target="_blank"&gt;AppHub&lt;/a&gt;&amp;nbsp;was also non existant.&amp;nbsp; Again... the&amp;nbsp;problem here is related to&amp;nbsp;Indonesian credit card&amp;nbsp;was not supported. &lt;em&gt;(Note that&amp;nbsp;I said... &lt;strong&gt;WAS&lt;/strong&gt;)&lt;/em&gt; &lt;img src="http://geeks.netindonesia.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;.&amp;nbsp; &lt;/li&gt;&lt;/ol&gt;&lt;p&gt;So, the good&amp;nbsp;news...&amp;nbsp;&lt;/p&gt;&lt;p&gt;As developer (in Indonesia and other countries),&lt;strong&gt; it is now possible to participate in the Marketplace!! Yay!!&amp;nbsp;&lt;/strong&gt; A Global Publisher Program was recently announced during TechEd Middle East in Dubai.&amp;nbsp; So what are you waiting for?&amp;nbsp; Go to &lt;a href="http://www.yallaapps.com/" target="_blank"&gt;Yalla Apps&lt;/a&gt; and register yourself and start making money.&amp;nbsp;&amp;nbsp;For full news, see &lt;a href="http://windowsteamblog.com/windows_phone/b/wpdev/archive/2011/03/08/an-update-on-windows-phone-marketplace-new-tips-policies-and-regional-access-program.aspx" target="_blank"&gt;this blog post&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;But wait... what about if I want to buy from Marketplace as consumer? ... Eh, basically it is still the same situation as before... You need a credit card that is allowed by Marketplace... It&amp;#39;s very hard, but it is not entirely impossible.&amp;nbsp; &amp;nbsp;But hey... at least you can hawk your stuffs online now!&amp;nbsp; Better 1/2 than nothing, right? &lt;img src="http://geeks.netindonesia.net/emoticons/emotion-2.gif" alt="Big Smile" /&gt;.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx&amp;amp;subject=Finally!! Indonesian Mobile Developers Can Submit WP7 Application to the MarketPlace." target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx&amp;amp;t=Finally!!+Indonesian+Mobile+Developers+Can+Submit+WP7+Application+to+the+MarketPlace." target="_blank" title="Submit Finally!! Indonesian Mobile Developers Can Submit WP7 Application to the MarketPlace. to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx&amp;amp;title=Finally!!+Indonesian+Mobile+Developers+Can+Submit+WP7+Application+to+the+MarketPlace." target="_blank" title="Submit Finally!! Indonesian Mobile Developers Can Submit WP7 Application to the MarketPlace. to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx&amp;amp;phase=2" target="_blank" title="Submit Finally!! Indonesian Mobile Developers Can Submit WP7 Application to the MarketPlace. to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/09/finally-indonesian-mobile-developers-can-submit-your-wp7-application-to-the-marketplace.aspx&amp;amp;title=Finally!!+Indonesian+Mobile+Developers+Can+Submit+WP7+Application+to+the+MarketPlace." target="_blank" title="Add Finally!! Indonesian Mobile Developers Can Submit WP7 Application to the MarketPlace. to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192211" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Marketplace/default.aspx">Marketplace</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/WP7/default.aspx">WP7</category></item><item><title>The Best Deep Dive on jQuery Session</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx</link><pubDate>Mon, 07 Mar 2011 09:33:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192201</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192201</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx#comments</comments><description>&lt;p&gt;Well, maybe not the best, but it comes very close to it.&amp;nbsp; For sure, it&amp;#39;s the FUNNEST time you can have while trying to understand jQuery internal and at the same time learn about some exotic things about JavaScript and browser DOM.&lt;/p&gt;&lt;p&gt;What I am talking about is the More Things I Learned from the jQuery Source videos by &lt;a href="http://paulirish.com"&gt;Paul Irish&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;Trust me... If you are a JavaScript / jQuery geek, it is definitely worth the time to look at them.&lt;/p&gt;&lt;p&gt;Paul is quite a fun guy to watch and his explanation style kind of remind me of how Head First book series are written.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Fun, Fun, Fun.&lt;/p&gt;&lt;p&gt;&lt;a href="http://paulirish.com/2010/10-things-i-learned-from-the-jquery-source/"&gt;http://paulirish.com/2010/10-things-i-learned-from-the-jquery-source/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;a href="http://paulirish.com/2011/11-more-things-i-learned-from-the-jquery-source/"&gt;http://paulirish.com/2011/11-more-things-i-learned-from-the-jquery-source/&lt;/a&gt;&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx&amp;amp;subject=The Best Deep Dive on jQuery Session" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx&amp;amp;t=The+Best+Deep+Dive+on+jQuery+Session" target="_blank" title="Submit The Best Deep Dive on jQuery Session to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx&amp;amp;title=The+Best+Deep+Dive+on+jQuery+Session" target="_blank" title="Submit The Best Deep Dive on jQuery Session to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx&amp;amp;phase=2" target="_blank" title="Submit The Best Deep Dive on jQuery Session to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/03/07/the-best-deep-dive-on-jquery-session.aspx&amp;amp;title=The+Best+Deep+Dive+on+jQuery+Session" target="_blank" title="Add The Best Deep Dive on jQuery Session to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192201" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/JavaScript/default.aspx">JavaScript</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/jQuery/default.aspx">jQuery</category></item><item><title>Move to the Cloud, Use the Cloud and Be a Cloud</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx</link><pubDate>Fri, 25 Feb 2011 16:07:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192154</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192154</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx#comments</comments><description>&lt;p&gt;As you might already&amp;nbsp;know, there are 3 general types of cloud offerings out there.&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Infrastructure as a Service (IaaS)&lt;/li&gt;&lt;li&gt;Platform as a Service (PaaS)&lt;/li&gt;&lt;li&gt;Software as a Service (SaaS)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Each gives you a different level of control and benefits.&amp;nbsp; I won&amp;#39;t bother you with the detail on each.&amp;nbsp; It&amp;#39;s not what this blog entry is about.&amp;nbsp; If you like to compare and contrast these offerings, see &lt;a href="http://www.cloudtweaks.com/2011/02/cloud-computing-for-dummies-saas-paas-iaas-and-all-that-was/"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;A different&amp;nbsp;perspective on the cloud offerings&amp;nbsp;has been suggested to me:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Move to the&amp;nbsp;cloud&lt;/li&gt;&lt;li&gt;Use the cloud&lt;/li&gt;&lt;li&gt;Be&amp;nbsp;a cloud&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Moving to the Cloud&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Moving to the cloud is like outsourcing one more of your services such as e-mail, CRM, portal solution, and even some business productivity tools.&amp;nbsp; A lot of cloud players are playing in this field including &lt;a href="http://office365.microsoft.com/en-US/online-services.aspx"&gt;Microsoft Office 365&lt;/a&gt; and other &lt;a href="http://www.microsoft.com/online/" target="_blank"&gt;Microsoft Online Services&lt;/a&gt;, third party / partner hosted services, Google docs, .and salesforce.com.&lt;/p&gt;&lt;p&gt;The benefits for this&amp;nbsp;is&amp;nbsp;you no longer&amp;nbsp;need to maintain the infrastructure necessary for these &amp;quot;IT commodity&amp;quot; services, instead you can utilize your resources to do more strategic stuffs and let the cloud provider deals with the day-to-day administration.&lt;/p&gt;&lt;p&gt;The disadvantage for this is you might not have the ability to do full customization on top of the solution that you have outsourced since most of the time, the provider will configure the solution to run on multi-tenancy architecture that makes it a bit difficult to customize for a specific tenant.&amp;nbsp; Maybe, if you are lucky, and depending on your service level with the provider, you might be able to do this, but expect to treat this offerings the same way as shopping for cloths from a department store instead of going to the tailor to make a custom suit / dress.&amp;nbsp; You have your choices of colors and sizes and that&amp;#39;s that.&amp;nbsp; No addditional pockets, replacing buttons, etc.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Use the Cloud&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Think of this as not moving the entire solution to the cloud like in Move to the Cloud above, but rather, you still have something on-premise that is reaching out to the cloud for additional things.&amp;nbsp; Or your internal solutions are using some cloud services.&amp;nbsp;&amp;nbsp; Seasonal business activities like internet campaign marketing / promotion can defintely take&amp;nbsp;advantage of the&amp;nbsp;public cloud services&amp;nbsp;such as using Windows Azure&amp;nbsp;or&amp;nbsp;other platform like Google AppEngine&amp;nbsp;as your workhorse&amp;nbsp;during the promotional period by quickly adding&amp;nbsp;the necessary computing power without the need to put down the huge capital cost for hardware&amp;nbsp;up front.&amp;nbsp;&amp;nbsp;The ability to pay as you go is definitely something to consider when you want to cut down the capital cost.&amp;nbsp; Once you are done with the seasonal activity, you don&amp;#39;t need to worry about what to do with the extra computing capacity that won&amp;#39;t be doing anything if you were to implement the solution in house using your own hardware (that you have to purchase up front).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Be a Cloud&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;A couple of example for this are a hosting business&amp;nbsp;offering elastic computing based on private cloud technology or your company itself decided that you want to keep your data and computing power inside the company but still wants the elasticity that a cloud offering can provide.&amp;nbsp; A good scenario for considering this kind of solution is when your company or country you operate in&amp;nbsp;has regulation that requires your data to stay within a certain physical boundary or you are considering being a cloud provider for others.&amp;nbsp; Another good case for this is when you have a cloud solution that you want to sell as a service (SaaS) to others.&amp;nbsp; With the right VM infrastructure and management solution, it is definitely possible to be a cloud.&amp;nbsp; An example of this is Microsoft Private Cloud solutions such as Hyper-V Cloud and Windows Azure Platfrom Appliance described &lt;a href="http://www.microsoft.com/virtualization/en/us/private-cloud.aspx"&gt;here&lt;/a&gt;.&amp;nbsp; Another vendor that&amp;nbsp;is also playing in this area is VMWare.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Things to Consider&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Different level of IT&amp;nbsp;maturity is required for operating in the cloud.&amp;nbsp; Before you can move to the cloud, your IT infrastructure, staff, and procedures must be at a&amp;nbsp;certain level of maturity.&amp;nbsp; If you are putting&amp;nbsp;out fire&amp;nbsp;most of the time, you are probably not ready to move yet.&amp;nbsp;&amp;nbsp;How easy&amp;nbsp;you can&amp;nbsp;integrate your internal IT systems&amp;nbsp;such as security&amp;nbsp;&amp;amp; identity with the cloud offering is another thing that you might want to consider before making your move.&amp;nbsp; &lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx&amp;amp;subject=Move to the Cloud, Use the Cloud and Be a Cloud" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx&amp;amp;t=Move+to+the+Cloud%2c+Use+the+Cloud+and+Be+a+Cloud" target="_blank" title="Submit Move to the Cloud, Use the Cloud and Be a Cloud to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx&amp;amp;title=Move+to+the+Cloud%2c+Use+the+Cloud+and+Be+a+Cloud" target="_blank" title="Submit Move to the Cloud, Use the Cloud and Be a Cloud to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx&amp;amp;phase=2" target="_blank" title="Submit Move to the Cloud, Use the Cloud and Be a Cloud to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/move-to-the-cloud-use-the-cloud-and-be-a-cloud.aspx&amp;amp;title=Move+to+the+Cloud%2c+Use+the+Cloud+and+Be+a+Cloud" target="_blank" title="Add Move to the Cloud, Use the Cloud and Be a Cloud to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192154" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/cloud+computing/default.aspx">cloud computing</category></item><item><title>How to Change the Active Printer to Specific Printer in Excel Using .NET and How the Heck Can I Find the Right Printer Name and Port Combination that Excel Wants?</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx</link><pubDate>Fri, 25 Feb 2011 15:38:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192149</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192149</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx#comments</comments><description>&lt;p&gt;A client of mine was having a problem trying to automate Excel to print to a specific (non default) printer.&amp;nbsp; They know which printer they want to use, but are having trouble trying to get Excel to understand it.&lt;/p&gt;  &lt;p&gt;Excel’s &lt;strong&gt;&lt;a title="Excel Application ActivePrinter property" href="http://msdn.microsoft.com/en-us/library/ff822927.aspx" target="_blank"&gt;Application.ActivePrinter&lt;/a&gt;&lt;/strong&gt; property is quite picky about what it will accept.&amp;nbsp; The right pattern to feed to the property is something like&lt;em&gt; &lt;/em&gt;“&lt;strong&gt;&lt;em&gt;PrinterName&lt;/em&gt; on&lt;/strong&gt;&lt;em&gt;&lt;strong&gt; PortName&lt;/strong&gt;:&lt;/em&gt;”&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;For example, if you want to print to Microsoft XPS Document Writer, you need to do something like this:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;var excel = &lt;span class="kwrd"&gt;new&lt;/span&gt; Excel.Application();
var workbook = excel.Workbooks.Open(&lt;span class="str"&gt;&amp;quot;....&amp;quot;&lt;/span&gt;);
var worksheet = workbook.ActiveSheet;

excel.ActivePrinter = “Microsoft XPS Document Writer on ne01:”;
worksheet.PrintOut();

excel.Quit();&lt;/pre&gt;

&lt;p&gt;And this of course assuming that the selected printer (&lt;strong&gt;Microsoft XPS Document Writer&lt;/strong&gt;) is on port &lt;strong&gt;ne01&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Getting the right name for the printer is somewhat trivial.&amp;nbsp; You can poke around the &lt;strong&gt;Devices and Printers&lt;/strong&gt; control panel item on Windows and see their name. &lt;/p&gt;

&lt;p&gt;The problem is… the port name information is not so obvious to find.&lt;/p&gt;

&lt;p&gt;So, how would you know where to get the port name?&lt;/p&gt;

&lt;p&gt;Trying to enumerate the attached printers as described by &lt;a title="Is there a .NET way to enumerate all available network printers?" href="http://stackoverflow.com/questions/1018001/is-there-a-net-way-to-enumerate-all-available-network-printers/1018061" target="_blank"&gt;this StackOverflow question&lt;/a&gt; does not gives you the right port name… See the sample code and output below…&lt;/p&gt;

&lt;p&gt;The Code:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Management;

&lt;span class="kwrd"&gt;namespace&lt;/span&gt; ConsoleApplication1
{
    &lt;span class="kwrd"&gt;class&lt;/span&gt; Program
    {
        &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Main(&lt;span class="kwrd"&gt;string&lt;/span&gt;[] args)
        {
            var oquery = &lt;span class="kwrd"&gt;new&lt;/span&gt; ObjectQuery(&lt;span class="str"&gt;&amp;quot;SELECT * FROM Win32_Printer&amp;quot;&lt;/span&gt;);
            var mosearcher = &lt;span class="kwrd"&gt;new&lt;/span&gt; ManagementObjectSearcher(oquery);
            var moc = mosearcher.Get();            

            &lt;span class="kwrd"&gt;foreach&lt;/span&gt; (var o &lt;span class="kwrd"&gt;in&lt;/span&gt; moc)
            {
                var pdc = o.Properties;

                &lt;span class="kwrd"&gt;foreach&lt;/span&gt; (var p &lt;span class="kwrd"&gt;in&lt;/span&gt; pdc)
                {
                    &lt;span class="kwrd"&gt;if&lt;/span&gt; (p.Name == &lt;span class="str"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt; || p.Name == &lt;span class="str"&gt;&amp;quot;PortName&amp;quot;&lt;/span&gt;)
                    {

                        Console.WriteLine(&lt;span class="str"&gt;&amp;quot;{0}: {1}&amp;quot;&lt;/span&gt;, p.Name, o[p.Name]);
                    }
                }
            }
        }
    }
}&lt;/pre&gt;

&lt;p&gt;The result:&lt;/p&gt;

&lt;p&gt;&lt;font face="Courier New"&gt;Name: Xerox WorkCentre 3119 Series
    &lt;br /&gt;PortName: USB001

    &lt;br /&gt;Name: Send To OneNote 2010

    &lt;br /&gt;PortName: nul:

    &lt;br /&gt;Name: Microsoft XPS Document Writer

    &lt;br /&gt;PortName: XPSPort:

    &lt;br /&gt;Name: CAMPUS-R101-DC236

    &lt;br /&gt;PortName: 192.168.100.21

    &lt;br /&gt;Name: CAMPUS-R217-DC236

    &lt;br /&gt;PortName: 192.168.100.22

    &lt;br /&gt;Name: Fax

    &lt;br /&gt;PortName: SHRFAX:

    &lt;br /&gt;Name: \\TIGER\Canon Inkjet MP140 series

    &lt;br /&gt;PortName: USB001&lt;/font&gt;&lt;/p&gt;



&lt;p&gt;&lt;em&gt;You just have to trust me the port name here is not the port name that Excel wants to use.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;So, where else can you get this particular information?&lt;/p&gt;

&lt;p&gt;After looking around the web, I found &lt;a href="http://www.xtremevbtalk.com/showthread.php?t=258994" target="_blank"&gt;this post&lt;/a&gt; that gives some clues on how to do this from VBA that can easily be adapted for .NET.&lt;/p&gt;

&lt;p&gt;It turns out that the key to this is to poke around in the registry. in particular &lt;strong&gt;HKCU\Software\Microsoft\Windows NT\CurrentVersion\Devices&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;So I came up with the code below to test it and lo and behold.&amp;nbsp; It works perfectly.&amp;nbsp; Basically I enumerate through all the devices in that particular registry location, did some string manipulation on the port (remove the &lt;strong&gt;winspool,&lt;/strong&gt; prefix from the port name) and concatenate the stripped version of the port name with the printer / device name to form the &lt;strong&gt;PrinterName on PortName:&lt;/strong&gt; combination that is required by Excel.&lt;/p&gt;



&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System;
&lt;span class="kwrd"&gt;using&lt;/span&gt; Microsoft.Win32;
&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Runtime.InteropServices;
&lt;span class="kwrd"&gt;using&lt;/span&gt; Excel = Microsoft.Office.Interop.Excel;

&lt;span class="kwrd"&gt;namespace&lt;/span&gt; ConsoleApplication1
{
    &lt;span class="kwrd"&gt;class&lt;/span&gt; Program
    {
        &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Main(&lt;span class="kwrd"&gt;string&lt;/span&gt;[] args)
        {
            var excelApp = &lt;span class="kwrd"&gt;new&lt;/span&gt; Excel.Application();
            excelApp.Visible = &lt;span class="kwrd"&gt;true&lt;/span&gt;;

            var workbook = excelApp.Workbooks.Add();
            var worksheet = workbook.ActiveSheet;

            var key = Registry.CurrentUser;
            var subkey = key.OpenSubKey(&lt;span class="str"&gt;@&amp;quot;Software\Microsoft\Windows NT\CurrentVersion\Devices&amp;quot;&lt;/span&gt;);

            var printerNames = subkey.GetValueNames();

            &lt;span class="rem"&gt;//Should be able to complete this loop without throwing an exception&lt;/span&gt;
            &lt;span class="rem"&gt;//if all the names matches to what Excel is expecting.&lt;/span&gt;
            &lt;span class="kwrd"&gt;foreach&lt;/span&gt; (var printerName &lt;span class="kwrd"&gt;in&lt;/span&gt; printerNames)
            {
                var excelPrinterName = ConvertToExcelPrinterFriendlyName(printerName);
                Console.WriteLine(excelPrinterName);

                excelApp.ActivePrinter = excelPrinterName;
            }

            GC.Collect();
            GC.WaitForPendingFinalizers();

            Marshal.FinalReleaseComObject(worksheet);

            workbook.Close(&lt;span class="kwrd"&gt;false&lt;/span&gt;);
            Marshal.FinalReleaseComObject(workbook);

            excelApp.Quit();
            Marshal.FinalReleaseComObject(excelApp);
        }

        &lt;span class="kwrd"&gt;public&lt;/span&gt; &lt;span class="kwrd"&gt;static&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt; ConvertToExcelPrinterFriendlyName(&lt;span class="kwrd"&gt;string&lt;/span&gt; printerName)
        {
            var key = Registry.CurrentUser;
            var subkey = key.OpenSubKey(&lt;span class="str"&gt;@&amp;quot;Software\Microsoft\Windows NT\CurrentVersion\Devices&amp;quot;&lt;/span&gt;);

            var &lt;span class="kwrd"&gt;value&lt;/span&gt; = subkey.GetValue(printerName);
            &lt;span class="kwrd"&gt;if&lt;/span&gt; (&lt;span class="kwrd"&gt;value&lt;/span&gt; == &lt;span class="kwrd"&gt;null&lt;/span&gt;) &lt;span class="kwrd"&gt;throw&lt;/span&gt; &lt;span class="kwrd"&gt;new&lt;/span&gt; Exception(&lt;span class="kwrd"&gt;string&lt;/span&gt;.Format(&lt;span class="str"&gt;&amp;quot;Device not found: {0}&amp;quot;&lt;/span&gt;, printerName));

            var portName = &lt;span class="kwrd"&gt;value&lt;/span&gt;.ToString().Substring(9);  &lt;span class="rem"&gt;//strip away the winspool, &lt;/span&gt;
 
            &lt;span class="kwrd"&gt;return&lt;/span&gt; &lt;span class="kwrd"&gt;string&lt;/span&gt;.Format(&lt;span class="str"&gt;&amp;quot;{0} on {1}&amp;quot;&lt;/span&gt;, printerName, portName);;
        }
    }
}&lt;/pre&gt;



&lt;p&gt;Hope this is useful for those who need it… Enjoy.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx&amp;amp;subject=How to Change the Active Printer to Specific Printer in Excel Using .NET and How the Heck Can I Find the Right Printer Name and Port Combination that Excel Wants?" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx&amp;amp;t=How+to+Change+the+Active+Printer+to+Specific+Printer+in+Excel+Using+.NET+and+How+the+Heck+Can+I+Find+the+Right+Printer+Name+and+Port+Combination+that+Excel+Wants%3f" target="_blank" title="Submit How to Change the Active Printer to Specific Printer in Excel Using .NET and How the Heck Can I Find the Right Printer Name and Port Combination that Excel Wants? to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx&amp;amp;title=How+to+Change+the+Active+Printer+to+Specific+Printer+in+Excel+Using+.NET+and+How+the+Heck+Can+I+Find+the+Right+Printer+Name+and+Port+Combination+that+Excel+Wants%3f" target="_blank" title="Submit How to Change the Active Printer to Specific Printer in Excel Using .NET and How the Heck Can I Find the Right Printer Name and Port Combination that Excel Wants? to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx&amp;amp;phase=2" target="_blank" title="Submit How to Change the Active Printer to Specific Printer in Excel Using .NET and How the Heck Can I Find the Right Printer Name and Port Combination that Excel Wants? to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/25/how-to-change-the-active-printer-to-specific-printer-in-excel-using-net-and-how-the-heck-can-i-find-the-right-printer-name-and-port-combination-that-excel-wants.aspx&amp;amp;title=How+to+Change+the+Active+Printer+to+Specific+Printer+in+Excel+Using+.NET+and+How+the+Heck+Can+I+Find+the+Right+Printer+Name+and+Port+Combination+that+Excel+Wants%3f" target="_blank" title="Add How to Change the Active Printer to Specific Printer in Excel Using .NET and How the Heck Can I Find the Right Printer Name and Port Combination that Excel Wants? to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192149" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Excel/default.aspx">Excel</category><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/Interops/default.aspx">Interops</category></item><item><title>How come System.Web.Extensions.dll cannot be found in the Add Reference dialog?</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx</link><pubDate>Thu, 17 Feb 2011 16:42:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:192092</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=192092</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx#comments</comments><description>&lt;p&gt;I was perusing stackoverflow.com questions and came upon a question regarding JavaScriptSerializer that I found quite interesting.&amp;nbsp; I decided to do a quick spike in Visual Studio to find out if I can get answer for the question.&amp;nbsp; Fired up Visual Studio 2010, created a new Console Application and tried to instantiate a JavaScriptSerializer in my code, but of course,&amp;nbsp;the IDE&amp;nbsp;did not recognize JavaScriptSerializer since I haven&amp;#39;t added a reference to the necessary assembly.&amp;nbsp; In trying to fix that, I launched the Add Reference dialog and chose the .NET tab and scrolled down... and guess what.... no System.Web.Extensions... hmmm...&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thinking the problem through I know System.Web.Extensions is part of .NET 4 (which was installed when I installed VS 2010), so how come it is not available in the Add Reference dialog?&lt;/p&gt;&lt;p&gt;&amp;nbsp;After a bit more thinking I came to realize that it&amp;#39;s probably because Console Application is targetting the .NET Framework&amp;nbsp;4 Client Profile which does not include all the web stuffs in it.&amp;nbsp; Switching the Target framework to .NET Framework 4 (Full profile) from the Project Property, Application tab, solved the problem.&lt;/p&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx&amp;amp;subject=How come System.Web.Extensions.dll cannot be found in the Add Reference dialog?" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx&amp;amp;t=How+come+System.Web.Extensions.dll+cannot+be+found+in+the+Add+Reference+dialog%3f" target="_blank" title="Submit How come System.Web.Extensions.dll cannot be found in the Add Reference dialog? to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx&amp;amp;title=How+come+System.Web.Extensions.dll+cannot+be+found+in+the+Add+Reference+dialog%3f" target="_blank" title="Submit How come System.Web.Extensions.dll cannot be found in the Add Reference dialog? to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx&amp;amp;phase=2" target="_blank" title="Submit How come System.Web.Extensions.dll cannot be found in the Add Reference dialog? to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/02/17/how-come-system-web-extensions-dll-cannot-be-found-in-the-add-reference-dialog.aspx&amp;amp;title=How+come+System.Web.Extensions.dll+cannot+be+found+in+the+Add+Reference+dialog%3f" target="_blank" title="Add How come System.Web.Extensions.dll cannot be found in the Add Reference dialog? to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=192092" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/.NET+Client+Profile/default.aspx">.NET Client Profile</category></item><item><title>"Unable to load client print control" on SQL Server 2008 SP 2 SSRS</title><link>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx</link><pubDate>Wed, 26 Jan 2011 13:34:00 GMT</pubDate><guid isPermaLink="false">5cc3a90d-ac9a-472a-8983-30514957434c:191915</guid><dc:creator>Jimmy Chandra</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://geeks.netindonesia.net/blogs/jimmy/rsscomments.aspx?PostID=191915</wfw:commentRss><comments>http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx#comments</comments><description>&lt;p&gt;Ran into this problem with a client of mine.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Symptom&lt;/strong&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Everytime the user tries to print a report from the web, the error message was shown and the report won&amp;#39;t print.&amp;nbsp; &lt;/li&gt;&lt;li&gt;The user is just a regular user and not assigned to Power Users / Local Administrators group.&lt;br /&gt;&lt;em&gt;p.s. Elevating the user privilege by assigning it to Power Users&amp;nbsp; / Local Admin will solve the issue, but for audit purposes, this is not allowed at the particular client.&lt;/em&gt;&lt;/li&gt;&lt;li&gt;Even after installing the necessary RSClientPrint ActiveX control as Local Administrators, the problem still persists.&lt;/li&gt;&lt;li&gt;Tried applying the solution from this blog entry: &lt;a href="http://blogs.msdn.com/b/mariae/archive/2010/04/13/error-unable-to-load-client-print-control-when-printing-reports-in-reporting-services-summary-of-all-possible-causes-at-april-2010.aspx"&gt;http://blogs.msdn.com/b/mariae/archive/2010/04/13/error-unable-to-load-client-print-control-when-printing-reports-in-reporting-services-summary-of-all-possible-causes-at-april-2010.aspx&lt;/a&gt;&amp;nbsp;and the problem still persists.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Platform&lt;/strong&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;server: SQL Server 2008 Service Pack 2&lt;/li&gt;&lt;li&gt;client: Windows XP x86&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Causes&lt;/strong&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Insufficient&amp;nbsp;user permission&amp;nbsp;&lt;/li&gt;&lt;li&gt;Potential bug introduced in&amp;nbsp;SQL Server 2008 SP 2?&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Working Remedy&lt;/strong&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Deploying the RSClientPrint-x86.cab from &lt;strong&gt;SQL Server 2008 R2&lt;/strong&gt; to the client machine fixed the problem.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;References&lt;/strong&gt;:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/799e7c86-1d2d-445f-9b18-687c1474e0a7"&gt;http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/799e7c86-1d2d-445f-9b18-687c1474e0a7&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/340151/reportviewer-client-print-control-unable-to-load-client-print-control"&gt;http://stackoverflow.com/questions/340151/reportviewer-client-print-control-unable-to-load-client-print-control&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;div class = "shareblock"&gt;&lt;strong&gt;Share this post: &lt;/strong&gt;&lt;a href="mailto:?body=Thought you might like this: http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx&amp;amp;subject=&amp;quot;Unable to load client print control&amp;quot; on SQL Server 2008 SP 2 SSRS" target="_blank" title="Send via email"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Mail.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.facebook.com/sharer.php?u=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx&amp;amp;t=%26quot%3bUnable+to+load+client+print+control%26quot%3b+on+SQL+Server+2008+SP+2+SSRS" target="_blank" title="Submit &amp;quot;Unable to load client print control&amp;quot; on SQL Server 2008 SP 2 SSRS to DotNetKicks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Facebook.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://del.icio.us/post?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx&amp;amp;title=%26quot%3bUnable+to+load+client+print+control%26quot%3b+on+SQL+Server+2008+SP+2+SSRS" target="_blank" title="Submit &amp;quot;Unable to load client print control&amp;quot; on SQL Server 2008 SP 2 SSRS to del.icio.us"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Delicious.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="http://www.digg.com/submit?url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx&amp;amp;phase=2" target="_blank" title="Submit &amp;quot;Unable to load client print control&amp;quot; on SQL Server 2008 SP 2 SSRS to digg.com"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Digg.16.gif" border="0"&gt;&lt;/a&gt; | &lt;a href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;amp;mkt=en-us&amp;amp;url=http://geeks.netindonesia.net/blogs/jimmy/archive/2011/01/26/quot-unable-to-load-client-print-control-quot-on-sql-server-2008-sp-2-ssrs.aspx&amp;amp;title=%26quot%3bUnable+to+load+client+print+control%26quot%3b+on+SQL+Server+2008+SP+2+SSRS" target="_blank" title="Add &amp;quot;Unable to load client print control&amp;quot; on SQL Server 2008 SP 2 SSRS to Live Bookmarks"&gt;&lt;img src="http://geeks.netindonesia.net/Images/Share.Live.16.gif" border="0"&gt;&lt;/a&gt;&lt;/div&gt;&lt;img src="http://geeks.netindonesia.net/aggbug.aspx?PostID=191915" width="1" height="1"&gt;</description><category domain="http://geeks.netindonesia.net/blogs/jimmy/archive/tags/SSRS/default.aspx">SSRS</category></item></channel></rss>