<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;D0MDQ384fCp7ImA9WhRbFks.&quot;"><id>tag:blogger.com,1999:blog-11195359</id><updated>2012-02-08T14:44:32.134+13:00</updated><category term="Claims" /><category term="CXF" /><category term="Unix" /><category term="Windows XP" /><category term="Vista" /><category term="Visual Studio" /><category term="Team Test" /><category term="IIS 7" /><category term="Metro" /><category term="WIF" /><category term="SQL" /><category term="Powershell" /><category term="C" /><category term="SQL Server" /><category term="Selenium" /><category term="Misc" /><category term="SOAPUI" /><category term="Stackoverflow" /><category term="Rhino Mocks" /><category term="Windows" /><category term="Security" /><category term="TechNet Wiki" /><category term="IDE" /><category term="Mercurial" /><category term="ASP.NET" /><category term="HTTP" /><category term="Selenium IDE" /><category term="EJB" /><category term="Blackberry" /><category term="openSTA" /><category term="MSIL" /><category term="JAX-WS" /><category term="OpenNETCF" /><category term="Powerpoint" /><category term="LINQ" /><category term="JMeter" /><category term="JBoss" /><category term="jQuery" /><category term="SQL CE" /><category term="Musings" /><category term="Subversion" /><category term="Selenium RC" /><category term="Version Control" /><category term="ASP" /><category term="XML" /><category term="Web services" /><category term="ADFS" /><category term="SharePoint 2010" /><category term="Kerberos" /><category term="Blogger" /><category term="Java" /><category term="IIS" /><category term="Cobol" /><category term="Google" /><category term="C#" /><category term="SOAP" /><category term="Netbeans" /><category term="Tomcat" /><category term="WCF" /><category term="ACS" /><category term="Eclipse" /><category term="Weblogic" /><category term="Intellisense" /><category term="IE" /><category term="Compact Framework" /><category term="Internet Explorer" /><category term="Serverfault" /><category term="Glassfish" /><category term="Log4J" /><category term="XSS" /><category term="TechNet" /><category term="AD" /><category term=".NET" /><category term="Excel" /><category term="DOS" /><title>Random thoughts and collisions</title><subtitle type="html">Ideas and thoughts about mobile development and (of course) cabbages and kings ... and some other bits and pieces ...</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://nzpcmad.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>292</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/RandomThoughtsAndCollisions" /><feedburner:info uri="randomthoughtsandcollisions" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;D0MDQ38-fip7ImA9WhRbFks.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-8740387930496592386</id><published>2012-02-08T14:44:00.000+13:00</published><updated>2012-02-08T14:44:32.156+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-08T14:44:32.156+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio" /><title>Visual Studio : Showing the active file in the Solution Explorer tree</title><content type="html">So there I was doing some consultancy work on site and I noticed that when you click through the open files in the file bar on the top, their Visual Studio tracks the active file in the tree.&lt;br /&gt;
&lt;br /&gt;
Something I've always thought would be really useful.&lt;br /&gt;
&lt;br /&gt;
Turns out the way to do this is via:&lt;br /&gt;
&lt;br /&gt;
Tools / Options / Projects and Solutions / General / Click "Track Active Item in Solution Explorer".&lt;br /&gt;
&lt;br /&gt;
WTF isn't this the default?&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-8740387930496592386?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/85AXk-LvDmQefmUg8HzL-4qVPx8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85AXk-LvDmQefmUg8HzL-4qVPx8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/85AXk-LvDmQefmUg8HzL-4qVPx8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85AXk-LvDmQefmUg8HzL-4qVPx8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/tFYr5vhGPWM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/8740387930496592386/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=8740387930496592386" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8740387930496592386?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8740387930496592386?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/tFYr5vhGPWM/visual-studio-showing-active-file-in.html" title="Visual Studio : Showing the active file in the Solution Explorer tree" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2012/02/visual-studio-showing-active-file-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0EGRnw8eCp7ImA9WhRbFkk.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-3592782639898775108</id><published>2012-02-08T09:10:00.000+13:00</published><updated>2012-02-08T09:13:47.270+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-02-08T09:13:47.270+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stackoverflow" /><title>Stackoverflow : The big 100 badges</title><content type="html">Another of my goals - getting 100 badges on stackoverflow.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-9IGMs4N8Pgc/TzGFul0cbEI/AAAAAAAAAps/CnHc9MGnUDM/s1600/ScreenShot024.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235" sda="true" src="http://3.bp.blogspot.com/-9IGMs4N8Pgc/TzGFul0cbEI/AAAAAAAAAps/CnHc9MGnUDM/s640/ScreenShot024.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-3592782639898775108?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oc8FluGj_G3z8ZI74EEAgtDEw4g/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oc8FluGj_G3z8ZI74EEAgtDEw4g/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oc8FluGj_G3z8ZI74EEAgtDEw4g/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oc8FluGj_G3z8ZI74EEAgtDEw4g/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/YRQzey40LJk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/3592782639898775108/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=3592782639898775108" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3592782639898775108?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3592782639898775108?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/YRQzey40LJk/stackoverflow-big-100-badges.html" title="Stackoverflow : The big 100 badges" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-9IGMs4N8Pgc/TzGFul0cbEI/AAAAAAAAAps/CnHc9MGnUDM/s72-c/ScreenShot024.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2012/02/stackoverflow-big-100-badges.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcBQX44eyp7ImA9WhRUFUw.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-6434509029362068510</id><published>2012-01-26T07:43:00.000+13:00</published><updated>2012-01-26T07:44:10.033+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-26T07:44:10.033+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>c# : Nullable DateTime</title><content type="html">&lt;br /&gt;
So there I was trying to convert a nullable date time "DateTime?" to DateTime.&lt;br /&gt;
&lt;br /&gt;
Then I got the error:&lt;br /&gt;
&lt;br /&gt;
"Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime'. An explicit conversion exists (are you missing a cast?)"&lt;br /&gt;
&lt;br /&gt;
stackoverflow to the rescue and you need to use the &lt;a href="http://msdn.microsoft.com/en-us/library/ms173224.aspx"&gt;null-coalescing operator.&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
So the code ended up like:&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
DateTime x = DateTime y ?? DateTime.Now; &lt;/blockquote&gt;
Love those "??".&lt;br /&gt;
&lt;br /&gt;
Aside: When I tried to find the article again for this blog, found that searching Google for "??" is an interesting exercise. &lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-6434509029362068510?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tqhgQXzmvhHQMk3incwvGN1v-Ig/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tqhgQXzmvhHQMk3incwvGN1v-Ig/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tqhgQXzmvhHQMk3incwvGN1v-Ig/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tqhgQXzmvhHQMk3incwvGN1v-Ig/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/gc5WC8VgdTo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/6434509029362068510/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=6434509029362068510" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6434509029362068510?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6434509029362068510?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/gc5WC8VgdTo/c-nullable-datetime.html" title="c# : Nullable DateTime" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2012/01/c-nullable-datetime.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEMHRnc-cCp7ImA9WhRUFUw.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-1350466038896521344</id><published>2011-12-22T06:42:00.001+13:00</published><updated>2012-01-26T07:33:57.958+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2012-01-26T07:33:57.958+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>C# : Counting "rows" in an XML structutre</title><content type="html">Working on a system that returns an XML structure as a string.&lt;br /&gt;
&lt;br /&gt;
The structure looks like:&lt;br /&gt;
&lt;br /&gt;
Table&lt;br /&gt;
Row&lt;br /&gt;
Info1/&lt;br /&gt;
Info2/&lt;br /&gt;
...&lt;br /&gt;
/Row&lt;br /&gt;
/Table&lt;br /&gt;
&lt;br /&gt;
I needed to find out how many rows there were.&lt;br /&gt;
&lt;br /&gt;
Mr. Google to the rescue and the solution is:&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
XmlDocument readTable = new XmlDocument();&lt;br /&gt;
&lt;br /&gt;
readTable.LoadXml(stringXml);&lt;br /&gt;
int rowCount = readTable.SelectNodes("Table/Row").Count; &lt;/blockquote&gt;
Refer &lt;a href="http://msdn.microsoft.com/en-us/library/ms256086.aspx"&gt;XPath Examples&lt;/a&gt;&amp;nbsp;for the syntax of more kinds of searches you can do.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-1350466038896521344?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Z_-3mDgm1qAxKj36bQgdEzOLLek/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z_-3mDgm1qAxKj36bQgdEzOLLek/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Z_-3mDgm1qAxKj36bQgdEzOLLek/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Z_-3mDgm1qAxKj36bQgdEzOLLek/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/PRaQKpbnd0w" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/1350466038896521344/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=1350466038896521344" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/1350466038896521344?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/1350466038896521344?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/PRaQKpbnd0w/c-counrting-rows-in-xml-structutre.html" title="C# : Counting &quot;rows&quot; in an XML structutre" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/12/c-counrting-rows-in-xml-structutre.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEIERn8zcSp7ImA9WhRRF0o.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-6574898673479120759</id><published>2011-12-02T10:55:00.001+13:00</published><updated>2011-12-02T10:55:07.189+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-02T10:55:07.189+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="ASP" /><title>ASP : The Web Form equivalent of MessageBox</title><content type="html">&lt;p&gt;When you are writing a Windows application, the ubiquitous MessageBox is extremely useful for popping up a quick debug message but it’s not available for ASP.NET Web Forms.&lt;/p&gt;  &lt;p&gt;In such cases, use:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;Response.Write(&lt;span class="str"&gt;&amp;quot;&amp;lt;script language='javascript'&amp;gt;alert('Your message');&amp;lt;/script&amp;gt;&amp;quot;&lt;/span&gt;);&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-6574898673479120759?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/jkdti-tElG8BpMivjaUvzAc8WfM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jkdti-tElG8BpMivjaUvzAc8WfM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/jkdti-tElG8BpMivjaUvzAc8WfM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/jkdti-tElG8BpMivjaUvzAc8WfM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/qCl7At88Zdc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/6574898673479120759/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=6574898673479120759" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6574898673479120759?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6574898673479120759?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/qCl7At88Zdc/asp-web-form-equivalent-of-messagebox.html" title="ASP : The Web Form equivalent of MessageBox" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/12/asp-web-form-equivalent-of-messagebox.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0cGQ3kycCp7ImA9WhRRFUQ.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-7099102273709507124</id><published>2011-11-30T09:28:00.001+13:00</published><updated>2011-11-30T09:37:02.798+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-30T09:37:02.798+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>ADFS : Display exceptions</title><content type="html">There's a neat feature in ADFS in the web.config that displays exceptions on the error page which I find a &lt;strong&gt;MAJOR&lt;/strong&gt; help when I'm configuring stuff.&lt;br /&gt;
&lt;br /&gt;
Uncomment&amp;nbsp;this piece:&lt;br /&gt;
&lt;br /&gt;
!-- Display the exception message on the error page. Uncomment this, or add the key below to your&lt;br /&gt;
app settings if you want to see the exception message. The exception messages are localized in the &lt;br /&gt;
language of the server.--&lt;br /&gt;
&lt;br /&gt;
add key="displayExceptions" &lt;br /&gt;
&lt;br /&gt;
The web.config you need is here:&lt;br /&gt;
&lt;br /&gt;
C:\inetpub\adfs\ls&lt;br /&gt;
&lt;br /&gt;
So I changed the code in FormsSignIn to use an exception called exp instead of ex resulting in the error below.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/-BUTi95gHFCc/TtVBmVt2JsI/AAAAAAAAApc/jWjHLoxMHxI/s1600/ScreenShot039.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" dda="true" height="184" src="http://3.bp.blogspot.com/-BUTi95gHFCc/TtVBmVt2JsI/AAAAAAAAApc/jWjHLoxMHxI/s640/ScreenShot039.bmp" width="640" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-7099102273709507124?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/z3iR0MhkVlgcYJaxRewzGTLRUyA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z3iR0MhkVlgcYJaxRewzGTLRUyA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/z3iR0MhkVlgcYJaxRewzGTLRUyA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/z3iR0MhkVlgcYJaxRewzGTLRUyA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/21kcEYZcbfc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/7099102273709507124/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=7099102273709507124" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7099102273709507124?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7099102273709507124?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/21kcEYZcbfc/adfs-display-exceptions.html" title="ADFS : Display exceptions" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-BUTi95gHFCc/TtVBmVt2JsI/AAAAAAAAApc/jWjHLoxMHxI/s72-c/ScreenShot039.bmp" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/adfs-display-exceptions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UGRng7eCp7ImA9WhRREEQ.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-8540726977218158354</id><published>2011-11-24T14:43:00.001+13:00</published><updated>2011-11-24T14:47:07.600+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-24T14:47:07.600+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>ADFS : The "All Time" double!</title><content type="html">Over on stackoverflow:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-QqU1Eny2-QU/Ts2hX6fUJHI/AAAAAAAAApM/Pfhw57jMr_k/s1600/ScreenShot021.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" hda="true" height="244" src="http://2.bp.blogspot.com/-QqU1Eny2-QU/Ts2hX6fUJHI/AAAAAAAAApM/Pfhw57jMr_k/s320/ScreenShot021.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://2.bp.blogspot.com/-amUDj-9OW4c/Ts2hjzhXCMI/AAAAAAAAApU/JtB8A4e1wOU/s1600/ScreenShot022.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" hda="true" height="107" src="http://2.bp.blogspot.com/-amUDj-9OW4c/Ts2hjzhXCMI/AAAAAAAAApU/JtB8A4e1wOU/s320/ScreenShot022.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
And now the pressure is&amp;nbsp;really on ...&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-8540726977218158354?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/1C47zv5MaZeoKU9hSps2_Y4fv0A/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1C47zv5MaZeoKU9hSps2_Y4fv0A/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/1C47zv5MaZeoKU9hSps2_Y4fv0A/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/1C47zv5MaZeoKU9hSps2_Y4fv0A/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/8-axkcmC-YU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/8540726977218158354/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=8540726977218158354" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8540726977218158354?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8540726977218158354?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/8-axkcmC-YU/adfs-all-time-double.html" title="ADFS : The &quot;All Time&quot; double!" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-QqU1Eny2-QU/Ts2hX6fUJHI/AAAAAAAAApM/Pfhw57jMr_k/s72-c/ScreenShot021.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/adfs-all-time-double.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkcARnw9eCp7ImA9WhRREEo.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-7396646918425688070</id><published>2011-11-24T08:45:00.001+13:00</published><updated>2011-11-24T08:54:07.260+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-24T08:54:07.260+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><category scheme="http://www.blogger.com/atom/ns#" term="Visual Studio" /><title>Visual Studio : Web deploy - Files\IIS\Microsoft was unexpected at this time</title><content type="html">Built a project using the standard VS 2010 SP1 - Right click on the project - Build Deployment Package.&lt;br /&gt;
&lt;br /&gt;
Then tried to deploy it via:&lt;br /&gt;
&lt;br /&gt;
xxx.deploy.cmd /T&lt;br /&gt;
&lt;br /&gt;
The /T does a whatif - always a good idea to check first!&lt;br /&gt;
&lt;br /&gt;
Then run the following when you are happy:&lt;br /&gt;
&lt;br /&gt;
xxx.deploy.cmd /Y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Got the error - "Files\IIS\Microsoft was unexpected at this time". WTF?&lt;br /&gt;
&lt;br /&gt;
First off when you set the environment variable as per the txt file:&lt;br /&gt;
&lt;br /&gt;
set MSDeployPath="C:\Program Files\IIS\Microsoft Web Deploy V2\"&lt;br /&gt;
&lt;br /&gt;
Do &lt;strong&gt;NOT&lt;/strong&gt; put the quotes in&amp;nbsp;and remove the end \ i.e.&lt;br /&gt;
&lt;br /&gt;
set MSDeployPath=C:\Program Files\IIS\Microsoft Web Deploy V2&lt;br /&gt;
&lt;br /&gt;
What the script does is search for this variable and if it's missing, it tries to find the path in the registry via this code:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
if "%MSDeployPath%" == "" (&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for /F "usebackq tokens=1,2,*" %%h in (`reg query "HKLM\SOFTWARE\Microsoft\IIS Extensions\MSDeploy" /s ^&lt;br /&gt;
findstr -i "InstallPath"`) do (&lt;br /&gt;
&lt;br /&gt;
if /I "%%h" == "InstallPath" ( &lt;br /&gt;
&lt;br /&gt;
if /I "%%i" == "REG_SZ" ( &lt;br /&gt;
&lt;br /&gt;
if not "%%j" == "" ( &lt;br /&gt;
&lt;br /&gt;
if "%%~dpj" == "%%j" ( &lt;br /&gt;
&lt;br /&gt;
set MSDeployPath=%%j&lt;br /&gt;
&lt;br /&gt;
))))))&lt;/blockquote&gt;
&lt;br /&gt;
I have Web Deploy V2 deployed and I don't have such a registry entry? It's this piece of script that produces the error. Just comment it out and all will be sweetness and light.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-7396646918425688070?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NA-g7-m7dg5ZE8uXps1tvZE_2S8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NA-g7-m7dg5ZE8uXps1tvZE_2S8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NA-g7-m7dg5ZE8uXps1tvZE_2S8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NA-g7-m7dg5ZE8uXps1tvZE_2S8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/K468StDsYqI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/7396646918425688070/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=7396646918425688070" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7396646918425688070?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7396646918425688070?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/K468StDsYqI/visual-studio-web-deploy.html" title="Visual Studio : Web deploy - Files\IIS\Microsoft was unexpected at this time" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/visual-studio-web-deploy.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUGRXo_eSp7ImA9WhRSGU8.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-7668024732545911499</id><published>2011-11-22T13:46:00.001+13:00</published><updated>2011-11-22T13:53:44.441+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-22T13:53:44.441+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WIF" /><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>WIF : The FederatedPassiveSignInStatus Control</title><content type="html">Doing some WIF development and wanted to sign out the user completely. So I dragged the control from the Toolbox on VS 2010 and then tested it.&lt;br /&gt;
&lt;br /&gt;
WTF - it doesn't do anything. &lt;br /&gt;
&lt;br /&gt;
I set the SignOut action to FederatedPassiveSignOut and had an url for the SignOutPageUrl.&lt;br /&gt;
&lt;br /&gt;
Then I noticed that I'd actually added the control to the Site.Master page so that it would appear on every page on the site. Hmm - but that's not actually a page.&lt;br /&gt;
&lt;br /&gt;
So I removed it and added it to my Home page. Works like a dream.&lt;br /&gt;
&lt;br /&gt;
This may help someone else in the same predicament. &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://msdn.microsoft.com/en-us/magazine/ff872350.aspx"&gt;Passive Authentication for ASP.NET with WIF&lt;/a&gt;&amp;nbsp;has a good description of SingleSignOut.&lt;br /&gt;
&lt;br /&gt;
Makes the point:&lt;br /&gt;
&lt;br /&gt;
"In more complex scenarios, the same clean-up request should be sent to any other STS involved in the federated session. To that end, the STS would have to have prior knowledge of the clean-up URI for each RP and STS. To support single sign-out, your RPs should be able to process these clean-up requests. Both the FAM and the FederatedPassiveSignInStatus control support this. If you’re using the FAM, the clean-up request can be posted to any URI at the RP and the FAM will process the request and clean up any session cookies. If you’re using the FederatedPassiveSignInStatus control, &lt;strong&gt;the clean-up request must be posted to a page that contains the control&lt;/strong&gt;."&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-7668024732545911499?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sQEfDEPFTpZNl6e_NsfYzN8Lj08/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sQEfDEPFTpZNl6e_NsfYzN8Lj08/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sQEfDEPFTpZNl6e_NsfYzN8Lj08/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sQEfDEPFTpZNl6e_NsfYzN8Lj08/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/rso-JsilKSE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/7668024732545911499/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=7668024732545911499" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7668024732545911499?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7668024732545911499?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/rso-JsilKSE/wif-federatedpassivesigninstatus.html" title="WIF : The FederatedPassiveSignInStatus Control" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/wif-federatedpassivesigninstatus.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UGSXY6fSp7ImA9WhRRFUQ.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-3469201839291317023</id><published>2011-11-22T13:37:00.001+13:00</published><updated>2011-11-30T09:40:28.815+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-30T09:40:28.815+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>ADFS : Choosing the certificate name</title><content type="html">ADFS uses three certificates:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Service communications for encrypting the message&lt;/li&gt;
&lt;li&gt;Token-decrypting for "encrypting" the token&lt;/li&gt;
&lt;li&gt;Token-signing for signing&amp;nbsp; the token&lt;/li&gt;
&lt;/ul&gt;
The service communications certificate is essentially the SSL certificate that you have configured for the SSL session on the IIS that hosts ADFS. (Yes -&amp;nbsp;folks - it is basically an IIS site - look for it under \inetpub\adfs\ls).&lt;br /&gt;
&lt;br /&gt;
When you configure the certificate for SSL, you need to give it the full name of the site e.g. "contuso.co.uk". Don't just give it the name "contuso". If you do, ADFS will reject it when you install ADFS and will ask for a certificate that has "dots" in it.&lt;br /&gt;
&lt;br /&gt;
Actually, the real error is "ADFS requires full name for certificate".&lt;br /&gt;
&lt;br /&gt;
Just saying.&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-3469201839291317023?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/I3JMQA2RE5DNe0ADzUAxqSFZmwg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I3JMQA2RE5DNe0ADzUAxqSFZmwg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/I3JMQA2RE5DNe0ADzUAxqSFZmwg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/I3JMQA2RE5DNe0ADzUAxqSFZmwg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/mlby2GKpYl4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/3469201839291317023/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=3469201839291317023" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3469201839291317023?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3469201839291317023?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/mlby2GKpYl4/adfs-choosing-certificate-name.html" title="ADFS : Choosing the certificate name" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/adfs-choosing-certificate-name.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUQAQH87fCp7ImA9WhRSFEU.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-6514926986831348811</id><published>2011-11-17T12:39:00.001+13:00</published><updated>2011-11-17T12:49:01.104+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-17T12:49:01.104+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stackoverflow" /><title>Stackoverflow : Top of the tag heap</title><content type="html">One of my goals was to get to the top of the "Top Answerers" for a Tag category in stackoverflow and I finally &lt;span style="font-family: inherit;"&gt;managed&lt;/span&gt; to achieve that ...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-pNLaedUtbf0/TsRJ3xmujEI/AAAAAAAAApE/OHqfFwx6ybY/s1600/ScreenShot018.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" hda="true" height="223" src="http://1.bp.blogspot.com/-pNLaedUtbf0/TsRJ3xmujEI/AAAAAAAAApE/OHqfFwx6ybY/s320/ScreenShot018.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Problem is: It's more more difficult to stay at the top than get there!&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-6514926986831348811?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nwQamH6YOZrBXlo9lQXXdciyDEo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nwQamH6YOZrBXlo9lQXXdciyDEo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nwQamH6YOZrBXlo9lQXXdciyDEo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nwQamH6YOZrBXlo9lQXXdciyDEo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/wnNCWRfmAvA" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/6514926986831348811/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=6514926986831348811" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6514926986831348811?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6514926986831348811?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/wnNCWRfmAvA/stackoverflow-top-of-tag-heap.html" title="Stackoverflow : Top of the tag heap" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-pNLaedUtbf0/TsRJ3xmujEI/AAAAAAAAApE/OHqfFwx6ybY/s72-c/ScreenShot018.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/stackoverflow-top-of-tag-heap.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEMQnY9cCp7ImA9WhRRF0o.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-7511192233570126692</id><published>2011-11-11T08:34:00.001+13:00</published><updated>2011-12-02T10:58:03.868+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-12-02T10:58:03.868+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="C#" /><title>C# : Parsing dates</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Dates are a PIA – no matter what language.&lt;/p&gt;  &lt;p&gt;Found a neat way to do the validation e.g. the d/m/yyyy vs. d/mm/yyyy vs. dd/mm/yyyy etc.&lt;/p&gt;  &lt;div class="csharpcode"&gt;   &lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;bool&lt;/span&gt; validDate = DateTime.TryParseExact(txtDate.Text, &lt;br /&gt;    &lt;span class="kwrd"&gt;new&lt;/span&gt;[] { &lt;span class="str"&gt;&amp;quot;dd/MM/yyyy&amp;quot;&lt;/span&gt;, &lt;span class="str"&gt;&amp;quot;d/MM/yyyy&amp;quot;&lt;/span&gt;},  &lt;br /&gt;    CultureInfo.InvariantCulture, DateTimeStyles.None, &lt;span class="kwrd"&gt;out&lt;/span&gt; d);  &lt;br /&gt;&lt;br /&gt; &lt;span class="kwrd"&gt;if&lt;/span&gt; (!validDate)  &lt;br /&gt; {&lt;br /&gt;      Error stuff&lt;br /&gt; }&lt;br /&gt; &lt;span class="kwrd"&gt;else&lt;/span&gt;&lt;br /&gt;      Valid stuff&lt;/pre&gt;&lt;br /&gt;  &lt;style type="text/css"&gt;&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }&lt;/style&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So you just add the valid patterns to the array and away you go!&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-7511192233570126692?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zcsIGF3UfGmPaLB-QieUr4hQJ5Q/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zcsIGF3UfGmPaLB-QieUr4hQJ5Q/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zcsIGF3UfGmPaLB-QieUr4hQJ5Q/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zcsIGF3UfGmPaLB-QieUr4hQJ5Q/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/GfNYfsbiiDw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/7511192233570126692/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=7511192233570126692" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7511192233570126692?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/7511192233570126692?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/GfNYfsbiiDw/c-parsing-dates.html" title="C# : Parsing dates" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/c-parsing-dates.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkADSX4yeSp7ImA9WhRTGEs.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-5211043306599796151</id><published>2011-11-10T08:59:00.001+13:00</published><updated>2011-11-10T08:59:38.091+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-10T08:59:38.091+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stackoverflow" /><title>Stackoverflow : Finally, the top 5%</title><content type="html">One of my goals has been to get my stackoverflow rep. up into the top 5%.&lt;br /&gt;
&lt;br /&gt;
And finally, I did it:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-UlXFs0LRmbE/TrracWSG0lI/AAAAAAAAAo0/_ByURBQApRc/s1600/ScreenShot016.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" ida="true" src="http://1.bp.blogspot.com/-UlXFs0LRmbE/TrracWSG0lI/AAAAAAAAAo0/_ByURBQApRc/s320/ScreenShot016.png" width="195" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
And now it gets really hard because I'm up against the big boys&lt;br /&gt;
&lt;br /&gt;
Like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://3.bp.blogspot.com/-PS74VVQ0MjA/TrrbBHr38nI/AAAAAAAAAo8/R1wdpp3qlIk/s1600/ScreenShot017.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="153" ida="true" src="http://3.bp.blogspot.com/-PS74VVQ0MjA/TrrbBHr38nI/AAAAAAAAAo8/R1wdpp3qlIk/s640/ScreenShot017.png" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Hmm , nothing like a challenge :-)&lt;br /&gt;
&lt;br /&gt;
Still, for the moment, I'll take being (almost) in the top 2,000 worldwide!&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-5211043306599796151?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/K-RWM8A1YwqbCmYvSGgwa_eF358/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K-RWM8A1YwqbCmYvSGgwa_eF358/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/K-RWM8A1YwqbCmYvSGgwa_eF358/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/K-RWM8A1YwqbCmYvSGgwa_eF358/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/JsTe8-zpSTI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/5211043306599796151/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=5211043306599796151" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/5211043306599796151?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/5211043306599796151?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/JsTe8-zpSTI/stackoverflow-finally-top-5.html" title="Stackoverflow : Finally, the top 5%" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-UlXFs0LRmbE/TrracWSG0lI/AAAAAAAAAo0/_ByURBQApRc/s72-c/ScreenShot016.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/stackoverflow-finally-top-5.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEICQX88fyp7ImA9WhRTGEs.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-1251648409030925834</id><published>2011-11-10T08:22:00.001+13:00</published><updated>2011-11-10T08:22:40.177+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-10T08:22:40.177+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>ADFS : Problem with FedUtil</title><content type="html">I posted this problem over on the &lt;a href="http://social.msdn.microsoft.com/Forums/en/Geneva/thread/90fb9431-e432-489a-9db1-db3207aae333"&gt;forum&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Essentially:&lt;br /&gt;
&lt;br /&gt;
I have an ASP.NET application that uses FBA and calls a web service that performs CRUD operations on a back-end system i.e. the ASP.NET application is the client.&lt;br /&gt;
&lt;br /&gt;
I want to claims-enable this application. I don’t want to do anything re. federation with the web service. It should just run in the background as it currently does.&lt;br /&gt;
&lt;br /&gt;
When I run FedUtil, I get the message:&lt;br /&gt;
&lt;br /&gt;
“ID1032: A wcf application federated to a security token service requires an application certificate. Please select a certificate for your application.”&lt;br /&gt;
&lt;br /&gt;
It seems that FedUtil is trying to secure the web service and not the browser application? If I supply a certificate and then look at the resulting web.config, FedUtil hasn't done any of the usual passive profile stuff e.g. commenting out the entire current authentication:&lt;br /&gt;
&lt;br /&gt;
!--Commented out by FedUtil--&lt;br /&gt;
&lt;br /&gt;
!--authentication mode="Forms" forms loginUrl="~/Account/Login.aspx" timeout="2880" / /authentication&lt;br /&gt;
&lt;br /&gt;
If I comment out the system.serviceModel section, FedUtil runs as expected. &lt;br /&gt;
&lt;br /&gt;
I then un-comment the section and have a federated browser application with a non-federated web service.&lt;br /&gt;
&lt;br /&gt;
This seems a very round-about way to achieve the objective. &lt;br /&gt;
&lt;br /&gt;
Why does FedUtil only federate the web service? &lt;br /&gt;
&lt;br /&gt;
How do you tell it to federate the browser functionality only? I would have thought that this was a common implementation?&lt;br /&gt;
&lt;br /&gt;
Is there a better way to achieve this? &lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
So what FedUtil seems to do is scan the web.config. If it finds a system.serviceModel section, it assumes this is a WCF session (i.e. active) that you want to secure and off it goes. But in fact, it's the browser session (i.e. passive)&amp;nbsp;that you want to secure.&lt;br /&gt;
&lt;br /&gt;
Anyway, the above provides a work-around but it's a PIA!&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-1251648409030925834?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/mAou4Mq0xAGfgQfCs6YriXcIDac/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mAou4Mq0xAGfgQfCs6YriXcIDac/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/mAou4Mq0xAGfgQfCs6YriXcIDac/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/mAou4Mq0xAGfgQfCs6YriXcIDac/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/AreRWwmqk1k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/1251648409030925834/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=1251648409030925834" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/1251648409030925834?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/1251648409030925834?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/AreRWwmqk1k/adfs-problem-with-fedutil.html" title="ADFS : Problem with FedUtil" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/adfs-problem-with-fedutil.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0UGQXkyfyp7ImA9WhRTEU0.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-6069512466604689873</id><published>2011-11-01T12:51:00.001+13:00</published><updated>2011-11-01T12:53:40.797+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-11-01T12:53:40.797+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term=".NET" /><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="IIS 7" /><title>IIS : Default Web Site dissapears</title><content type="html">Happily working away on my Windows 7 box with IIS 7.5, deleted an old web site and somehow (no idea !!!) my "Default Web Site" in IIS 7.5 went west - gone - nixed - went to meet its maker ...!&lt;br /&gt;
&lt;br /&gt;
WTF!&lt;br /&gt;
&lt;br /&gt;
I found this &lt;a href="http://geekswithblogs.net/lorint/archive/2005/12/09/62737.aspx"&gt;What??? You deleted "Default Web Site" from IIS?!?!&lt;/a&gt;&amp;nbsp;had some useful info.&lt;br /&gt;
&lt;br /&gt;
In particular (as per the article), to check that it really has gone:&lt;br /&gt;
&lt;br /&gt;
"First you want to really make sure that there is not a web site known as W3SVC/1. Who knows, maybe someone had simply renamed your default web site or something. Open a command prompt and type this:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
c:&lt;br /&gt;
cd\Inetpub\AdminScripts&lt;br /&gt;
&lt;br /&gt;
cscript adsutil.vbs enum w3svc/1&lt;/blockquote&gt;
&lt;br /&gt;
If it comes up with "The path requested could not be found" then sure enough, you don't have a true default website anymore. If no error then check out the "ServerComment" to know which web the machine now thinks is the default."&lt;br /&gt;
&lt;br /&gt;
OK - so its really gone. You can follow the rest of the article or simply recreate another one.&lt;br /&gt;
&lt;br /&gt;
I decided to re-install IIS - who knows what else was screwed up?&lt;br /&gt;
&lt;br /&gt;
Control Panel&amp;nbsp;/ Programs / Turn Windows features on or off.&lt;br /&gt;
&lt;br /&gt;
Uncheck all the IIS stuff. Then OK - it's all removed.&lt;br /&gt;
&lt;br /&gt;
Then check it all back again - OK - IIS will come back and you may or may not have a "Default Web Site".&lt;br /&gt;
&lt;br /&gt;
If you don't, just add one - there's nothing special about it - it's just another web site.&lt;br /&gt;
&lt;br /&gt;
Start / Administrative Tools / IIS Manager&lt;br /&gt;
&lt;br /&gt;
Right click Sites / Add Web Site&lt;br /&gt;
&lt;br /&gt;
Call it "Default Web Site". Point to:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class="tr_bq"&gt;
C:\inetpub\wwwroot&lt;/blockquote&gt;
You should now have it back - along with others that may have been in that directory.&lt;br /&gt;
&lt;br /&gt;
Click "Default Web Site" / "Advanced settings". Check that the ID is 1. You are good to go!&lt;br /&gt;
&lt;br /&gt;
If you use ASP.NET and .NET Framework 4 - beware!&lt;br /&gt;
&lt;br /&gt;
Look here: &lt;a href="http://nzpcmad.blogspot.com/2011/10/aspnet-handler-pagehandlerfactory.html"&gt;ASP.NET : Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-6069512466604689873?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/85fegLOQd2UOzqQQHpcbprMcLCc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85fegLOQd2UOzqQQHpcbprMcLCc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/85fegLOQd2UOzqQQHpcbprMcLCc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/85fegLOQd2UOzqQQHpcbprMcLCc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/MTPh4Oun67Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/6069512466604689873/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=6069512466604689873" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6069512466604689873?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6069512466604689873?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/MTPh4Oun67Y/iis-default-web-site-dissapears.html" title="IIS : Default Web Site dissapears" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/11/iis-default-web-site-dissapears.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0QCRXgzeCp7ImA9WhdaEEs.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-8330921058662891801</id><published>2011-10-20T13:09:00.000+13:00</published><updated>2011-10-20T13:09:24.680+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-20T13:09:24.680+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Blogger" /><title>Blogger : Formating a code snippet.</title><content type="html">There's many suggestions for this.&lt;br /&gt;
&lt;br /&gt;
Refer my question on &lt;a href="http://stackoverflow.com/questions/679189/formatting-code-snippets-for-blogging-on-blogger"&gt;stackoverflow&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
However, the TechNet wiki recommends &lt;a href="http://tohtml.com/auto/"&gt;tohtml&lt;/a&gt;. Just paste in your code snippet, select the language, click the button, copy the resulting html and paste back into whatever.&lt;br /&gt;
&lt;br /&gt;
I use the white style.&lt;br /&gt;
&lt;br /&gt;
Neat!&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-8330921058662891801?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/bsGu3tFjmHVGB_AorowhvhDbRgE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bsGu3tFjmHVGB_AorowhvhDbRgE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/bsGu3tFjmHVGB_AorowhvhDbRgE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/bsGu3tFjmHVGB_AorowhvhDbRgE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/x8b9RX5Lloo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/8330921058662891801/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=8330921058662891801" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8330921058662891801?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8330921058662891801?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/x8b9RX5Lloo/blogger-formating-code-snippet.html" title="Blogger : Formating a code snippet." /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/10/blogger-formating-code-snippet.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D04MQX4_eip7ImA9WhdbEUQ.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-574793434528434416</id><published>2011-10-10T10:32:00.001+13:00</published><updated>2011-10-10T10:33:00.042+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-10T10:33:00.042+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="TechNet Wiki" /><title>TechNet : 15 minutes of fame</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Over on the TechNet Wiki, I contributed an article on a &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/kerberos-survival-guide.aspx"&gt;Kerberos Survival Guide.&lt;/a&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Just been notified that:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;The article &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/kerberos-survival-guide.aspx"&gt;Kerberos Survival Guide&lt;/a&gt; on the TechNet Wiki has achieved its 15 minutes of fame. Congratulations! &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To clarify: &lt;/p&gt;  &lt;p&gt;As you can see here: &lt;a href="http://msdn.microsoft.com/en-us/ff395928#How_do_I_earn_points"&gt;How do I earn points?&lt;/a&gt;,&amp;#160; the points you get range between 5 and 2,500 points when your article gets from 500 to 1 million page views. &amp;quot;15 minutes of fame&amp;quot; is the first milestone. &lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-574793434528434416?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6VWgDG71mJCfe7c-b7Hl0yxbL90/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6VWgDG71mJCfe7c-b7Hl0yxbL90/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6VWgDG71mJCfe7c-b7Hl0yxbL90/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6VWgDG71mJCfe7c-b7Hl0yxbL90/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/8Xk9qbBZRAk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/574793434528434416/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=574793434528434416" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/574793434528434416?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/574793434528434416?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/8Xk9qbBZRAk/technet-15-minutes-of-fame.html" title="TechNet : 15 minutes of fame" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/10/technet-15-minutes-of-fame.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Ck8MQnY5eip7ImA9WhdUFk0.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-5022184610847788738</id><published>2011-10-03T13:13:00.001+13:00</published><updated>2011-10-03T13:14:43.822+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-10-03T13:14:43.822+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ASP.NET" /><category scheme="http://www.blogger.com/atom/ns#" term="IIS 7" /><title>ASP.NET : Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;I do a lot of work developing applications on my Windows 7 32 bit machine using IIS 7.5 and then migrating them to IIS 7.5 on my Windows Server 2008 R2 64 bit box. Not as simple as it sounds.&lt;/p&gt;  &lt;p&gt;Using VS 2010, my DefaultAppPool on Windows 7 uses the .NET 4.0 framework whereas it’s 2.0 on Windows 2008. So you need to make a new application pool and set it to “Integrated” and the 4.0 framework.&lt;/p&gt;  &lt;p&gt;OK – then I get the above error. The blurb below on the error page says that the most likely cause is that:&lt;/p&gt;  &lt;p&gt;“Managed handler is used; however, ASP.NET is not installed or is not installed completely.”&lt;/p&gt;  &lt;p&gt;Check my installed features in IIS 7.5 and Yup – ASP.NET is installed, it has a handler etc. So WTF?&lt;/p&gt;  &lt;p&gt;Mr. Google to the rescue.&lt;/p&gt;  &lt;p&gt;Run a command prompt in administrative mode.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;C:\Windows\Microsoft.NET\Framework\v4.0.30319&amp;gt;aspnet_regiis.exe -i     &lt;br /&gt;Start installing ASP.NET (4.0.30319).      &lt;br /&gt;..................      &lt;br /&gt;Finished installing ASP.NET (4.0.30319).&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Note: Your version of the framework may be different!&lt;/p&gt;  &lt;p&gt;Notice that it installs ASP.NET even though it is already supposed to be there but it fixes the problem and all is well!&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-5022184610847788738?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3pzPJgHIEHxC4aoV1QLBIjGfazc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3pzPJgHIEHxC4aoV1QLBIjGfazc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3pzPJgHIEHxC4aoV1QLBIjGfazc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3pzPJgHIEHxC4aoV1QLBIjGfazc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/8avvI4-VQXM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/5022184610847788738/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=5022184610847788738" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/5022184610847788738?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/5022184610847788738?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/8avvI4-VQXM/aspnet-handler-pagehandlerfactory.html" title="ASP.NET : Handler “PageHandlerFactory-Integrated” has a bad module “ManagedPipelineHandler” in its module list" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/10/aspnet-handler-pagehandlerfactory.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcCQ3c9fSp7ImA9WhdUEEU.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-8392117071042864181</id><published>2011-09-27T13:21:00.001+13:00</published><updated>2011-09-27T13:24:22.965+13:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-27T13:24:22.965+13:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="WCF" /><title>WCF : WCF Test Client “The contract ‘IMetadataExchange’ in client configuration does not match the name in service contract”</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Playing around with WCF web services in VS 2010 and .NET Framework 4.&lt;/p&gt;  &lt;p&gt;When I run the WCF Test Client across the web service I get the above error. The service still works but there’s an error symbol (a ! in a red circle on the LHS).&lt;/p&gt;  &lt;p&gt;Mr. Google to the rescue and you need to change the framework config file here:&lt;/p&gt;  &lt;p&gt;C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config&lt;/p&gt;  &lt;p&gt;Comment out the “endpoint” section i.e.&lt;/p&gt;  &lt;p&gt;&amp;lt;client&amp;gt;   &lt;br /&gt;&amp;#160; &amp;lt;!-- &amp;lt;endpoint address=&amp;quot;&amp;quot; binding=&amp;quot;netTcpRelayBinding&amp;quot; contract=&amp;quot;IMetadataExchange&amp;quot; name=&amp;quot;sb&amp;quot; /&amp;gt; --&amp;gt;    &lt;br /&gt;&amp;lt;metadata&amp;gt;&lt;/p&gt;  &lt;p&gt;Problem solved. &lt;/p&gt;  &lt;p&gt;Even though it still works, I hate these niggly errors in case I’ve screwed up &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh4.ggpht.com/-DzJcgDyv95o/ToEXJA5-E7I/AAAAAAAAAow/G9rX7wmOd5I/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" /&gt;&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-8392117071042864181?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nA2P2SsS1ZYVePe3Hlwb4ns8Z8M/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nA2P2SsS1ZYVePe3Hlwb4ns8Z8M/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nA2P2SsS1ZYVePe3Hlwb4ns8Z8M/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nA2P2SsS1ZYVePe3Hlwb4ns8Z8M/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/OW2otmZkeCI" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/8392117071042864181/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=8392117071042864181" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8392117071042864181?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8392117071042864181?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/OW2otmZkeCI/wcf-wcf-test-client-contract.html" title="WCF : WCF Test Client “The contract ‘IMetadataExchange’ in client configuration does not match the name in service contract”" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh4.ggpht.com/-DzJcgDyv95o/ToEXJA5-E7I/AAAAAAAAAow/G9rX7wmOd5I/s72-c/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/wcf-wcf-test-client-contract.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEcCRHoyeCp7ImA9WhdVFk4.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-3802360820508729136</id><published>2011-09-22T08:14:00.000+12:00</published><updated>2011-09-22T08:14:25.490+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-22T08:14:25.490+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>ADFS : Google top 5 hits</title><content type="html">I was looking at my blog stats and noticed that my article on "Re-installing ADFS&amp;nbsp;v2.0" was among my top 5 articles.&lt;br /&gt;
&lt;br /&gt;
So I Googled ""Re-installing ADFS&amp;nbsp;v2.0" and found that the top 5 search entries in Google all point to my blog!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://4.bp.blogspot.com/-9oXRRsf9N-o/TnpEluGYosI/AAAAAAAAAos/3r1lJ-bSzZM/s1600/ScreenShot015.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" hca="true" src="http://4.bp.blogspot.com/-9oXRRsf9N-o/TnpEluGYosI/AAAAAAAAAos/3r1lJ-bSzZM/s1600/ScreenShot015.png" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Note that the last one is actually from an aggregate site that points to the same blog entry.&lt;br /&gt;
&lt;br /&gt;
Looking at the stats for this article. I noticed that the biggest source of queries was from the Geneva forum, the next was from stackoverflow and Mr. Google only came in third.&lt;br /&gt;
&lt;br /&gt;
The message is clear - if you want to bump up your search results, write good, solid, factually correct articles and link to them. :-)&lt;br /&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-3802360820508729136?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/UNWe8P36dx4GldF0cdDN-1hjcbQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UNWe8P36dx4GldF0cdDN-1hjcbQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/UNWe8P36dx4GldF0cdDN-1hjcbQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/UNWe8P36dx4GldF0cdDN-1hjcbQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/VdeJVMgpaNo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/3802360820508729136/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=3802360820508729136" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3802360820508729136?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3802360820508729136?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/VdeJVMgpaNo/adfs-google-top-5-hits.html" title="ADFS : Google top 5 hits" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-9oXRRsf9N-o/TnpEluGYosI/AAAAAAAAAos/3r1lJ-bSzZM/s72-c/ScreenShot015.png" height="72" width="72" /><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/adfs-google-top-5-hits.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8GSHs4eSp7ImA9WhdVFEs.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-2933524511430657311</id><published>2011-09-20T08:37:00.001+12:00</published><updated>2011-09-20T08:40:29.531+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-20T08:40:29.531+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ASP" /><title>ASP : Displaying server variables</title><content type="html">&lt;br /&gt;
Sometimes you need to know who you are logged in as. &lt;br /&gt;
&lt;br /&gt;
In the claims world, it’s easy because you have the IPrincipal and IIdentity objects but if these are not available, you need to go back to first principles.&lt;br /&gt;
&lt;br /&gt;
Enter stage left the server variables. These are accessed from the Request object. A simple way to enumerate then all is via the html segment below which you just whack into an asp page.&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="csharpcode"&gt;&amp;lt;html&amp;gt;
    &amp;lt;body&amp;gt;
    
        &amp;lt;h1&amp;gt;ASP Request Variables Page&amp;lt;/h1&amp;gt;

        &amp;lt;h2&amp;gt;
            The current user you are logged &lt;span class="kwrd"&gt;in&lt;/span&gt; &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;is&lt;/span&gt;: 
            &amp;lt;u&amp;gt;
                &amp;lt;!-- &amp;lt;%=Request.ServerVariables(&lt;span class="str"&gt;"AUTH_USER"&lt;/span&gt; &amp;amp; &lt;span class="str"&gt;"&amp;lt;br /&amp;gt;"&lt;/span&gt;) %&amp;gt; --&amp;gt;
                
                &amp;lt;%= response.write(&lt;span class="str"&gt;"AUTH_USER"&lt;/span&gt; &amp;amp; &lt;span class="str"&gt;"    "&lt;/span&gt; &amp;amp;  Request.ServerVariables(&lt;span class="str"&gt;"AUTH_USER"&lt;/span&gt;) &amp;amp; &lt;span class="str"&gt;"&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;"&lt;/span&gt;) %&amp;gt;
            &amp;lt;u&amp;gt;
        &amp;lt;/h2&amp;gt;
                
            &amp;lt;%
                &lt;span class="kwrd"&gt;for&lt;/span&gt; each x &lt;span class="kwrd"&gt;in&lt;/span&gt; Request.ServerVariables
                    response.write(x &amp;amp; &lt;span class="str"&gt;"&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;"&lt;/span&gt; &amp;amp;  Request.ServerVariables(x) &amp;amp; &lt;span class="str"&gt;"&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;"&lt;/span&gt;)
                next
            %&amp;gt; 
            
    &amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Enjoy!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;style type="text/css"&gt;
