<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Joshua Johnson</title><subtitle type="html">ASP.NET, ASP.NET AJAX, Silverlight, VS 2008</subtitle><id>http://weblogs.asp.net/joshuajohnson/atom.aspx</id><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/default.aspx" /><link rel="self" type="application/atom+xml" href="http://weblogs.asp.net/joshuajohnson/atom.aspx" /><generator uri="http://communityserver.org" version="3.0.20510.895">Community Server</generator><updated>2007-10-05T14:43:00Z</updated><entry><title>Passed the Microsoft 70-536 .NET Framework - Application Development Foundation Exam</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/archive/2009/06/23/passed-the-microsoft-70-536-net-framework-application-development-foundation-exam.aspx" /><id>http://weblogs.asp.net/joshuajohnson/archive/2009/06/23/passed-the-microsoft-70-536-net-framework-application-development-foundation-exam.aspx</id><published>2009-06-23T15:55:00Z</published><updated>2009-06-23T15:55:00Z</updated><content type="html">&lt;p&gt;I passed the Microsoft 70-536 exam.&lt;/p&gt;

&lt;p&gt;The next exam that I am targeting is the Microsoft 70-562 ASP.NET Application Development exam. I have been working with ASP.NET since version 1.0, so I should do well on this exam.&lt;/p&gt;

