<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Heretic-Monkey &#187; Coding in .NET</title>
	<atom:link href="http://www.heretic-monkey.com/category/microcode/coding-in-net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.heretic-monkey.com</link>
	<description>All Kinds of Trouble</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:14:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ASP.NET Parser Error Message: Could not load type &#8220;&#8221;</title>
		<link>http://www.heretic-monkey.com/microcode/coding-in-net/aspnet-parser-error-message-could-not-load-type/</link>
		<comments>http://www.heretic-monkey.com/microcode/coding-in-net/aspnet-parser-error-message-could-not-load-type/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 18:44:38 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Coding in .NET]]></category>

		<guid isPermaLink="false">http://www.heretic-monkey.com/microcode/coding-in-net/aspnet-parser-error-message-could-not-load-type/</guid>
		<description><![CDATA[This message comes up for a number of reasons, spelled out by bloggers more proficient than I. One reason that seems obvious in retrospect is that referenced DLLs not in the GAC need to have the Copy Local property set to true, or you will need to manually copy the files to the bin folder.]]></description>
			<content:encoded><![CDATA[<p>This message comes up for a number of reasons, spelled out by bloggers more proficient than I. One reason that seems obvious in retrospect is that referenced DLLs not in the GAC need to have the Copy Local property set to true, or you will need to manually copy the files to the bin folder.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heretic-monkey.com/microcode/coding-in-net/aspnet-parser-error-message-could-not-load-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bug in Microsoft ASP.NET AJAX Extensions 1.0</title>
		<link>http://www.heretic-monkey.com/microcode/_upperabbrmonthsbug/</link>
		<comments>http://www.heretic-monkey.com/microcode/_upperabbrmonthsbug/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 22:32:27 +0000</pubDate>
		<dc:creator>mike</dc:creator>
				<category><![CDATA[Coding in .NET]]></category>
		<category><![CDATA[Geekdom]]></category>
		<category><![CDATA[Microcode]]></category>
		<category><![CDATA[.net 2.0]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[ajax extensions 1.0]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[_upperAbbrMonths]]></category>

		<guid isPermaLink="false">http://www.heretic-monkey.com/microcode/_upperabbrmonthsbug/</guid>
		<description><![CDATA[Here&#8217;s the story: I created a drop-down calendar control for a website I&#8217;m helping to build at work. The website needs to work not only with American date formats, but in British, French, Italian, German and Spanish formats as well, including a format which includes the three-letter abbreviation for the month (e.g., 31-Dec-2007). The Date.parse [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the story:</p>
<p>I created a drop-down calendar control for a website I&#8217;m helping to build at work. The website needs to work not only with American date formats, but in British, French, Italian, German and Spanish formats as well, including a format which includes the three-letter abbreviation for the month (e.g., 31-Dec-2007). The Date.parse function built into the browser cannot parse this particular format, so I was hoping to leverage the localization features of the AJAX Extensions library. However, I kept getting an error at a function called &#8220;Sys$CultureInfo$_getAbbrMonthIndex&#8221;, deep in the bowels of the library. Here&#8217;s the entire function (line breaks added):</p>
<p><code>
<pre>
    function Sys$CultureInfo$_getAbbrMonthIndex(value) {
        if (!this._upperAbbrMonths) {
            this._upperAbbrMonths = this._toUpperArray(
                this.dateTimeFormat.AbbreviatedMonthNames);
        }
        return Array.indexOf(this._upperMonths,
            this._toUpper(value));
    }
</pre>
<p></code></p>
<p>Can you spot the error? Hello!? It populates an array called <code>_upperAbbrMonths</code>, then promptly looks for an entry in the <code>_upperMonths</code> array. Suffice it to say, if that particular field has not been defined yet, you get a variable undefined error. I fixed it by registering a startup script in our base Page class with the following script:</p>
<p><code>
<pre>
Sys.CultureInfo.prototype._getAbbrMonthIndex = function(value)
{
        if (!this._upperAbbrMonths) {
            this._upperAbbrMonths = this._toUpperArray(
                this.dateTimeFormat.AbbreviatedMonthNames);
        }
        return Array.indexOf(this._upperAbbrMonths,
            this._toUpper(value));
};
</pre>
<p></code></p>
<p>That fixes the bug. The interesting this is that this bug is &#8220;fixed&#8221; <a href="http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=277646">according to MS</a>, because the new version of the library produced in .NET 3.5 has it fixed. Of course, if you&#8217;re stuck in .NET 2.0, you&#8217;re SOL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.heretic-monkey.com/microcode/_upperabbrmonthsbug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
