<?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>Ken's Blog &#187; ASP.Net</title>
	<atom:link href="http://www.kennakai.com/blog/index.php/tag/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kennakai.com/blog</link>
	<description>Absolutely no business being on the Web</description>
	<lastBuildDate>Thu, 15 Jul 2010 06:11:07 +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>Another clear Microsoft error&#8230;</title>
		<link>http://www.kennakai.com/blog/2010/02/another-clear-microsoft-error/</link>
		<comments>http://www.kennakai.com/blog/2010/02/another-clear-microsoft-error/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 06:19:02 +0000</pubDate>
		<dc:creator>knakai</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ugh]]></category>
		<category><![CDATA[Web Method]]></category>

		<guid isPermaLink="false">http://www.kennakai.com/blog/?p=194</guid>
		<description><![CDATA[Maybe it&#8217;s not their fault but then again, they built the server (IIS) and the Web tech (ASP.NET). This had me scratching my head for a few minutes until I just happened to figure it out by mistake. I was doing an Ajax call to an aspx page with a Web Method. Something like this: [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe it&#8217;s not their fault but then again, they built the server (IIS) and the Web tech (ASP.NET). This had me scratching my head for a few minutes until I just happened to figure it out by mistake.</p>
<p>I was doing an Ajax call to an aspx page with a Web Method. Something like this:</p>
<p>/someplace/somefile.aspx/MyWebMethod</p>
<p>Using JSON and JQuery. Fine. Done it a ton of times throughout the site but this time it was in a specific folder that contained files used exclusively for Ajax calls (mostly XML).</p>
<p>The error I was getting was:</p>
<p>Exception information:<br />
Exception type: ArgumentException<br />
Exception message: Unknown web method DoLookup.<br />
Parameter name: methodName</p>
<p>Unknown web method, huh? But, the file was there, the code was in there and it worked fine on Dev&#8230;what the deuce?</p>
<p>After trolling the net to find something (mostly found people forgetting &#8220;static&#8221; or making their WebMethods private), the idea that the file might be corrupt popped into my head.</p>
<p>I thought I was stupid&#8230;after all, the aspx file just contains a basic page reference to the code behind. All the real action was in the site dll. It&#8217;d be stupid if&#8211;</p>
<p>Then I saw it. The file size was ZERO. Nice. I checked the delivery folder (where I drop deployments onto the server). Also zero. Great.</p>
<p>Checked my dev publish folder where said deployments start their life after a publish from within Visual Studio. 1kb. Oooo&#8230;looks like something died in between.</p>
<p>So, I copied that sucker all over again and lo and behold, the friggin thing works!</p>
<p>I dunno, I guess you&#8217;ve got to ask yourself what you&#8217;d do if you were trying to figure out an error message for that&#8230;how&#8217;s about Page reference missing? Or Holy Shit, your aspx file has NO CONTENT.</p>
<p>Ugh&#8230;Microsoft&#8230;love/hate is becoming hate/hate&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennakai.com/blog/2010/02/another-clear-microsoft-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Dev: Obscure Error Message&#8230;thanks Microsoft!</title>
		<link>http://www.kennakai.com/blog/2009/04/web-dev-obscure-error-messagethanks-microsoft/</link>
		<comments>http://www.kennakai.com/blog/2009/04/web-dev-obscure-error-messagethanks-microsoft/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 04:58:22 +0000</pubDate>
		<dc:creator>knakai</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.kennakai.com/blog/?p=151</guid>
		<description><![CDATA[So, I&#8217;d just merged some code into my test build to prepare a deployment to staging when I got a compilation error on a page stating that a &#8220;}&#8221; was expected and referencing a line in a temp file from the GAC that included a line like this: [System.Diagnostics.DebuggerNonUserCodeAttribute()] I&#8217;m scratching my head&#8230;wtf? I searched [...]]]></description>
			<content:encoded><![CDATA[<p>So, I&#8217;d just merged some code into my test build to prepare a deployment to staging when I got a compilation error on a page stating that a &#8220;}&#8221; was expected and referencing a line in a temp file from the GAC that included a line like this:</p>
<p>[System.Diagnostics.DebuggerNonUserCodeAttribute()]</p>
<p>I&#8217;m scratching my head&#8230;wtf? I searched for the above and found a reference in the strings resource I had for the site. But, there weren&#8217;t any problems with the code&#8230;in fact, the site compiled just fine! More scratching&#8230;then I searched online. Found<a href="http://forums.asp.net/p/1328262/2661623.aspx#2661623" target="_blank"> this.</a> Different error but the same or rather a similar stack trace.</p>
<p>Then I thought about it. Missing closing bracket&#8230;well, we&#8217;d just modified some code recently that involved what I&#8217;m sure Microsoft would rather we didn&#8217;t do&#8230;in the front-end aspx file we did something like this:</p>
<p>&lt;% if (something == true) { %&gt;</p>
<p>&lt;myfancyhtml&gt;&lt;/myfancyhtml&gt;</p>
<p>&lt;% }//end if %&gt;</p>
<p>And, lo and behold, the recent merge managed to include two copies of the opening line with a single closing line. Lovely.</p>
<p>Anyhow, in case you run into this wonderfully obscure error, check your &lt;% %&gt; tags if the code behinds still compile successfully&#8230;probably have something in there that&#8217;s causing you problems&#8230;no need to reboot and all that crap.</p>
<p>kn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennakai.com/blog/2009/04/web-dev-obscure-error-messagethanks-microsoft/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Web Dev: Object must implement IConvertible.</title>
		<link>http://www.kennakai.com/blog/2008/10/web-dev-object-must-implement-iconvertible/</link>
		<comments>http://www.kennakai.com/blog/2008/10/web-dev-object-must-implement-iconvertible/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 02:07:10 +0000</pubDate>
		<dc:creator>knakai</dc:creator>
				<category><![CDATA[ASP.Net]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[IConvertible]]></category>
		<category><![CDATA[Uniqueidentifier]]></category>

		<guid isPermaLink="false">http://www.kennakai.com/blog/?p=22</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p>Since I keep running into this error and it makes no sense by itself AND I spend time each time I get it to figure out what the issue is, I&#8217;m posting this sucker here for posterity.</p>
<p>I&#8217;m getting this error on a call to ExecuteXMLReader off the SqlClient Command object. </p>
<p>And&#8230;it&#8217;s a stupid mistake as you&#8217;d expect. I assigned a parameter in .Net SqlDbType.Int when it was supposed to be a SqlDblType.UniqueIdentifier. Gotta love copy and paste errors.</p>
<p>UPDATE: All Web Dev content is being moved. This entry can be found <a href="http://www.kennakai.com/webdev/2008/10/web-dev-object-must-implement-iconvertible.html">here now</a>. Be advised as this content will eventually get archived into oblivion!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kennakai.com/blog/2008/10/web-dev-object-must-implement-iconvertible/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