&lt;p&gt;Joshua&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7132610" width="1" height="1"&gt;</content><author><name>JoshuaJohnson</name><uri>http://weblogs.asp.net/members/JoshuaJohnson.aspx</uri></author><category term="C#" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/C_2300_/default.aspx" /><category term=".NET 3.5" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/.NET+3.5/default.aspx" /><category term="Certification" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Certification/default.aspx" /></entry><entry><title>Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0×80070057 (E_INVALIDARG))</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/archive/2008/12/22/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-the-parameter-is-incorrect-exception-from-hresult-0-215-80070057-e-invalidarg.aspx" /><id>http://weblogs.asp.net/joshuajohnson/archive/2008/12/22/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-the-parameter-is-incorrect-exception-from-hresult-0-215-80070057-e-invalidarg.aspx</id><published>2008-12-22T20:20:00Z</published><updated>2008-12-22T20:20:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;If you are working with the Ajax Control Toolkit, sometimes the AjaxControlToolkit assembly will become corrupted in your Temporary ASP.NET Files folder. Here are a set of steps that might help you get back up and running. This is only relevant to developing with the built in web server, Cassini.&lt;/P&gt;
&lt;P mce_keep="true"&gt;But first, here is the scenario.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Last Friday, my computer crashed while I was working on a project which references the AJAX Control Toolkit assembly.&lt;/P&gt;
&lt;P mce_keep="true"&gt;After my computer restarted, I opened the project in Visual Studio 2008. I launched the default web page and&amp;nbsp;I received the following error:&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0×80070057 (E_INVALIDARG))&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;I tried closing and reopening the project; I&amp;nbsp;even restarted my computer, but none of these efforts were successful.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I deleted and re-added the AjaxControlToolkit assembly reference, but still no dice.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Here are the steps that I found which worked for me:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Close Visual Studio&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Open the Temporary ASP.NET Files folder and delete its contents.&lt;/DIV&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;If the OS is Windows Vista, then the folder&amp;nbsp;is &lt;STRONG&gt;%LocalAppData%\Temp\Temporary ASP.NET Files&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;If&amp;nbsp;the OS is&amp;nbsp;Windows XP, then the folder is &lt;STRONG&gt;%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Restart Visual Studio&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV mce_keep="true"&gt;Open the project&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P mce_keep="true"&gt;That's it. Works great now.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hope this helps.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Joshua&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6801543" width="1" height="1"&gt;</content><author><name>JoshuaJohnson</name><uri>http://weblogs.asp.net/members/JoshuaJohnson.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/ASP.NET/default.aspx" /><category term="Visual Studio" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Visual+Studio/default.aspx" /><category term="Troubleshooting" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Troubleshooting/default.aspx" /><category term="AJAX Control Toolkit" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/AJAX+Control+Toolkit/default.aspx" /></entry><entry><title>How do I overcome the dreaded Safari (and Chrome) / ASP.NET Menu conundrum?</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/archive/2008/01/23/how-do-i-overcome-the-dreaded-safari-asp-net-menu-conundrum.aspx" /><id>http://weblogs.asp.net/joshuajohnson/archive/2008/01/23/how-do-i-overcome-the-dreaded-safari-asp-net-menu-conundrum.aspx</id><published>2008-01-24T04:11:00Z</published><updated>2008-01-24T04:11:00Z</updated><content type="html">&lt;div style="background-color:#eeeeee;padding:5px;margin-bottom:10px;"&gt;
&lt;strong style="color:red;"&gt;UPDATE&lt;/strong&gt;
&lt;div style="margin-top:10px;"&gt;
Since I initially wrote this post, I found another way of solving the Safari / Chrome ASP.NET menu issue. 
&lt;br /&gt;
First, determine whether the user agent string contains "AppleWebKit". If so, set the Page.ClientTarget property to "uplevel".&lt;br /&gt;
&lt;pre&gt;
&lt;code&gt;
    &lt;span style="color:blue;"&gt;protected void&lt;/span&gt; Page_PreInit(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color:blue;"&gt;EventArgs&lt;/span&gt; e)
    {
        &lt;span style="color:blue;"&gt;if&lt;/span&gt; (Request.UserAgent != &lt;span style="color:blue;"&gt;null&lt;/span&gt; &amp;&amp; Request.UserAgent.IndexOf(&lt;span style="color:brown;"&gt;"AppleWebKit"&lt;/span&gt;, StringComparer.CurrentCultureIgnoreCase) &gt; -1)
        {
            &lt;span style="color:blue;"&gt;this&lt;/span&gt;.ClientTarget = &lt;span style="color:brown;"&gt;"uplevel"&lt;/span&gt;;
        }
    }
&lt;/code&gt;
&lt;/pre&gt;
&lt;div style="margin:10px;margin-top:0px; font-size:8pt;font-weight:bold;width:500px;"&gt;NOTE: I have found from personal experience that the Request.UserAgent property in some cases might not be set. It is best practice to ensure that the user agent string is not null before calling the string's IndexOf method, otherwise, the code will throw a null reference exception.&lt;/div&gt;

Typically, you will not want to handle this event on every page that you have the ASP.NET menu, unless you have a tiny website.&lt;br /&gt;
Set the pageBaseType in the Web.config file to a class that inherits from System.Web.UI.Page and contains the above code.
&lt;pre&gt;
&lt;code&gt;
      &lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:brown;"&gt;configuration&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;
         &lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:brown;"&gt;system.web&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;
            &lt;span style="color:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:brown;"&gt;pages&lt;/span&gt; &lt;span style="color:red;"&gt;pageBaseType&lt;/span&gt;="&lt;span style="color:blue;"&gt;MyPageBase&lt;/span&gt;"&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;
               ...
            &lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:brown;"&gt;pages&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;
         &lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:brown;"&gt;system.web&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;
      &lt;span style="color:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:brown;"&gt;configuration&lt;/span&gt;&lt;span style="color:blue;"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;
&lt;/pre&gt;
&lt;a href="http://weblogs.asp.net/dannychen/archive/2005/11/21/using-device-filters-and-making-menu-work-with-safari.aspx"&gt;Here&lt;/a&gt; is another blog post on the menu problem.
&lt;/div&gt;
&lt;/div&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Overview&lt;/STRONG&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Primarily, I develop external facing commercial Web sites. In this setting, I cannot dictate which Web browser will be used by the masses, so I have to proactively ensure that the layout and functionality remain either the same or gracefully degraded.&lt;/P&gt;
&lt;P mce_keep="true"&gt;This can be a challenge when Internet Explorer 5/6/7, Mozilla Firefox, Apple Safari, and Opera Web browsers might adhere to differing standards.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Problem&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;I found an &lt;A class="" title=article href="http://www.big-o.org/?p=20" mce_href="http://www.big-o.org/?p=20"&gt;article&lt;/A&gt; that describes a situation with the Apple Safari browser wherein ASP.NET renders the ASP.NET Menu control in a downgraded (not gracefully either) state. I have seen this issue a couple of times in the past several years and I thought it was worth mentioning.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;I will not go into much detail here,&amp;nbsp;but&amp;nbsp;in&amp;nbsp;brief, in the &lt;STRONG&gt;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\CONFIG\Browsers\mozilla.browser&lt;/STRONG&gt; file, remove the&amp;nbsp;Menu adapter reference from the Safari configuration, save the file, and then run the &lt;STRONG&gt;aspnet_regbrowsers.exe -i&lt;/STRONG&gt; tool. Running that tool parses and compiles all system-wide browser definitions into an assembly and installs the assembly into the GAC.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;STRONG&gt;Conclusion&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Typically, if only administering a single Web site, the preferable&amp;nbsp;approach would be to create an App_Browsers folder in the root&amp;nbsp;of the Web site and create a&amp;nbsp;.browser file in that folder. Add the appropriate browser overrides in the file and you are good to go. No need to run&amp;nbsp;an external&amp;nbsp;tool. The browser configuration is dynamically compiled when the application starts.&amp;nbsp;This is the only&amp;nbsp;approach if the Web site is in a hosted environment.&lt;/P&gt;
&lt;P mce_keep="true"&gt;In some future post, I would like to dive into a discussion of what are the major headaches that developers face when attacking browser compatibility issues&amp;nbsp;and how to elegantly circumvent the browsers' woes.&lt;/P&gt;
&lt;P mce_keep="true"&gt;What are the three or four&amp;nbsp;issues that you find most irritating when developing for various browsers?&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hope this helps!&lt;/P&gt;
&lt;P mce_keep="true"&gt;Joshua&lt;BR&gt;&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5642368" width="1" height="1"&gt;</content><author><name>JoshuaJohnson</name><uri>http://weblogs.asp.net/members/JoshuaJohnson.aspx</uri></author><category term="ASP.NET" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/ASP.NET/default.aspx" /></entry><entry><title>.NET Framework Library Source Code now available</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/archive/2008/01/16/net-framework-library-source-code-now-available.aspx" /><id>http://weblogs.asp.net/joshuajohnson/archive/2008/01/16/net-framework-library-source-code-now-available.aspx</id><published>2008-01-17T04:29:00Z</published><updated>2008-01-17T04:29:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;The long awaited release of the .NET Framework Library source code for debugging purposes has arrived.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Scott Guthrie announced it &lt;A class="" title=here href="http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx" mce_href="http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx"&gt;here&lt;/A&gt;. Scott Hanselman and Peter Bromberg blogged about it &lt;A class="" title=here href="http://www.hanselman.com/blog/NETFrameworkLibrarySourceCodeAvailableForViewing.aspx" mce_href="http://www.hanselman.com/blog/NETFrameworkLibrarySourceCodeAvailableForViewing.aspx"&gt;here&lt;/A&gt; and &lt;A class="" title=here href="http://petesbloggerama.blogspot.com/2008/01/net-framework-source-code-debugging-is.html" mce_href="http://petesbloggerama.blogspot.com/2008/01/net-framework-source-code-debugging-is.html"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;One of my mentors, John Robbins from Wintellect, has a great blog about &lt;A class="" title="this subject" href="http://www.wintellect.com/cs/blogs/jrobbins/archive/2008/01/17/additional-net-framework-source-code-debugging-tricks.aspx" mce_href="http://www.wintellect.com/cs/blogs/jrobbins/archive/2008/01/17/additional-net-framework-source-code-debugging-tricks.aspx"&gt;this subject&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I am really excited about this and I look forward to taking advantage of this in the near future.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hope this helps!&lt;/P&gt;
&lt;P mce_keep="true"&gt;Joshua Johnson&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5611864" width="1" height="1"&gt;</content><author><name>JoshuaJohnson</name><uri>http://weblogs.asp.net/members/JoshuaJohnson.aspx</uri></author><category term="Debugging" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Debugging/default.aspx" /><category term="Visual Studio" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Visual+Studio/default.aspx" /></entry><entry><title>Silverlight 2.0 Beta</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/archive/2007/11/29/silverlight-2-0-beta.aspx" /><id>http://weblogs.asp.net/joshuajohnson/archive/2007/11/29/silverlight-2-0-beta.aspx</id><published>2007-11-29T19:07:00Z</published><updated>2007-11-29T19:07:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;Some exciting news has been announced a little while ago by &lt;A class="" title="Scott Guthrie" href="http://weblogs.asp.net/scottgu" target=_blank mce_href="http://weblogs.asp.net/scottgu"&gt;Scott Guthrie&lt;/A&gt;, &lt;A class="" title=here href="http://weblogs.asp.net/scottgu/archive/2007/11/29/net-web-product-roadmap-asp-net-silverlight-iis7.aspx" target=_blank mce_href="http://weblogs.asp.net/scottgu/archive/2007/11/29/net-web-product-roadmap-asp-net-silverlight-iis7.aspx"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Silverlight has a new timeline, new feature set,&amp;nbsp;and new name (actually, new version number).&lt;/P&gt;
&lt;P mce_keep="true"&gt;Silverlight 2.0 Beta will be released the first quarter of 2008. It includes an exciting list of new&amp;nbsp;functionality and controls. The best part of all is that the release comes with a Go Live license; this will allow developers to immediately use the new feature set when the bits are available.&lt;/P&gt;
&lt;P mce_keep="true"&gt;A new day is dawning in Web development!&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hope this helps.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;Joshua Johnson&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5375282" width="1" height="1"&gt;</content><author><name>JoshuaJohnson</name><uri>http://weblogs.asp.net/members/JoshuaJohnson.aspx</uri></author><category term="Silverlight" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Silverlight/default.aspx" /><category term="ASP.NET" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/ASP.NET/default.aspx" /><category term="C#" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/C_2300_/default.aspx" /></entry><entry><title>Initial Blog Post</title><link rel="alternate" type="text/html" href="http://weblogs.asp.net/joshuajohnson/archive/2007/10/05/initial-blog-post.aspx" /><id>http://weblogs.asp.net/joshuajohnson/archive/2007/10/05/initial-blog-post.aspx</id><published>2007-10-05T18:43:00Z</published><updated>2007-10-05T18:43:00Z</updated><content type="html">&lt;P mce_keep="true"&gt;A big thank you goes out to &lt;A class="" title=Joe href="http://www.joeon.net/" target=_blank mce_href="http://www.joeon.net"&gt;Joe&lt;/A&gt;&amp;nbsp;for this exciting opportunity to blog with a great group of folks on the &lt;A class="" title="ASP.NET blogs" href="http://weblogs.asp.net/" target=_blank mce_href="http://weblogs.asp.net/"&gt;ASP.NET blogs&lt;/A&gt;.&lt;/P&gt;
&lt;P mce_keep="true"&gt;This blog will be primarily focused on ASP.NET, ASP.NET AJAX, Silverlight, VS 2008 and other related technologies.&lt;/P&gt;
&lt;P mce_keep="true"&gt;I look forward to sharing my thoughts and reading your feedback.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Hope you enjoy!&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4363568" width="1" height="1"&gt;</content><author><name>JoshuaJohnson</name><uri>http://weblogs.asp.net/members/JoshuaJohnson.aspx</uri></author><category term="Community News" scheme="http://weblogs.asp.net/joshuajohnson/archive/tags/Community+News/default.aspx" /></entry></feed>