<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.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>Colt Kwong Blog</title><link>http://weblogs.asp.net/coltk/default.aspx</link><description>.NET is out there</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Saving changes is not permitted in SQL 2008 Management Studio</title><link>http://weblogs.asp.net/coltk/archive/2009/12/26/saving-changes-is-not-permitted-in-sql-2008-management-studio.aspx</link><pubDate>Sat, 26 Dec 2009 10:30:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7291569</guid><dc:creator>Colt</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7291569</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/12/26/saving-changes-is-not-permitted-in-sql-2008-management-studio.aspx#comments</comments><description>&lt;P&gt;I worked with SQL 2008 in a recent project, but I got the following message whenever I try to make change to a table structure in SQL management studio: &lt;/P&gt;
&lt;P&gt;Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.&lt;/P&gt;
&lt;P&gt;I used to write ALTER statement (e.g. ALTER Table.. .ALTER Column...) so I don't really know what is the error message mean. Today, I search it during my Xmas holiday and know that there's a option in &lt;STRONG&gt;Tools | Options | Designer | Prevent saving change that require table re-creation&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://weblogs.asp.net/blogs/coltk/TableRecreation.gif"&gt;&lt;IMG border=0 src="http://weblogs.asp.net/blogs/coltk/TableRecreation.gif"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Uncheck it and then I can modify table structure in GUI now. :) &lt;/P&gt;
&lt;P mce_keep="true"&gt;Regards,&lt;BR&gt;Colt&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7291569" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/SQL+Server/default.aspx">SQL Server</category></item><item><title>2009 Microsoft MVP Award</title><link>http://weblogs.asp.net/coltk/archive/2009/10/02/2009-microsoft-mvp-award.aspx</link><pubDate>Fri, 02 Oct 2009 11:26:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7221587</guid><dc:creator>Colt</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7221587</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/10/02/2009-microsoft-mvp-award.aspx#comments</comments><description>&lt;P&gt;I'm so delighted to see an email with subject "Congratulations Microsoft MVP" in my mailbox this morning! &lt;/P&gt;
&lt;P&gt;It's so warm and I'm happy to see this kind of email every year, especially I was so nervous and hand sweating in the last few weeks as I received an email from my MVP lead telling me that the MVP selection is very strict this year, and I have prepared lots of statistic figures and re-submit my application twice. (maybe it's because of the economic turmoil?) Anyway, it's my honor to receive this award in 2009.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7221587" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/Personal/default.aspx">Personal</category></item><item><title>MSDN Web Application Toolkits</title><link>http://weblogs.asp.net/coltk/archive/2009/09/29/msdn-web-application-toolkits.aspx</link><pubDate>Tue, 29 Sep 2009 02:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7219673</guid><dc:creator>Colt</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7219673</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/09/29/msdn-web-application-toolkits.aspx#comments</comments><description>&lt;P&gt;Just go through the Bing Search Toolkit, it's straightforward and simple. &lt;/P&gt;
&lt;P&gt;All toolkits can be found at: &lt;A class="" href="http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=WebAppToolkits" target=_blank mce_href="http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=WebAppToolkits"&gt;http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=WebAppToolkits&lt;/A&gt;&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7219673" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>Green IT and Client Computing Webcast by INETA APAC</title><link>http://weblogs.asp.net/coltk/archive/2009/09/09/green-it-and-client-computing-webcast-by-ineta-apac.aspx</link><pubDate>Wed, 09 Sep 2009 03:21:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7197126</guid><dc:creator>Colt</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7197126</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/09/09/green-it-and-client-computing-webcast-by-ineta-apac.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;A new webcast session is scheduled this Sat and details are:&lt;/P&gt;
&lt;P mce_keep="true"&gt;Topic:&amp;nbsp;&lt;STRONG&gt;__ Green IT and Client Computing __&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Presenter: Benjamin Cassell&lt;/P&gt;
&lt;P mce_keep="true"&gt;Session abstract:&lt;/P&gt;
&lt;P mce_keep="true"&gt;By 2010, 75% of organizations will use full life cycle energy and CO2 footprint as mandatory PC hardware buying criteria (Gartner Group 2008). Thin clients are the obvious choice, but require significant change. An easier way to make the transition is to buy energy efficient computers or computers containing less pollutants. Pollutants in our waterways and carbon emissions are the two separate areas that need to be addressed. Some products claiming to be green may compromise one of these concerns for the other. In this session you will learn about the client computing technologies, their power consumption and ways to make your client computing environment more environmentally friendly.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Presenter Bio:&lt;/P&gt;
&lt;P mce_keep="true"&gt;After finishing school, Benjamin enrolled in a Diploma in Photojournalism and after 2 years and some other study in Computing and Literature he completed this qualification and had a couple of travel articles published. For the next year he fell into Scuba Dive Instructing and then went back to Computers. Ten years on Benjamin is still a IT specialist in software with a degree in Technology majoring in Information Systems. However having worked for several different types of organisations of different sizes it taught Benjamin what he really wanted out of his career – having always been quite independent and concerned for the environment and people's health, the emergence of 'Green IT' was the break he needed to start his own business, Green Earth IT.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Date: 12th Sept 2009 (Saturday)&amp;nbsp;5-6 PM (Sydney time) [&lt;A class="" href="http://www.timeanddate.com/worldclock/converted.html?month=8&amp;amp;day=29&amp;amp;year=2009&amp;amp;hour=17&amp;amp;min=0&amp;amp;sec=0&amp;amp;p1=240&amp;amp;p2=44" target=_blank mce_href="http://www.timeanddate.com/worldclock/converted.html?month=8&amp;amp;day=29&amp;amp;year=2009&amp;amp;hour=17&amp;amp;min=0&amp;amp;sec=0&amp;amp;p1=240&amp;amp;p2=44"&gt;Time in your location?&lt;/A&gt;]&lt;/P&gt;
&lt;P mce_keep="true"&gt;How to Join: &lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A href="https://www.livemeeting.com/cc/usergroups/join?id=976JZR&amp;amp;role=attend&amp;amp;pw=Qhz7%3AttqcOr"&gt;https://www.livemeeting.com/cc/usergroups/join?id=976JZR&amp;amp;role=attend&amp;amp;pw=Qhz7%3AttqcOr&lt;/A&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;or &lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Attendee URL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="https://www.livemeeting.com/cc/usergroups/join"&gt;https://www.livemeeting.com/cc/usergroups/join&lt;/A&gt;&lt;BR&gt;Meeting ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 976JZR&lt;BR&gt;Attendee Entry Code Qhz7:ttqc&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;Regards,&lt;BR&gt;Colt&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7197126" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/INETA/default.aspx">INETA</category></item><item><title>Name variable meaningfully all the times</title><link>http://weblogs.asp.net/coltk/archive/2009/08/23/name-variable-meaningfully-all-the-times.aspx</link><pubDate>Sun, 23 Aug 2009 05:32:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7178505</guid><dc:creator>Colt</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7178505</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/08/23/name-variable-meaningfully-all-the-times.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I'm rushing for a SharePoint POC before my vacation next week, and what I have&amp;nbsp;to do is a standard&amp;nbsp;scenario by creating a grid listing items from a custom list, then users click on the first column and redirected to an edit form. I wanted to complete this task as soon as possible but turn out I spend more time than usual.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://weblogs.asp.net/blogs/coltk/972225.jpg"&gt;&lt;IMG src="http://weblogs.asp.net/blogs/coltk/972225.jpg" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;&lt;EM&gt;No item exists at &lt;/EM&gt;&lt;/STRONG&gt;&lt;A href="http://server/SITE/mypage.aspx?ID=1"&gt;&lt;STRONG&gt;&lt;EM&gt;http://SERVER/SITE/mypage.aspx?ID=1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt;&lt;EM&gt;. It may have been deleted or renamed by another user.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;OK, I admit that I don't want to work this weekend, and I google that there's a well explained article on the&amp;nbsp;&lt;A class="" href="http://support.microsoft.com/kb/972225" target=_blank mce_href="http://support.microsoft.com/kb/972225"&gt;support site&lt;/A&gt; and importantly -&amp;gt;&amp;nbsp;Always name your variable or method a meaningful name not only&amp;nbsp;(in addition to readibility and supportability reasons. :)&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7178505" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>Four handy utilities in my day job</title><link>http://weblogs.asp.net/coltk/archive/2009/08/22/four-handy-utilities-in-my-day-job.aspx</link><pubDate>Fri, 21 Aug 2009 15:53:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7176595</guid><dc:creator>Colt</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7176595</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/08/22/four-handy-utilities-in-my-day-job.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;Just want to highlight four very useful utilites that I use everyday and one important advantage is that all of the tools are very small, handy and able to store and run in my thumb drive.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://www.faststone.org/FSCaptureDetail.htm" target=_blank mce_href="http://www.faststone.org/FSCaptureDetail.htm"&gt;FastStone Capture&lt;/A&gt; - Capture screen shot and video easily (good for documentation and webcast)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx" target=_blank mce_href="http://technet.microsoft.com/en-us/sysinternals/bb897434.aspx"&gt;ZoomIt&lt;/A&gt; - Zoom in / out and highlight anything on screen (good for presentation and meeting)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx" target=_blank mce_href="http://technet.microsoft.com/en-us/sysinternals/bb897557.aspx"&gt;BgInfo&lt;/A&gt; - Display computer information on background (good for demo and development in virtual machine)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://www.realvnc.com/products/free/4.1/index.html" target=_blank mce_href="http://www.realvnc.com/products/free/4.1/index.html"&gt;VNC Viewer&lt;/A&gt; - Remote control computer, even behind firewall (good for remote assistance and support)&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;Regards,&lt;BR&gt;Colt&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7176595" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/Personal/default.aspx">Personal</category></item><item><title>Best Practices Webcast by INETA APAC</title><link>http://weblogs.asp.net/coltk/archive/2009/08/17/best-practices-webcast-by-ineta-apac.aspx</link><pubDate>Mon, 17 Aug 2009 14:33:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7171351</guid><dc:creator>Colt</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7171351</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/08/17/best-practices-webcast-by-ineta-apac.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;INETA APAC had conducted two webcasts in the last two months, the topics are:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Presenting at large events such as TechEd (by Greg Low)&lt;/LI&gt;
&lt;LI&gt;Sustainability and Green IT Overview (by Alan Dayeh)&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;The first webcast is all about presentation skill and common tips &amp;amp; tricks when delivering a large event/conference. It have lots of great tips by an experienced TechEd presenter - Greg. The second one cover the overview of the hottest topic - Green IT and Alan share some information about corporate responsbility and sustainability issues. Both are very informative and relevant to our daily operation and life. You can download and view the recorded sessions at the links above, and may I suggest you to bookmark this link so as to keep track of our series of Best Practice webcasts organized by INETA APAC?&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A class="" href="http://apac.ineta.org/Resources/BestPracticeWebcasts/tabid/341/Default.aspx" target=_blank mce_href="http://apac.ineta.org/Resources/BestPracticeWebcasts/tabid/341/Default.aspx"&gt;Best Practice Webcast series&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;FYI, INETA APAC will have a series of Best Practice webcast scheduled and the next topic will be: Green IT and Client Computing (Wednesday 19th August or Friday 21st August, 5-6pm Sydney time tentatively).&lt;/P&gt;
&lt;P&gt;BTW, you can subscribe to our INETA APAC blog or join our group on Facebook and stay connected:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A class="" href="http://cid-4dbb45edf3e1b363.spaces.live.com/" target=_blank mce_href="http://cid-4dbb45edf3e1b363.spaces.live.com"&gt;INETA APAC blog space&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A class="" href="http://www.facebook.com/group.php?gid=74677284379&amp;amp;ref=share" target=_blank mce_href="http://www.facebook.com/group.php?gid=74677284379&amp;amp;ref=share"&gt;INETA APAC Facebook group&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Regards,&lt;BR&gt;Colt&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7171351" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/INETA/default.aspx">INETA</category></item><item><title>PowerShell Script with ASP.NET and Console Application</title><link>http://weblogs.asp.net/coltk/archive/2009/08/17/powershell-script-with-asp-net-and-console-application.aspx</link><pubDate>Mon, 17 Aug 2009 14:04:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7171315</guid><dc:creator>Colt</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7171315</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/08/17/powershell-script-with-asp-net-and-console-application.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I have two projects that need to incorporate &lt;A class="" href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target=_blank mce_href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx"&gt;Windows PowerShell&lt;/A&gt;, &lt;A class="" href="http://technet.microsoft.com/en-us/library/bb123778.aspx" target=_blank mce_href="http://technet.microsoft.com/en-us/library/bb123778.aspx"&gt;Exchange Management Shell&lt;/A&gt; and&amp;nbsp;&lt;A class="" href="http://www.quest.com/powershell/activeroles-server.aspx" target=_blank mce_href="http://www.quest.com/powershell/activeroles-server.aspx"&gt;ActiveRoles Management Shell for AD&lt;/A&gt;&amp;nbsp;(by Quest) in a ASP.NET and a Console Application recently, so I started to look for information about PowerShell scripting with .NET and below are two important articles in my opinion:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;HOWTO: &lt;A class="" href="http://blogs.msdn.com/akashb/archive/2009/01/30/howto-using-powershell-in-asp-net-net-framework-2-0.aspx" target=_blank mce_href="http://blogs.msdn.com/akashb/archive/2009/01/30/howto-using-powershell-in-asp-net-net-framework-2-0.aspx"&gt;Using PowerShell in ASP.NET&lt;/A&gt; (.NET Framework 2.0)&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;&lt;A class="" href="http://msdn.microsoft.com/en-us/library/bb332449.aspx" target=_blank mce_href="http://msdn.microsoft.com/en-us/library/bb332449.aspx"&gt;Using Exchange Management Shell Commands With Managed Code&lt;/A&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;The first article explains the most challenging issues in hosting PowerShell scripting with ASP.NET - Security context and permission and describe three common optioins. The second article describes the logic and tips in writing PowerShell in .NET managed code application. &lt;/P&gt;
&lt;P mce_keep="true"&gt;I wrote a small class to execute the PowerShell script, by passing in various script text on the fly. Below is a small code snippet:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;private const string PS_SNAP_IN_MICROSOFT = "Microsoft.Exchange.Management.PowerShell.Admin";&lt;BR&gt;&amp;nbsp;&amp;nbsp;private const string PS_SNAP_IN_QUEST = "Quest.ActiveRoles.AdManagement";&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RunspaceConfiguration rsConfig = RunspaceConfiguration.Create();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PSSnapInException snapInException = null;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsConfig.AddPSSnapIn(PS_SNAP_IN_MICROSOFT, out snapInException); // Add Exchange Mgmt SnapIn&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rsConfig.AddPSSnapIn(PS_SNAP_IN_QUEST, out snapInException);&amp;nbsp; // Add Quest Mgmt SnapIn&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Runspace myRunspace = RunspaceFactory.CreateRunspace(rsConfig);&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; myRunspace.Open();&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Pipeline pipeLine = myRunspace.CreatePipeline();&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pipeLine.Commands.AddScript(scriptText);&amp;nbsp; //&amp;nbsp;Pass in the script text on the fly&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pipeLine.Commands.Add("Out-String");&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Collection&amp;lt;PSObject&amp;gt; cmdResults = pipeLine.Invoke();&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;myRunspace.Close();&lt;/P&gt;
&lt;P mce_keep="true"&gt;After preparing these PowerShell scripting in .NET app, I'd suggest to stick with PowerShell because it's handy and flexible. I'd prefer it over DirectoryServices or CDOEXM commands. :) Read the useful articles mentioned above&amp;nbsp;in sequence then you&amp;nbsp;are ready to start coding!&lt;/P&gt;
&lt;P mce_keep="true"&gt;Regards,&lt;BR&gt;Colt&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7171315" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/coltk/archive/tags/.NET/default.aspx">.NET</category></item><item><title>Data Refresh Failed in Excel Services</title><link>http://weblogs.asp.net/coltk/archive/2009/08/17/data-refresh-failed-in-excel-services.aspx</link><pubDate>Mon, 17 Aug 2009 13:50:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7171303</guid><dc:creator>Colt</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=7171303</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2009/08/17/data-refresh-failed-in-excel-services.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I prepared a SharePoint Report Center portal by using SharePoint 2007 recently, but I was unable to refresh the Excel workbook on my portal and got an error message:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;Unable to retrieve external data for the following connections:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;EM&gt;Connection_Name&lt;/EM&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;The data sources may be unreachable, may not be responding, or may have denied you access. Verify that data refresh is enabled for the trusted file location and that the workbook data authentication is correctly set.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P mce_keep="true"&gt;I'm sure my data connection and document library are trusted and I can view the workbook without problem. Here is my detailed situation:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;
&lt;DIV mce_keep="true"&gt;Enable Excel services and workbook refresh functionality&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;
&lt;DIV mce_keep="true"&gt;Upload an Excel workbook to a document library&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Add a Excel services webpart and point to the newly uploaded workbook&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Excel workbook render correctly&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;BUT, an error occur if I click "Refresh" button on the top menu&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;Thanks to my friend &lt;A class="" href="http://blog.joycode.com/ipark/archive/2009/06/10/115611.joy" target=_blank mce_href="http://blog.joycode.com/ipark/archive/2009/06/10/115611.joy"&gt;Qifeng&lt;/A&gt;, he told me that it's related to security restriction and execute three commands. Finally it works:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;stsadm -o set-ecssecurity -accessmodel delegation -ssp &lt;EM&gt;sspname&lt;/EM&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;stsadm -o execadmsvcjobs&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;iisreset&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7171303" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>ASP.NET MVP Award and MVC</title><link>http://weblogs.asp.net/coltk/archive/2008/10/09/asp-net-mvp-award-and-mvc.aspx</link><pubDate>Wed, 08 Oct 2008 16:08:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6665789</guid><dc:creator>Colt</dc:creator><slash:comments>2</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=6665789</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2008/10/09/asp-net-mvp-award-and-mvc.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;I still don't have a chance to blog about my personal achievement recently&amp;nbsp;- I got my &lt;A class="" href="https://mvp.support.microsoft.com/profile/Colt.Kwong" mce_href="https://mvp.support.microsoft.com/profile/Colt.Kwong"&gt;MVP status&lt;/A&gt; renewed on Oct 1! Yes, it's a great news for myself and I enjoyed it so much since 2001. &lt;/P&gt;
&lt;P mce_keep="true"&gt;BTW, I'm very happy to meet few friends this week, including &lt;A class="" href="http://sqlblog.com/blogs/greg_low/" target=_blank mce_href="http://sqlblog.com/blogs/greg_low/"&gt;Greg Low&lt;/A&gt; and &lt;A class="" href="http://haacked.com/" target=_blank mce_href="http://haacked.com/"&gt;Phil Haack&lt;/A&gt;. Greg is a SQL expert and I knew him for years in the space of INETA and online community personally. Phil is obviously a star and I really enjoy his presentation about &lt;A class="" href="http://www.asp.net/learn/mvc/tutorial-02-vb.aspx" mce_href="http://www.asp.net/learn/mvc/tutorial-02-vb.aspx"&gt;introducing MVC&lt;/A&gt; at &lt;A class="" href="http://www.microsoft.com/hk/technet/teched2008/agenda.aspx" target=_blank mce_href="http://www.microsoft.com/hk/technet/teched2008/agenda.aspx"&gt;local TechEd&lt;/A&gt; today (even the session is around level 100-200 though) &lt;/P&gt;
&lt;P mce_keep="true"&gt;(Phil, if you're reading this post, please don't code in front of the audience but simply insert code from snippet next time ;) just kidding)&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6665789" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/Personal/default.aspx">Personal</category><category domain="http://weblogs.asp.net/coltk/archive/tags/TechEd/default.aspx">TechEd</category></item><item><title>Activate SharePoint Publishing Infrastructure Feature Failed</title><link>http://weblogs.asp.net/coltk/archive/2008/09/09/activate-sharepoint-publishing-infrastructure-feature-failed.aspx</link><pubDate>Tue, 09 Sep 2008 03:42:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6611645</guid><dc:creator>Colt</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=6611645</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2008/09/09/activate-sharepoint-publishing-infrastructure-feature-failed.aspx#comments</comments><description>&lt;p&gt;In a recent deployment of a SharePoint site, I have to add a Content Query Web Part (CQWP) so what I need to do is to activate the SharePoint Publishing feature. However, I cannot do it because of an "access denied" error that I got whenever I activate the SharePoint Publishing Infrastructure feature at the top-level site. &lt;/p&gt;&lt;p&gt;This kind of issu is &lt;a href="http://weblogs.asp.net/coltk/archive/2008/06/16/misleading-error-message-about-trial-period-expiration.aspx" mce_href="http://weblogs.asp.net/coltk/archive/2008/06/16/misleading-error-message-about-trial-period-expiration.aspx"&gt;not new&lt;/a&gt; for me, and I quickly change the &lt;a href="http://blog.thekid.me.uk/archive/2007/02/05/activating-office-sharepoint-server-publishing-infrastructure-access-denied.aspx" target="_blank" mce_href="http://blog.thekid.me.uk/archive/2007/02/05/activating-office-sharepoint-server-publishing-infrastructure-access-denied.aspx"&gt;AppPool &lt;/a&gt;account after a little googling. However, I got another error of "value does not fall within the expected range" despite I made such tweak and execute the STSADM command manually. So finally, I have to re-create the site by using the administrative AppPool, restore the contents and templates and then change the AppPool account to a more restrictive one according to the best practice.. &amp;lt;sigh&amp;gt;&lt;br&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6611645" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>Microsoft HK Technial Support Forum Announced</title><link>http://weblogs.asp.net/coltk/archive/2008/08/20/microsoft-hk-technial-support-forum-announced.aspx</link><pubDate>Wed, 20 Aug 2008 13:40:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6542578</guid><dc:creator>Colt</dc:creator><slash:comments>105</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=6542578</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2008/08/20/microsoft-hk-technial-support-forum-announced.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;After several months of "silent" evaulation and discussion among local MVPs and few members, Microsoft HK office today announce the technical support forum and put an icon next to Bill :) &lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://weblogs.asp.net/blogs/coltk/Mshk.Home.20080820.jpg"&gt;&lt;IMG style="WIDTH: 240px; HEIGHT: 240px" height=240 src="http://weblogs.asp.net/blogs/coltk/Mshk.Home.20080820.jpg" width=240 border=0 mce_src="http://weblogs.asp.net/blogs/coltk/Mshk.Home.20080820.jpg"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;From the previous meeting with Microsoft DPE team and my fellow MVPs, this forum will only be announced in TechEd Hong Kong but now it seems the team is eager to show the latest homepage to Bill.&amp;nbsp;Personally, I'm tire of seeing the bug of the old forum application and looking forward for the upgrade to V3.0, just like the US &lt;A class="" href="http://forums.technet.microsoft.com/" target=_blank mce_href="http://forums.technet.microsoft.com"&gt;TechNet Forum&lt;/A&gt;. (mouthwatering...)&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6542578" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/Personal/default.aspx">Personal</category></item><item><title>VS 2008 and ASP.NET 3.5 SP1</title><link>http://weblogs.asp.net/coltk/archive/2008/08/16/vs-2008-and-asp-net-3-5-sp1.aspx</link><pubDate>Sat, 16 Aug 2008 10:28:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6525613</guid><dc:creator>Colt</dc:creator><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=6525613</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2008/08/16/vs-2008-and-asp-net-3-5-sp1.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;With the release of the SP1, I refresh my local Web developer tool this weekend. :)&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://weblogs.asp.net/blogs/coltk/VSSP1Beta.jpg"&gt;&lt;IMG src="http://weblogs.asp.net/blogs/coltk/VSSP1Beta.jpg" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;A href="http://weblogs.asp.net/blogs/coltk/VWD1SP.jpg"&gt;&lt;IMG src="http://weblogs.asp.net/blogs/coltk/VWD1SP.jpg" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Also, please check out the VS 2008 &lt;A class="" href="http://go.microsoft.com/fwlink/?LinkID=121685&amp;amp;clcid=0x409" target=_blank mce_href="http://go.microsoft.com/fwlink/?LinkID=121685&amp;amp;clcid=0x409"&gt;preparation tool&lt;/A&gt; and install the &lt;A class="" href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=15389" target=_blank mce_href="http://www.codeplex.com/aspnet/Release/ProjectReleases.aspx?ReleaseId=15389"&gt;MVC Preview 4&lt;/A&gt; explicitly.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6525613" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/ASP.NET/default.aspx">ASP.NET</category></item><item><title>SharePoint Error: Some or all identity references could not be translated</title><link>http://weblogs.asp.net/coltk/archive/2008/08/05/sharepoint-error-some-or-all-identity-references-could-not-be-translated.aspx</link><pubDate>Tue, 05 Aug 2008 09:11:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6485042</guid><dc:creator>Colt</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=6485042</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2008/08/05/sharepoint-error-some-or-all-identity-references-could-not-be-translated.aspx#comments</comments><description>&lt;p&gt;I create numerous SharePoint sites with the same port number in my virtual machine frequently during envisioning / POC phrase, and I face an error when I try to re-create the same Web app in SharePoint today: Some or all identity references could not be translated. The &lt;a href="http://www.google.com/search?hl=en&amp;amp;q=Some+or+all+identity+references+could+not+be+translated.&amp;amp;btnG=Search" mce_href="http://www.google.com/search?hl=en&amp;amp;q=Some+or+all+identity+references+could+not+be+translated.&amp;amp;btnG=Search"&gt;result&lt;/a&gt; from google is not so helpful but I finally figure out that the problem is caused by an old app pool in IIS after reading this &lt;a href="http://www.sharepointblogs.com/jasonmedero/archive/2007/03/19/failed-to-create-configuration-database.aspx" mce_href="http://www.sharepointblogs.com/jasonmedero/archive/2007/03/19/failed-to-create-configuration-database.aspx"&gt;post&lt;/a&gt; - I need to clean up the content db, virtual directory and app pool properly next time.&lt;br&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6485042" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/coltk/archive/tags/SharePoint/default.aspx">SharePoint</category></item><item><title>Misleading Error Message about Trial Period Expiration in MOSS</title><link>http://weblogs.asp.net/coltk/archive/2008/06/16/misleading-error-message-about-trial-period-expiration.aspx</link><pubDate>Mon, 16 Jun 2008 10:21:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6281548</guid><dc:creator>Colt</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/coltk/rsscomments.aspx?PostID=6281548</wfw:commentRss><comments>http://weblogs.asp.net/coltk/archive/2008/06/16/misleading-error-message-about-trial-period-expiration.aspx#comments</comments><description>&lt;p&gt;&lt;img src="http://www.carrollzone.com/Blog/image.axd?picture=WindowsLiveWriter/MOSStrialperiodforthisproducthasexpirede_8257/image_3.png" mce_src="http://www.carrollzone.com/Blog/image.axd?picture=WindowsLiveWriter/MOSStrialperiodforthisproducthasexpirede_8257/image_3.png"&gt;&lt;/p&gt;&lt;p&gt;A very misleading error message that I came across last week..&amp;nbsp;&lt;/p&gt;&lt;p&gt;Trial period of my MOSS has expired? No way.. check out the &lt;a href="http://www.carrollzone.com/Blog/post/2007/08/MOSS-quot3btrial-period-for-this-product-has-expiredquot3b-error.aspx" target="_blank" mce_href="http://www.carrollzone.com/Blog/post/2007/08/MOSS-quot3btrial-period-for-this-product-has-expiredquot3b-error.aspx"&gt;permission&lt;/a&gt; &lt;a href="http://mindsharpblogs.com/ben/archive/2006/09/23/1299.aspx" target="_blank" mce_href="http://mindsharpblogs.com/ben/archive/2006/09/23/1299.aspx"&gt;and &lt;/a&gt;&lt;a href="http://msmvps.com/blogs/shane/archive/2008/02/05/the-trial-period-for-this-product-has-expired.aspx" target="_blank" mce_href="http://msmvps.com/blogs/shane/archive/2008/02/05/the-trial-period-for-this-product-has-expired.aspx"&gt;security &lt;/a&gt;&lt;a href="http://mindsharpblogs.com/ben/archive/2006/09/23/1299.aspx" target="_blank" mce_href="http://mindsharpblogs.com/ben/archive/2006/09/23/1299.aspx"&gt;settings &lt;/a&gt;first.&lt;br&gt;&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6281548" width="1" height="1"&gt;</description></item></channel></rss>