<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://bloggingabout.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Rick van den Bosch - Blog : Development</title><link>http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx</link><description>Tags: Development</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Error: The Path 'path' is already mapped in workspace 'workspace'</title><link>http://bloggingabout.net/blogs/rick/archive/2013/04/02/error-the-path-path-is-already-mapped-in-workspace-workspace.aspx</link><pubDate>Tue, 02 Apr 2013 07:35:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:578409</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=578409</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2013/04/02/error-the-path-path-is-already-mapped-in-workspace-workspace.aspx#comments</comments><description>&lt;p&gt;Just a quick little post today: I got the error &amp;quot;The Path &amp;#39;path&amp;#39; is already mapped in workspace &amp;#39;workspace&amp;#39;&amp;quot; when I connected to a new Team Foundation Server and tried to map my workspace today. I had connected to a Team Foundation Services project a while back to get some shared code, but I already removed the workspace and the server binding. Even though&amp;nbsp;Visual Studio didn&amp;#39;t see any other bindings, mapping my workspace to the same folder the previous TFS binding was mapped to served me this error.&lt;/p&gt;
&lt;p&gt;The quick solution: manually edit (or remove if you don&amp;#39;t have any other bindings) the file VersionControl.config, which can be found under %AppData%\Local\Microsoft\Team Foundation\4.0\Cache&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=578409" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/TFS/default.aspx">TFS</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category></item><item><title>Visual Studio 2012 crashes when opening an ASP.NET MVC project with a cshtml open</title><link>http://bloggingabout.net/blogs/rick/archive/2013/03/15/visual-studio-2012-crashes-when-opening-an-asp-net-mvc-project-with-a-cshtml-open.aspx</link><pubDate>Fri, 15 Mar 2013 10:54:59 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:578379</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=578379</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2013/03/15/visual-studio-2012-crashes-when-opening-an-asp-net-mvc-project-with-a-cshtml-open.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/4380.vscrash_5F00_5D32128B.png"&gt;&lt;img title="vscrash" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;margin:0px 0px 0px 15px;display:inline;border-top-width:0px;" border="0" alt="vscrash" align="right" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/7217.vscrash_5F00_thumb_5F00_35F7C956.png" width="213" height="244" /&gt;&lt;/a&gt; A rather long title for this post, but that’s exactly what happened: when I opened an ASP.NET MVC 4 project with a cshtml view open, Visual Studio would crash with the error messages seen on the right. This would only occur if the &lt;em&gt;first&lt;/em&gt; project I opened had a cshtml file open. When I opened another (type of) project first and then opened a project with a cshtml file open, the problem did not occur. Debugging Visual Studio with a new instance of Visual Studio (&lt;a href="http://www.imdb.com/title/tt1375666" target="_blank"&gt;Inception&lt;/a&gt; anyone?) made things a bit clearer. (Part of) the exception information:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Source&lt;/strong&gt;     &lt;br /&gt;WebEssentials2012&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Message&lt;/strong&gt;     &lt;br /&gt;Could not load type &amp;#39;Microsoft.Less.Core.LessMixinDeclaration&amp;#39; from assembly &amp;#39;Microsoft.VisualStudio.Web.Extensions, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;#39;.&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;After searching around a bit, I found this blog post by Mads Kristensen: &lt;a title="http://madskristensen.net/post/Web-Tools-20122-and-Web-Essentials.aspx" href="http://madskristensen.net/post/Web-Tools-20122-and-Web-Essentials.aspx" target="_blank"&gt;Web Tools 2012.2 and Web Essentials&lt;/a&gt;. This post talks about Web Tools 2012.2 and Web Essentials 2.5, and how an error can occur if you install Web Tools 2012.2 and don’t upgrade to Web Essentials 2.5. However, I do have Web Essentials 2.5.1 installed so this issue shouldn’t be the same as mine.&lt;/p&gt;  &lt;p&gt;Although my situation didn’t match the one on Mads’s blog, I decided to install Web Tools 2012.2 just to see what the result would be. As it turned out, installing the &lt;a href="http://go.microsoft.com/fwlink/?LinkId=282650" target="_blank"&gt;Web Tools 2012.2&lt;/a&gt; did solve the problem. Here’s why I think this solved it:&lt;/p&gt;  &lt;p&gt;I had an older version of WebEssentials installed, which included specific functionality. This functionality was moved to Web Tools, and out of the new version of Web Essentials. When I updated to the new version of Web Essentials (without having Web Tools installed!), the functionality was no longer available in Web Essentials giving me the ‘Could not load type’ exception.    &lt;br /&gt;I’m not sure why the exception did not occur when I opened a different project first or if this is the exact reason of the exception occurring. I’ll contact Mads to share my findings, he might be able to reproduce this.&lt;/p&gt;  &lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=578379" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2012/default.aspx">VS2012</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/MVC4/default.aspx">MVC4</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/debug/default.aspx">debug</category></item><item><title>How to add Next and Previous buttons to Twitter Bootstrap tabs</title><link>http://bloggingabout.net/blogs/rick/archive/2013/01/16/how-to-add-next-and-previous-buttons-to-twitter-bootstrap-tabs.aspx</link><pubDate>Wed, 16 Jan 2013 09:02:56 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:578267</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=578267</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2013/01/16/how-to-add-next-and-previous-buttons-to-twitter-bootstrap-tabs.aspx#comments</comments><description>  &lt;p&gt;Just a quickie today: when working with &lt;a href="http://twitter.github.com/bootstrap" target="_blank"&gt;Twitter Bootstrap&lt;/a&gt; &lt;a href="http://twitter.github.com/bootstrap/javascript.html#tabs" target="_blank"&gt;tabs&lt;/a&gt;, like I am in my ASP.NET MVC 4 project, you might want to add Next and Previous buttons on the tabs to create something of a Wizard. Here’sa step by step overview of how I did this:&lt;/p&gt;  &lt;p&gt;Add an ID to all the ListItem elements that are used for the tab navigation. For instance:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;&amp;lt;ul &lt;span class="kwrd"&gt;class&lt;/span&gt;=&lt;span class="str"&gt;&amp;quot;nav nav-tabs&amp;quot;&lt;/span&gt; id=&lt;span class="str"&gt;&amp;quot;myTab&amp;quot;&lt;/span&gt;&amp;gt;
    &amp;lt;li&amp;gt;&amp;lt;a href=&lt;span class="str"&gt;&amp;quot;#example&amp;quot;&lt;/span&gt; data-toggle=&lt;span class="str"&gt;&amp;quot;tab&amp;quot;&lt;/span&gt; id=&lt;span class="str"&gt;&amp;quot;xmpl&amp;quot;&lt;/span&gt;&amp;gt;Example&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
    ...
&amp;lt;/ul&amp;gt;&lt;/pre&gt;
Add a button you would like to use to activate the Example tab 

&lt;p&gt;In the onclick, call the ShowTab JavaScript function with the id of the ListItem for the Example tab (which is ‘xmpl’ in this example) 
  &lt;br /&gt;&lt;/p&gt;

&lt;p&gt;The ShowTab function is simple: &lt;/p&gt;

&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;function&lt;/span&gt; ShowTab(tabname) { 
    $(&lt;span class="str"&gt;&amp;#39;#&amp;#39;&lt;/span&gt; + tabname).tab(&lt;span class="str"&gt;&amp;#39;show&amp;#39;&lt;/span&gt;); 
} &lt;/pre&gt;


&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=578267" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/jQuery/default.aspx">jQuery</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Twitter+Bootstrap/default.aspx">Twitter Bootstrap</category></item><item><title>How To: Call a generic method with a runtime type</title><link>http://bloggingabout.net/blogs/rick/archive/2012/12/02/how-to-call-a-generic-method-with-a-runtime-type.aspx</link><pubDate>Sun, 02 Dec 2012 10:17:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:578193</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>1</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=578193</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2012/12/02/how-to-call-a-generic-method-with-a-runtime-type.aspx#comments</comments><description>&lt;p&gt;&lt;b&gt;Problem:&lt;/b&gt;&lt;br /&gt;Developing a generic class that maps datasets, datatables and datarows from a legacy system to my domain model, I ran into an issue. I wanted to call a generic method with a runtime type. Lets say the method looked like this: public string DoSomething&amp;lt;T&amp;gt;(string param). Because I use reflection to iterate properties on a type, the type of the properties was dynamic and only known at runtime. I wanted to do something like this:&lt;/p&gt;
&lt;p&gt;DoSomething&amp;lt;propertyInfo.PropertyType&amp;gt;(&amp;quot;bloggingabout&amp;quot;);&lt;/p&gt;
&lt;p&gt;This however resulted in an error message. The tooltip on the red colored propertyInfo read &amp;quot;Cannot resolve symbol &amp;#39;propertyInfo&amp;#39;&amp;quot;, while the build error stated &amp;quot;The type or namespace name &amp;#39;propertyInfo&amp;#39; could not be found (are you missing a using directive or an assembly reference?)&amp;quot;. This is expected behavior, because &amp;quot;The type argument [...] can be any type recognized by the compiler.&amp;quot; So that says compiler. So the type is parsed (and should be known) at compile time.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;br /&gt;The solution is found in reflection. Taken from the MSDN article for the MethodInfo.MakeGenericMethod Mehod:&lt;br /&gt;&lt;i&gt;The MakeGenericMethod method allows you to write code that assigns specific types to the type parameters of a generic method definition, thus creating a MethodInfo object that represents a particular constructed method. If the ContainsGenericParameters property of this MethodInfo object returns true, you can use it to invoke the method or to create a delegate to invoke the method.&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;In our example, this would look something like this:&lt;/p&gt;
&lt;pre style="font-family:Consolas;font-size:12;color:black;background:white;"&gt;instance.GetType()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .GetMethod(&lt;span style="color:#a31515;"&gt;&amp;quot;DoSomething&amp;quot;&lt;/span&gt;)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .MakeGenericMethod(propertyInfo.PropertyType)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Invoke(mapper,&amp;nbsp;&lt;span style="color:blue;"&gt;new&lt;/span&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;object&lt;/span&gt;[]&amp;nbsp;{ &amp;quot;bloggingabout&amp;quot; });&lt;/pre&gt;
&lt;p&gt;&lt;b&gt;More information:&lt;/b&gt;&lt;br /&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/0zk36dx2.aspx"&gt;Generic Type Parameters (C# Programming Guide)&lt;br /&gt;&lt;/a&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/system.reflection.methodinfo.makegenericmethod.aspx"&gt;MethodInfo.MakeGenericMethod Method&lt;/a&gt;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/0zk36dx2.aspx"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=578193" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category></item><item><title>How To: Create an ActionLink with a Twitter Bootstrap icon in MVC4</title><link>http://bloggingabout.net/blogs/rick/archive/2012/11/07/how-to-create-an-actionlink-with-a-twitter-bootstrap-icon-in-mvc4.aspx</link><pubDate>Wed, 07 Nov 2012 18:16:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:578174</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>2</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=578174</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2012/11/07/how-to-create-an-actionlink-with-a-twitter-bootstrap-icon-in-mvc4.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://twitter.github.com/bootstrap"&gt;Twitter Bootstrap&lt;/a&gt; is a... &amp;quot;Sleek, intuitive, and powerful front-end framework for faster and easier web development.&amp;quot; One of the nice things in Bootstrap is you can use icons from &lt;a href="http://glyphicons.com/"&gt;Glyphicons&lt;/a&gt;. To use these, you can simply use this markup &amp;lt;i class=&amp;quot;icon-fire&amp;quot;&amp;gt;&amp;lt;/i&amp;gt; get a nice fire icon (&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/3324.fire_5F00_57D37DC8.png"&gt;&lt;img title="fire" style="display:inline;border-width:0px;border:0;vertical-align:middle;" alt="fire" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/1261.fire_5F00_thumb_5F00_1E506DD1.png" border="0" height="14" width="14" /&gt;&lt;/a&gt; ).&lt;br /&gt;Translating this into an ActionLink styled as a button in an MVC4 application would look something like the following:&lt;/p&gt;
&lt;pre&gt;&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;@Html.ActionLink(&amp;quot;&lt;span style="color:#0000ff;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#800000;"&gt;i&lt;/span&gt; &lt;span style="color:#ff0000;"&gt;class&lt;/span&gt;=&lt;span style="color:#0000ff;"&gt;\&lt;/span&gt;&amp;quot;&lt;span style="color:#ff0000;"&gt;icon&lt;/span&gt;-&lt;span style="color:#ff0000;"&gt;fire&lt;/span&gt;\&amp;quot;&lt;span style="color:#0000ff;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#800000;"&gt;i&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&amp;gt;&lt;/span&gt; Invent fire&amp;quot;, &amp;quot;fire&amp;quot;, new { @class = &amp;quot;btn&amp;quot; })&lt;/pre&gt;
&lt;/pre&gt;
&lt;p&gt;Unfortunately, this renders as follows: 
  &lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/5226.encoded_5F00_50480E5B.png"&gt;&lt;img title="encoded" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" alt="encoded" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/0358.encoded_5F00_thumb_5F00_451E8411.png" border="0" height="27" width="224" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;The reason this is not rendered correctly is because Html.ActionLink HtmlEncodes the text you pass in the actionLink parameter. You can check this by opening the System.Web.Mvc assembly in your disassembler of choice, and having a look at the GenerateLinkInternal method on the HtmlHelper class. It HtmlEncodes the linkText, and doesn&amp;#39;t have any option to have it not do that. To solve this, I wrote an extension method called NoEncodeActionLink, looking like this:&lt;/p&gt;
&lt;pre&gt;&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;&lt;span style="color:#0000ff;"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff;"&gt;static&lt;/span&gt; IHtmlString NoEncodeActionLink(&lt;span style="color:#0000ff;"&gt;this&lt;/span&gt; HtmlHelper htmlHelper, &lt;span style="color:#0000ff;"&gt;string&lt;/span&gt; linkText, &lt;span style="color:#0000ff;"&gt;string&lt;/span&gt; action, &lt;span style="color:#0000ff;"&gt;object&lt;/span&gt; htmlAttributes) 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;{ 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    TagBuilder builder; 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    UrlHelper urlHelper; 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    urlHelper = &lt;span style="color:#0000ff;"&gt;new&lt;/span&gt; UrlHelper(htmlHelper.ViewContext.RequestContext); 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    builder = &lt;span style="color:#0000ff;"&gt;new&lt;/span&gt; TagBuilder(&amp;quot;&lt;span style="color:#8b0000;"&gt;a&lt;/span&gt;&amp;quot;); 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    builder.InnerHtml = linkText; 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    builder.Attributes[&amp;quot;&lt;span style="color:#8b0000;"&gt;href&lt;/span&gt;&amp;quot;] = urlHelper.Action(action); 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    builder.MergeAttributes(&lt;span style="color:#0000ff;"&gt;new&lt;/span&gt; RouteValueDictionary(htmlAttributes)); 
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;    &lt;span style="color:#0000ff;"&gt;return&lt;/span&gt; MvcHtmlString.Create(builder.ToString());
&lt;/pre&gt;
&lt;pre style="font-size:12px;font-family:consolas,&amp;#39;Courier New&amp;#39;,courier,monospace;margin:0em;width:100%;background-color:#ffffff;"&gt;}
&lt;/pre&gt;
&lt;/pre&gt;
&lt;p&gt;Calling the new overload (don&amp;#39;t forget to add a using statement to the namespace holding the extension method), the linkText parameter is not HtmlEncoded, which means the ActionLink now renders fine, including the icon (and the button style): 
  &lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/2577.unencoded_5F00_25037754.png"&gt;&lt;img title="unencoded" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;display:inline;border-top-width:0px;" alt="unencoded" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/1447.unencoded_5F00_thumb_5F00_04E86A97.png" border="0" height="44" width="124" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=578174" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/MVC4/default.aspx">MVC4</category></item><item><title>TIP: “Paste XML as Classes” in Visual Studio 2012</title><link>http://bloggingabout.net/blogs/rick/archive/2012/10/24/tip-paste-xml-as-classes-in-visual-studio-2012.aspx</link><pubDate>Wed, 24 Oct 2012 05:02:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:578130</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>6</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=578130</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2012/10/24/tip-paste-xml-as-classes-in-visual-studio-2012.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/7288.pastespecial_5F00_5DA7DCDB.png"&gt;&lt;img title="pastespecial" style="border-left-width:0px;border-right-width:0px;border-bottom-width:0px;margin-left:0px;display:inline;border-top-width:0px;margin-right:0px;" alt="pastespecial" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/2273.pastespecial_5F00_thumb_5F00_39164F57.png" align="right" border="0" height="240" width="239" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the past, when you had some XML document that you wanted to translate into classes we had to create / generate a schema based on the XML file. Next, we had to generate a class based on the schema with an external tool. Not all too user friendly and somewhat time consuming.&lt;/p&gt;
&lt;p&gt;In Visual Studio 2012 you copy the XML you want to create a class/classes for, place the cursor in a class file on the location you want the code to be added and select the following menu items: Edit &amp;ndash; Paste Special &amp;ndash; Paste XML as Classes. And you&amp;rsquo;re done! Just like that&amp;hellip;&lt;/p&gt;
&lt;p&gt;   &lt;br /&gt;If you want to try real quick, there&amp;rsquo;s a sample XML file (books.xml) &lt;a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms762271.aspx" target="_blank"&gt;available here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;b&gt;EDIT&lt;/b&gt;&lt;br /&gt;The feature is .NET Framework 4.5 specific. Taken from this MSDN article &amp;#39;&lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/hh371548.aspx"&gt;Generating Data Type Classes from XML&lt;/a&gt;&amp;#39;:&lt;br /&gt;&lt;i&gt;&amp;quot;.NET Framework 4.5 includes a new feature to generate data type classes from XML.&lt;/i&gt;&amp;quot;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=578130" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Tip/default.aspx">Tip</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2012/default.aspx">VS2012</category></item><item><title>Documents.Open returns null, running Word automation under ASP.NET on x64</title><link>http://bloggingabout.net/blogs/rick/archive/2012/02/02/documents-open-returns-null-when-running-under-asp-net-on-an-64-bit-machine.aspx</link><pubDate>Thu, 02 Feb 2012 04:53:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:577121</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>3</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=577121</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2012/02/02/documents-open-returns-null-when-running-under-asp-net-on-an-64-bit-machine.aspx#comments</comments><description>&lt;p&gt;When building an ASPapplication that generates Word documents,&amp;nbsp; it was working fine on&amp;nbsp;the local machine. A&amp;nbsp;windows XP installation with Office 2007.&amp;nbsp;When we&amp;nbsp;deployed it to windows 2008 (64 bit) and Word 2007 we saw that&amp;nbsp;Documents.Open returned null.&amp;nbsp;Other than this, there are no exceptions.&lt;/p&gt;
&lt;p&gt;The code that returned the error (simplified):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new,courier;"&gt;Application app = new Application();&lt;br /&gt;Document doc = app.Documents.Open(ref name);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;As it turns out, a 64 bit system stores temporary files in &amp;quot;C:\Windows\SysWOW64\config\systemprofile\Desktop&amp;quot; folder.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;The solution&lt;/em&gt;&lt;/strong&gt;: create a new directory called &amp;quot;Desktop&amp;quot; inside&amp;nbsp;&amp;quot;C:\Windows\SysWOW64\config\systemprofile\&amp;quot;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=577121" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/automation/default.aspx">automation</category></item><item><title>Unhandled exception installing SQL Server 2008 R2 on a Windows XP / Windows 7 machine</title><link>http://bloggingabout.net/blogs/rick/archive/2012/01/27/unhandled-exception-installing-sql-server-2008-r2-in-a-windows-xp-machine.aspx</link><pubDate>Fri, 27 Jan 2012 04:46:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:577167</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>6</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=577167</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2012/01/27/unhandled-exception-installing-sql-server-2008-r2-in-a-windows-xp-machine.aspx#comments</comments><description>&lt;p&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick/7633.SQL2008r2_5F00_installerror.png"&gt;&lt;img width="300" src="http://bloggingabout.net/resized-image.ashx/__size/550x0/__key/CommunityServer.Blogs.Components.WeblogFiles/rick/7633.SQL2008r2_5F00_installerror.png" alt="System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly &amp;#39;System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; or one of its dependencies. The system cannot find the file specified. (C:\Documents and Settings\BoschR\Local Settings\Application Data\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config line 5) ---&amp;gt; System.IO.FileNotFoundException: Could not load file or assembly &amp;#39;System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; or one of its dependencies. The system cannot find the file specified." border="0" style="BORDER-BOTTOM:0px;BORDER-LEFT:0px;FLOAT:right;BORDER-TOP:0px;BORDER-RIGHT:0px;" /&gt;&lt;/a&gt;When installing SQL Server 2008 R2 on a Windows XP (or, according to the comments, Windows 7) development machine that has been around for quite some time, I got an error stating an unhandled exception occured in the application (see image). The error showed up directly upon startup and read:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly &amp;#39;System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; or one of its dependencies.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Repairing&amp;nbsp;the .NET 4.0 framework didn&amp;#39;t solve the issue. Neither did removing&amp;nbsp;all SQL stuff through &amp;#39;Add or Remove Programs&amp;#39;.&amp;nbsp;Looking into the error a bit further...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;em&gt;The system cannot find the file specified. (C:\Documents and Settings\_USERNAME_\Local Settings\Application Data\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config line 5) ---&amp;gt; System.IO.FileNotFoundException: Could not load file or assembly &amp;#39;System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; or one of its dependencies. The system cannot find the file specified.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;So the problem probably&amp;nbsp;wasn&amp;#39;t that System.dll couldn&amp;#39;t be found, but some user.config file for the landingpage executable. The solution is as simple as it is radical: remove the entire (temporary) folder &amp;#39;C:\Documents and Settings\_USERNAME_\Local Settings\Application Data\Microsoft_Corporation&amp;#39; (where USERNAME_ is, of course, the current username). After this the setup should start up without any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=577167" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Work/default.aspx">Work</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/SQL/default.aspx">SQL</category></item><item><title>The Visual Studio 2010 Test Client for WCF services</title><link>http://bloggingabout.net/blogs/rick/archive/2011/06/01/the-visual-studio-2010-test-client-for-wcf-services.aspx</link><pubDate>Wed, 01 Jun 2011 05:21:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:486803</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>1</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=486803</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2011/06/01/the-visual-studio-2010-test-client-for-wcf-services.aspx#comments</comments><description>&lt;p&gt;When writing WCF services, most of us find ourselves writing quick test applications. To give you more time to do what a developer should be doing (adding business value to the project) the Visual Studio team added a WCF test client that can help you reach goals faster.&lt;/p&gt;
&lt;p&gt;This is not a very difficult application, but it does the trick and is more than sufficient for simple testing. The WCF Test Client can be found at this location (without the &amp;lsquo; (x86)&amp;rsquo; for x86 machines): &lt;em&gt;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Taken from the help:&lt;/em&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Windows Communication Foundation (WCF) Test Client (WcfTestClient.exe) is a GUI tool that allows users to input test parameters, submit that input to the service, and view the response that the service sends back. It provides a seamless service testing experience when combined with WCF Service Host.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;em&gt;WCF Test Client screenshots: &lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/7144.image_5F00_07736124.png"&gt;&lt;img height="203" width="240" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/6888.image_5F00_thumb_5F00_7934E833.png" alt="image" border="0" title="image" style="background-image:none;border-bottom:0px;border-left:0px;margin:5px 5px 5px 0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" /&gt;&lt;/a&gt;&amp;nbsp;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/6825.image_5F00_07072E2F.png"&gt;&lt;img height="203" width="240" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/7776.image_5F00_thumb_5F00_14D9742A.png" alt="image" border="0" title="image" style="background-image:none;border-bottom:0px;border-left:0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:xx-small;"&gt;&lt;strong&gt;Updated&lt;/strong&gt;: Thanks to Marco for pointing out my typo...!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=486803" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Tip/default.aspx">Tip</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/WCF/default.aspx">WCF</category></item><item><title>HowTo: Save a file from Silverlight using the SaveFileDialog</title><link>http://bloggingabout.net/blogs/rick/archive/2011/01/20/howto-save-a-file-from-silverlight-using-the-savefiledialog.aspx</link><pubDate>Thu, 20 Jan 2011 17:23:57 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484647</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>3</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=484647</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2011/01/20/howto-save-a-file-from-silverlight-using-the-savefiledialog.aspx#comments</comments><description>&lt;p&gt;Saving a file from Silverlight using the &lt;a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.savefiledialog(v=vs.95).aspx" target="_blank"&gt;SaveFileDialog&lt;/a&gt;, added in Silverlight 3, is easy. If you’re used to desktop development however, you might find yourself getting a SecurityException with the message ‘File operation not permitted. Access to path &amp;#39;xxx&amp;#39; is denied.’. Here’s why:&lt;/p&gt;  &lt;p&gt;In desktop development, you’re used to getting a filename from a SaveFileDialog. Next, you start doing whatever you need to be doing to the file, based on the filename. This would look something like this:&lt;/p&gt;  &lt;pre class="csharpcode"&gt;SaveFileDialog saveFileDialog = &lt;span class="kwrd"&gt;new&lt;/span&gt; SaveFileDialog();

&lt;span class="kwrd"&gt;if&lt;/span&gt; (saveFileDialog.ShowDialog() == &lt;span class="kwrd"&gt;true&lt;/span&gt;)
{
    StreamWriter streamWriter = &lt;span class="kwrd"&gt;new&lt;/span&gt; StreamWriter(saveFileDialog.SafeFileName);
    streamWriter.Write(&lt;span class="str"&gt;&amp;quot;Follow me on twitter: @rickvdbosch&amp;quot;&lt;/span&gt;);
    streamWriter.Flush();
    streamWriter.Close();
}&lt;/pre&gt;


&lt;p&gt;This results in the SecurityException. First time I saw the property, I genuinely thought it said SaveFileName. But, as you can see, it says SafeFileName. It is named safe, because the returned file name has all file path information removed for security purposes. 
  &lt;br /&gt;

  &lt;br /&gt;In Silverlight, if you want the above functionality, it should look something like this:&lt;/p&gt;

&lt;pre class="csharpcode"&gt;SaveFileDialog saveFileDialog = &lt;span class="kwrd"&gt;new&lt;/span&gt; SaveFileDialog();

&lt;span class="kwrd"&gt;if&lt;/span&gt; (saveFileDialog.ShowDialog() == &lt;span class="kwrd"&gt;true&lt;/span&gt;)
{
    StreamWriter streamWriter = &lt;span class="kwrd"&gt;new&lt;/span&gt; StreamWriter(saveFileDialog.OpenFile());
    streamWriter.WriteLine(&lt;span class="str"&gt;&amp;quot;Follow me on twitter: @rickvdbosch&amp;quot;&lt;/span&gt;);
    streamWriter.Flush();
    streamWriter.Close();
}&lt;/pre&gt;

&lt;p&gt;The OpenFile method opens the file specified by the SafeFileName returning a Stream, giving you the opportunity to save whatever you want to save over there.&lt;/p&gt;

&lt;p&gt;Hope this helps.&lt;/p&gt;

&lt;p&gt;&lt;font size="1"&gt;On a side note: the ‘== true’ part in the if condition is needed in this case. Because the ShowDialog method returns a nullable boolean it is not enough to use saveFileDiaolog.ShowDialog() in the condition. Just so you know… :)&lt;/font&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=484647" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Silverlight/default.aspx">Silverlight</category></item><item><title>HowTo: open all files from the Find Results window</title><link>http://bloggingabout.net/blogs/rick/archive/2011/01/17/howto-open-all-files-from-the-find-results-window.aspx</link><pubDate>Mon, 17 Jan 2011 05:49:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484623</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=484623</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2011/01/17/howto-open-all-files-from-the-find-results-window.aspx#comments</comments><description>&lt;p&gt;Here&amp;rsquo;s a quick Visual Studio tip for you&amp;hellip;&lt;/p&gt;
&lt;p&gt;I frequently search for a specific text in my solution because I need to do something in all places where that text occurs. Today I found out how you can open all the files that are mentioned in the Find Results window.&lt;/p&gt;
&lt;p&gt;Search for the text you&amp;rsquo;re looking for. In my case this is ITest*. &lt;br /&gt;Open up the Search Results window and select all the records where the text was found. You can do this by dragging your mouse cursor over the text or clicking the text of the first search result, holding SHIFT and clicking the text of the last. &lt;br /&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/7382.Search_2D00_Results_2D00_for_2D00_ITest_5F00_605219A0.png"&gt;&lt;img height="90" width="644" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/3581.Search_2D00_Results_2D00_for_2D00_ITest_5F00_thumb_5F00_6B0F70F5.png" alt="Search Results for ITest" border="0" title="Search Results for ITest" style="background-image:none;border-bottom:0px;border-left:0px;margin:5px 5px 5px 0px;padding-left:0px;padding-right:0px;display:inline;border-top:0px;border-right:0px;padding-top:0px;" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Right click anywhere &lt;em&gt;&lt;strong&gt;on the selected text&lt;/strong&gt;&lt;/em&gt; and choose &amp;lsquo;Go to location&amp;rsquo;. If you click anywhere other than on selected text, you will lose the selection and you&amp;rsquo;ll probably get just one file opened. When all files are opened you will keep the &amp;lsquo;Go To Next Location F8&amp;rsquo; and &amp;lsquo;Go To Previous Location SHIFT + F8&amp;rsquo; functionality. That might be a nice one to loop through all the locations where your text was found. Especially when it was found more than once in one file.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:xx-small;"&gt;* The usefulness of searching for this interface is arbitrary due to functionality as &amp;lsquo;Find all references&amp;rsquo; and so on. Luckily I&amp;rsquo;m only using it for this example. So lets not focus on that but on the tip this post is about ;)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=484623" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Tip/default.aspx">Tip</category></item><item><title>HowTo: have Visual Studio open XAML documents in code view</title><link>http://bloggingabout.net/blogs/rick/archive/2011/01/04/howto-have-visual-studio-open-xaml-documents-in-code-view.aspx</link><pubDate>Tue, 04 Jan 2011 09:25:18 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484531</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=484531</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2011/01/04/howto-have-visual-studio-open-xaml-documents-in-code-view.aspx#comments</comments><description>&lt;p&gt;Just a small post to start the new year... and let it be a good one!&lt;/p&gt;  &lt;p&gt;When opening a XAML document in Visual Studio, it opens in split view by default. This might become annoying when you have a large XAML document, because all the content needs to be rendered before you can get some work done.&lt;/p&gt;  &lt;p&gt;Here’s how you can have Visual Studio open XAML documents in code view:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Go to &lt;em&gt;Tools&lt;/em&gt;, &lt;em&gt;Options&lt;/em&gt; &lt;/li&gt;    &lt;li&gt;Under &lt;em&gt;Text Editor &lt;/em&gt;open the&lt;em&gt; XAML&lt;/em&gt; section and select &lt;em&gt;Miscellaneous&lt;/em&gt; &lt;/li&gt;    &lt;li&gt;Under &lt;em&gt;Default View&lt;/em&gt; check the &lt;em&gt;Always open documents in full XAML view&lt;/em&gt; box (see image below) &lt;/li&gt;    &lt;li&gt;Click &lt;em&gt;OK&lt;/em&gt; to apply and you’re all done! &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;Hope this helps.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/4544.fullxamlview_5F00_21CB17B8.png"&gt;&lt;img style="background-image:none;border-right-width:0px;margin:5px auto;padding-left:0px;padding-right:0px;display:block;float:none;border-top-width:0px;border-bottom-width:0px;border-left-width:0px;padding-top:0px;" title="fullxamlview" border="0" alt="fullxamlview" src="http://bloggingabout.net/cfs-file.ashx/__key/CommunityServer.Blogs.Components.WeblogFiles/rick.metablogapi/4403.fullxamlview_5F00_thumb_5F00_0C012F5B.png" width="400" height="309" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=484531" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category></item><item><title>Little-heard-of ASP.NET feature: app_offline.htm</title><link>http://bloggingabout.net/blogs/rick/archive/2010/10/08/unknown-feature-app-offline-htm.aspx</link><pubDate>Fri, 08 Oct 2010 07:43:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484138</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>3</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=484138</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/10/08/unknown-feature-app-offline-htm.aspx#comments</comments><description>&lt;p&gt;Although the feature has been around since ASP.NET 2.0, I still meet people that don&amp;#39;t know and/or use app_offline.htm. Do you know (and use) the feature...?&lt;/p&gt;
&lt;p&gt;When working on an ASP.NET web application, you should notify your visitors in a decent way that your application is down. There&amp;#39;s a nice default feature available for these purposes since ASP.NET 2.0. Somehow, however, this feature is not very well known and rarely used. The &amp;quot;App_Offline.htm&amp;quot; feature in ASP.NET 2.0 provides an easy way to bring down an ASP.NET application while you make changes to it. This feature kicks in as soon as you place a file called app_offline.htm in the root of the application. When ASP.NET detects the file, it will shut-down the app-domain for the application and won&amp;#39;t restart it for requests. The app_offline.htm file will be sent as the response to all new dynamic requests for the application. When you&amp;#39;re done updating the site, just delete or rename the file and your site it will come back online.&lt;/p&gt;
&lt;p&gt;Taken from (or actually inspired on) &lt;a href="http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx"&gt;this blog post of Scott Guthrie&lt;/a&gt;:&lt;/p&gt;
&lt;p&gt;Keep an eye on a feature of IE6(+) called &amp;quot;Show Friendly Http Errors&amp;quot;. This can be configured in the Tools-&amp;gt;Internet Options-&amp;gt;Advanced tab within IE, and is on by default with IE6. With this setting turned on, when a server returns a non HTTP-200 status code with less than 512 bytes of content, IE will not show the returned HTML and instead substitutes its own generic status code message.&lt;br /&gt;&lt;br /&gt;If you use the app_offline.htm feature, make sure you have at least 512 bytes of content within it to make sure that your HTML shows up to your users instead of IE&amp;#39;s friendly status message. If you don&amp;#39;t want to have a lot of text show-up on the page, one trick you can use is to just add an html client-side comment with some bogus content to push it over 512 bytes. For example:&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;!&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;DOCTYPE&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;html&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;PUBLIC&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;quot;-//W3C//DTD XHTML 1.0 Transitional//EN&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&amp;quot;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;html&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;xmlns&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;head&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;span style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;title&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;Site Under Construction&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;title&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;head&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;body&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;span style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;h1&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;Under Construction&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;h1&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;span style="color:#000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;h2&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;We&amp;#39;re currently working on our site...&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="COLOR:maroon;"&gt;h2&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;!--&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Adding additional hidden content so that IE Friendly Errors don&amp;#39;t prevent&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;this message from displaying (note: it will show a &amp;quot;friendly&amp;quot; 404&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;error if the content isn&amp;#39;t of a certain size).&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&amp;lt;h2&amp;gt;Gone to Florida for the sun...&amp;lt;/h2&amp;gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:green;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;--&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;body&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="MsoNormal"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:maroon;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;html&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Courier New&amp;#39;;COLOR:blue;FONT-SIZE:10pt;mso-no-proof:yes;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=484138" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category></item><item><title>"AjaxControlToolkit is undefined"</title><link>http://bloggingabout.net/blogs/rick/archive/2010/09/23/quot-ajaxcontroltoolkit-is-undefined-quot.aspx</link><pubDate>Thu, 23 Sep 2010 08:02:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:484083</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>5</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=484083</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/09/23/quot-ajaxcontroltoolkit-is-undefined-quot.aspx#comments</comments><description>&lt;p&gt;Because we were still using an old Visual Studio 2005 solution which included a Web Site project, it was time to upgrade. We upgraded our Visual Studio 2005 solution to Visual Studio 2010 (and .NET 4.0), converted the Web Site Project to a Web Application Project and then, of course, the AjaxControlToolkit had to follow. I downloaded the latest build from &lt;a target="_blank" href="http://ajaxcontroltoolkit.codeplex.com/"&gt;their Codeplex site&lt;/a&gt; and updated the references in the different projects. I ran the website, and that&amp;rsquo;s where things got ugly&amp;hellip;&lt;/p&gt;
&lt;p&gt;Most pages worked nicely, but there were a few that gave an &amp;ldquo;AjaxControlToolkit is undefined&amp;rdquo; error. I removed all references to the AjaxControlToolkit, removed all the old versions of it from my machine, referenced the most recent version again, all to no avail. After &lt;span style="text-decoration:line-through;"&gt;Googling&lt;/span&gt;&lt;sup&gt;*&lt;/sup&gt; Binging the error I found a LOT of possible solutions. These included:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the ToolkitScriptManager from the AjaxControlToolkit in stead of the built-in ScriptManager &lt;/li&gt;
&lt;li&gt;When using the ToolkitScriptManager, set CombineScripts to false &lt;/li&gt;
&lt;li&gt;When using the ToolkitScriptManager, set EnablePartialRendering to true &lt;/li&gt;
&lt;li&gt;Clear the browser cache&lt;/li&gt;
&lt;li&gt;Clear the ASP.NET Temporary Files directory&lt;/li&gt;
&lt;li&gt;Use a (dummy) control to make sure the JavaScript files have been loaded correctly&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Unfortunately, none of these possible solutions helped us with our specific problem. Our problem occurred when we, for instance, set the PositioningMode for a control from custom JavaScript using the AjaxControlToolkit.PositioningMode enumeration. The error was always from custom JavaScript. After looking around a bit more I found one site that mentioned something about changing the AjaxControlToolkit &amp;lsquo;namespace&amp;rsquo; in JavaScript.&amp;nbsp; After playing around a bit I found out that changing the use of AjaxControlToolkit.XXX to System.Extended.UI.XXX provided the solution.&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:xx-small;"&gt;* Of course this is a weak attempt at a joke, but fact is that Google (the first 7 or so pages) only pointed me in the direction of the solutions that weren&amp;rsquo;t solutions for my situation. When I tried Bing for a change, I found something that put me on the right track pretty fast. Kudos to Bing!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=484083" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/.Net/default.aspx">.Net</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Error/default.aspx">Error</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Ajax/default.aspx">Ajax</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Ajax+Control+Toolkit/default.aspx">Ajax Control Toolkit</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/VS2010/default.aspx">VS2010</category></item><item><title>Visual Studio: Zero-impact Projects &amp; Cutting/copying empty lines</title><link>http://bloggingabout.net/blogs/rick/archive/2010/05/19/Visual-Studio_3A00_-Zero_2D00_impact-Projects-_2600_-Cutting_2F00_copying-empty-lines.aspx</link><pubDate>Wed, 19 May 2010 16:07:00 GMT</pubDate><guid isPermaLink="false">813b6dfd-644e-4573-a816-eebab56ba0d0:483290</guid><dc:creator>Rick van den Bosch</dc:creator><slash:comments>0</slash:comments><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://bloggingabout.net/blogs/rick/commentapi.aspx?PostID=483290</wfw:comment><comments>http://bloggingabout.net/blogs/rick/archive/2010/05/19/Visual-Studio_3A00_-Zero_2D00_impact-Projects-_2600_-Cutting_2F00_copying-empty-lines.aspx#comments</comments><description>&lt;p&gt;Yesterday I remembered&amp;nbsp;two&amp;nbsp;Visual Studio&amp;nbsp;options &lt;a href="http://blogs.msdn.com/saraford/"&gt;Sara Ford&lt;/a&gt; told about in a presentation of her I attended a while back.&amp;nbsp;Changing&amp;nbsp;them&amp;nbsp;made me happy... :)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Zero-impact projects&lt;/strong&gt;&lt;br /&gt;When I have to test something real quick, I tend to create a new project in Visual Studio and scribble some code to test whatever I want to test at that point. This causes my project directory to be&amp;nbsp;filled with projects&amp;nbsp;named &amp;#39;WindowsFormsApplication14&amp;#39; or something like that. To make this stop, go to Tools - Options - Projects and Solutions - General. Uncheck the option &amp;#39;Save new projects when created&amp;#39;. This way those newly made (and shortly used) projects aren&amp;#39;t saved untill you explicitly tell Visual Studio to do so. No more &amp;#39;WindowsFormsApplication63&amp;#39; for you! Unless you want to name it that way intentionally, of course...&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Cutting/copying empty lines&lt;/strong&gt;&lt;br /&gt;We probably all experienced this at one time or another: you select some code, copy it, go to an empty line where you want to past the code.......and you press CTRL + C by accident. With the default settings, you just copied an empty line and have lost the stuff you copied earlier. But with this next option, empty lines won&amp;#39;t get copied or cut anymore! Go to Tools - Options - Text Editor - All languages (or just the language you want to change this setting for) and deselect the option &amp;#39;Apply Cut or Copy commands to blank lines when there is no selection&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://bloggingabout.net/aggbug.aspx?PostID=483290" width="1" height="1"&gt;</description><category domain="http://bloggingabout.net/blogs/rick/archive/tags/HowTo/default.aspx">HowTo</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/Development/default.aspx">Development</category><category domain="http://bloggingabout.net/blogs/rick/archive/tags/dotnetmag/default.aspx">dotnetmag</category></item></channel></rss>