&lt;br /&gt;.csharpcode, .csharpcode pre&lt;br /&gt;{&lt;br /&gt;	font-size: small;&lt;br /&gt;	color: black;&lt;br /&gt;	font-family: consolas, "Courier New", courier, monospace;&lt;br /&gt;	background-color: #ffffff;&lt;br /&gt;	/*white-space: pre;*/&lt;br /&gt;}&lt;br /&gt;.csharpcode pre { margin: 0em; }&lt;br /&gt;.csharpcode .rem { color: #008000; }&lt;br /&gt;.csharpcode .kwrd { color: #0000ff; }&lt;br /&gt;.csharpcode .str { color: #006080; }&lt;br /&gt;.csharpcode .op { color: #0000c0; }&lt;br /&gt;.csharpcode .preproc { color: #cc6633; }&lt;br /&gt;.csharpcode .asp { background-color: #ffff00; }&lt;br /&gt;.csharpcode .html { color: #800000; }&lt;br /&gt;.csharpcode .attr { color: #ff0000; }&lt;br /&gt;.csharpcode .alt &lt;br /&gt;{&lt;br /&gt;	background-color: #f4f4f4;&lt;br /&gt;	width: 100%;&lt;br /&gt;	margin: 0em;&lt;br /&gt;}&lt;br /&gt;.csharpcode .lnum { color: #606060; }
&lt;/style&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-2933524511430657311?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/QKWQ5tlhvqLg8mVv7CYqLwFdUSA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QKWQ5tlhvqLg8mVv7CYqLwFdUSA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/QKWQ5tlhvqLg8mVv7CYqLwFdUSA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/QKWQ5tlhvqLg8mVv7CYqLwFdUSA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/hUUK3tB7eO4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/2933524511430657311/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=2933524511430657311" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/2933524511430657311?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/2933524511430657311?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/hUUK3tB7eO4/asp-displaying-server-variables.html" title="ASP : Displaying server variables" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/asp-displaying-server-variables.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0cGQH07fCp7ImA9WhdWF0o.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-8837835427682139412</id><published>2011-09-12T08:59:00.001+12:00</published><updated>2011-09-12T09:03:41.304+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-12T09:03:41.304+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ADFS" /><title>ADFS : Selecting claim that's not in the default drop down</title><content type="html">&lt;br /&gt;
When you want to edit the claims rules for a CP or RP in ADFS v2.0, you sometimes need to select an LDAP attribute that's not in the default drop down list. &lt;br /&gt;
&lt;br /&gt;
I've always done this via a custom claim, But then I read this post: &lt;a href="http://social.msdn.microsoft.com/Forums/en/Geneva/thread/c2c96868-2b03-41c6-8edf-a1f958179b33"&gt;Active Directory attribute store: Require custom claim rule to access other attributes?&lt;/a&gt;. &lt;br /&gt;
&lt;br /&gt;
The drop down actually allows free-form (not that that is obvious). In case the link disappears, this is how: &lt;br /&gt;
&lt;br /&gt;
"Edit Claims Rules / Add Rule / Send LDAP Attributes as Claims". &lt;br /&gt;
Don't select the drop-down, just click in the white space of the grid. &lt;br /&gt;
If the box turns dark blue, click again. &lt;br /&gt;
Away you go - you can now enter any attribute you like. &lt;br /&gt;
&lt;br /&gt;
This also works for the "Outgoing Claims Type" box. &lt;br /&gt;
&lt;br /&gt;
Enjoy! &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-8837835427682139412?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AAwdQ1bNTium24pe70E3UGQjbG0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AAwdQ1bNTium24pe70E3UGQjbG0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AAwdQ1bNTium24pe70E3UGQjbG0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AAwdQ1bNTium24pe70E3UGQjbG0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/MRoX3zTKJF8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/8837835427682139412/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=8837835427682139412" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8837835427682139412?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/8837835427682139412?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/MRoX3zTKJF8/adfs-selecting-claim-thats-not-in.html" title="ADFS : Selecting claim that's not in the default drop down" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/adfs-selecting-claim-thats-not-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8CQHs9fyp7ImA9WhdWF0o.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-3465369102550338340</id><published>2011-09-12T08:37:00.000+12:00</published><updated>2011-09-12T09:01:01.567+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-12T09:01:01.567+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Stackoverflow" /><title>Stackoverflow : Another milestone</title><content type="html">&lt;br/&gt;
Just clocked up rep. of 6000 over on Stackoverflow !!!

&lt;br/&gt;&lt;br/&gt;

My stackoverflow flair:

&lt;br/&gt;&lt;br/&gt;

&lt;a href="http://stackoverflow.com/users/9922/nzpcmad"&gt;
&lt;img src="http://stackoverflow.com/users/flair/9922.png" width="208" height="58" alt="profile for nzpcmad at Stack Overflow, Q&amp;amp;A for professional and enthusiast programmers" title="profile for nzpcmad at Stack Overflow, Q&amp;amp;A for professional and enthusiast programmers"&gt;
&lt;/a&gt;

&lt;br/&gt;&lt;br/&gt;

or overall Stack Exchange flair

&lt;br/&gt;&lt;br/&gt;

&lt;a href="http://stackexchange.com/users/d72ec68598b046d29a66bf0535509224"&gt;
&lt;img src="http://stackexchange.com/users/flair/d72ec68598b046d29a66bf0535509224.png" width="208" height="58" alt="profile for nzpcmad on Stack Exchange, a network of free, community-driven Q&amp;amp;A sites" title="profile for nzpcmad on Stack Exchange, a network of free, community-driven Q&amp;amp;A sites"&gt;&lt;/a&gt;

&lt;br/&gt;&lt;br/&gt;

Enjoy!
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-3465369102550338340?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/NQgeKgcRr41vdCSeHPmhl62KP-o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NQgeKgcRr41vdCSeHPmhl62KP-o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/NQgeKgcRr41vdCSeHPmhl62KP-o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/NQgeKgcRr41vdCSeHPmhl62KP-o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/MU97XyBvmyY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/3465369102550338340/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=3465369102550338340" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3465369102550338340?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/3465369102550338340?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/MU97XyBvmyY/stackoverflow-another-milestome.html" title="Stackoverflow : Another milestone" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/stackoverflow-another-milestome.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUcBQXwzfCp7ImA9WhdWFE4.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-235630354319429318</id><published>2011-09-08T11:07:00.001+12:00</published><updated>2011-09-08T11:10:50.284+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-08T11:10:50.284+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Windows" /><title>Windows : The “hidden” tools</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;There’s an amazing amount of tools “hidden” on your PC that you probably aren’t even aware off &lt;img style="border-bottom-style: none; border-right-style: none; border-top-style: none; border-left-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh3.ggpht.com/-VdqpwDSNyRw/Tmf5SeV6bEI/AAAAAAAAAoo/PZhmEiMhgNo/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" /&gt;.&lt;/p&gt;  &lt;p&gt;A lot of them are stored in the &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;C:\Program Files\Microsoft SDKs\Windows&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;directory. These mainly derive from the Windows SDK for Windows 7 and .NET Framework 4.&lt;/p&gt;  &lt;p&gt;Browse through StartTools.htm located at:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;There’s an amazing collection of tools there.&lt;/p&gt;  &lt;p&gt;The actual binaries are located here:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;To quote:&lt;/p&gt;  &lt;p&gt;“The Windows SDK tools are designed to make it easier for you to create, deploy, and manage applications and components that target Windows and the Internet. The Windows SDK includes tools for both the .NET 3.5 SP1 and 4 Frameworks - a managed programming model - and tools for Win32® - the native (unmanaged) programming model for Windows. Many of the Windows SDK tools are listed on this page and categorized by target audience: managed, native and &amp;quot;common&amp;quot; (tools that could be used by either managed or native developers).”&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-235630354319429318?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RTht-gREzkJai9lP-r8OED-WvTE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RTht-gREzkJai9lP-r8OED-WvTE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RTht-gREzkJai9lP-r8OED-WvTE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RTht-gREzkJai9lP-r8OED-WvTE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/V7f6f5htFcQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/235630354319429318/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=235630354319429318" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/235630354319429318?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/235630354319429318?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/V7f6f5htFcQ/windows-hidden-tools.html" title="Windows : The “hidden” tools" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh3.ggpht.com/-VdqpwDSNyRw/Tmf5SeV6bEI/AAAAAAAAAoo/PZhmEiMhgNo/s72-c/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" height="72" width="72" /><thr:total>1</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/windows-hidden-tools.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0MNRns5fCp7ImA9WhdXGU8.&quot;"><id>tag:blogger.com,1999:blog-11195359.post-6478323718737159694</id><published>2011-09-02T11:57:00.002+12:00</published><updated>2011-09-02T11:58:17.524+12:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2011-09-02T11:58:17.524+12:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Powershell" /><title>PowerShell : Using an IDE</title><content type="html">&lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;PowerShell is command line which means that you lose out on all the benefits that an IDE brings.&lt;/p&gt;  &lt;p&gt;There is an in-built PowerShell IDE:&lt;/p&gt;  &lt;p&gt;Just type “ise” from the command line &lt;/p&gt;  &lt;p&gt;but it’s pretty basic.&lt;/p&gt;  &lt;p&gt;Then I came across &lt;a href="http://powergui.org/index.jspa"&gt;PowerGui&lt;/a&gt;.&lt;/p&gt;  &lt;p&gt;It has two parts viz. an administrative console that allows you to run a collection of PowerShell scripts and a script editor that allows you to enter and run scripts. It has intellisense and a set of built in snippets. It has a debug function where you can step through the script and examine all the variables.&lt;/p&gt;  &lt;p&gt;Very neat – and BTW it’s free.&lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/11195359-6478323718737159694?l=nzpcmad.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aTG5pUzQkilkiYSxEx_j1WHMl5E/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aTG5pUzQkilkiYSxEx_j1WHMl5E/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aTG5pUzQkilkiYSxEx_j1WHMl5E/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aTG5pUzQkilkiYSxEx_j1WHMl5E/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/RandomThoughtsAndCollisions/~4/OPacZn2ZyKo" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://nzpcmad.blogspot.com/feeds/6478323718737159694/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://www.blogger.com/comment.g?blogID=11195359&amp;postID=6478323718737159694" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6478323718737159694?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/11195359/posts/default/6478323718737159694?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/RandomThoughtsAndCollisions/~3/OPacZn2ZyKo/powershell-using-ide.html" title="PowerShell : Using an IDE" /><author><name>nzpcmad</name><uri>http://www.blogger.com/profile/06352759009406963230</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="16" height="16" src="http://img2.blogblog.com/img/b16-rounded.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://nzpcmad.blogspot.com/2011/09/powershell-using-ide.html</feedburner:origLink></entry></feed>

