<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7839587483592502718</id><updated>2011-07-07T18:16:32.761-07:00</updated><category term='c# annoyance DetailsViewUpdateEventArgs InvalidCastException'/><category term='asp.net debug'/><category term='asp.net gridview'/><category term='publish clickonce'/><category term='help'/><category term='windows live writer'/><title type='text'>fingernails on the blackboard</title><subtitle type='html'>have I got your attention yet?</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-172578991290228920</id><published>2007-08-03T13:01:00.000-07:00</published><updated>2007-08-03T13:29:05.386-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='publish clickonce'/><title type='text'>microsoft clickonce publishing sucks (parts 1 and 2)...</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_pKBqLqtXPbk/RrOJwhu0JpI/AAAAAAAAACs/IsXbCUvMq-8/s1600-h/clickOnceFail.png"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_pKBqLqtXPbk/RrOJwhu0JpI/AAAAAAAAACs/IsXbCUvMq-8/s400/clickOnceFail.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5094567070267614866" /&gt;&lt;/a&gt;&lt;br /&gt;"Microsoft .NET ClickOnce Launch Utility has encountered a problem and needs to close. We are sorry for the inconvenience". who is this "we" who is sorry?  are they sorry enough to actual do something about it besides apologize? the details say applaunch.exe has a system.io.fileloadexception. this seems to be another example of microsoft putting out sloppy code. my &lt;a href="http://www.google.com/search?tab=gw&amp;hl=en&amp;q=%22clickonce%20launch%20utility%20has%20encountered%20a%20problem%22"&gt;google search&lt;/a&gt; shows nobody else reporting this problem. guess I'm just special :p&lt;br /&gt;&lt;br /&gt;part 2 of why ClickOnce sucks? Joe Wirtley has already covered this very nicely - I found his post when I ran into the same problems as he did and I suggest you read it: &lt;a href="http://joewirtley.blogspot.com/2007/07/clickonce-and-bogus-required-assemblies.html"&gt;ClickOnce and Bogus Required Assemblies&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-172578991290228920?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/172578991290228920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=172578991290228920' title='46 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/172578991290228920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/172578991290228920'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/08/microsoft-clickonce-publishing-sucks.html' title='microsoft clickonce publishing sucks (parts 1 and 2)...'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_pKBqLqtXPbk/RrOJwhu0JpI/AAAAAAAAACs/IsXbCUvMq-8/s72-c/clickOnceFail.png' height='72' width='72'/><thr:total>46</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-2172911420439892335</id><published>2007-08-01T16:36:00.000-07:00</published><updated>2007-08-01T16:43:06.025-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='help'/><title type='text'>microsoft visual studio help sucks (part 1)</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/_pKBqLqtXPbk/RrEZDBu0JoI/AAAAAAAAACk/z57fHaz5RBw/s1600-h/MSVChelpSux.png"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_pKBqLqtXPbk/RrEZDBu0JoI/AAAAAAAAACk/z57fHaz5RBw/s400/MSVChelpSux.png" border="0" alt=""id="BLOGGER_PHOTO_ID_5093880193327834754" /&gt;&lt;/a&gt;&lt;br /&gt;notice in the screenshot step "2. click on the Compile tab". the option does not exist. therefore I cannot change my warning level. these guys sure have a hard time coordinating things (I presume at one time the program matched the help).  btw, I originally posted this with windows live writer and somehow &lt;strong&gt;after posting&lt;/strong&gt; to blogger, it got zapped.  so I retyped this post. proper communication can be so difficult sometimes. sheesh!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-2172911420439892335?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/2172911420439892335/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=2172911420439892335' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/2172911420439892335'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/2172911420439892335'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/08/microsoft-visual-studio-help-sucks-part.html' title='microsoft visual studio help sucks (part 1)'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_pKBqLqtXPbk/RrEZDBu0JoI/AAAAAAAAACk/z57fHaz5RBw/s72-c/MSVChelpSux.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-1727686340371584657</id><published>2007-08-01T15:36:00.001-07:00</published><updated>2007-08-01T16:31:00.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='windows live writer'/><title type='text'>microsoft windows live writer sucks (part 1)</title><content type='html'>&lt;p&gt;try to publish to blogger with a picture included and you get the error:&lt;/p&gt; &lt;a href="http://4.bp.blogspot.com/_pKBqLqtXPbk/RrEO3Bu0JnI/AAAAAAAAACc/Y_FrGVweFXI/s1600-h/MSliveSux.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_pKBqLqtXPbk/RrEO3Bu0JnI/AAAAAAAAACc/Y_FrGVweFXI/s400/MSliveSux.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5093868992053126770" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;funny, if I just use the regular blogger interface it works fine.&amp;nbsp; so why does&amp;nbsp;microsoft give me options that their software doesn't support? this is a good reason to &lt;strong&gt;not&lt;/strong&gt; use windows live writer.&lt;br /&gt;&lt;br /&gt;Update: I (not surprisingly) am not the first to notice this problem. &lt;a href="http://www.reviewsaurus.com/2007/03/14/inserting-images-in-blogspot-posts-using-windows-live-writer/"&gt;The Dino&lt;/a&gt; and friends futilely tried to work around it months ago.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-1727686340371584657?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/1727686340371584657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=1727686340371584657' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/1727686340371584657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/1727686340371584657'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/08/microsoft-help-sucks-part-1.html' title='microsoft windows live writer sucks (part 1)'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_pKBqLqtXPbk/RrEO3Bu0JnI/AAAAAAAAACc/Y_FrGVweFXI/s72-c/MSliveSux.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-5071975128826118981</id><published>2007-07-17T10:16:00.000-07:00</published><updated>2007-07-17T09:55:47.460-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='c# annoyance DetailsViewUpdateEventArgs InvalidCastException'/><title type='text'>erroneous InvalidCastException</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/_pKBqLqtXPbk/RpwKru259yI/AAAAAAAAACE/7-d0ppVP5wA/s1600-h/puzzler.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_pKBqLqtXPbk/RpwKru259yI/AAAAAAAAACE/7-d0ppVP5wA/s400/puzzler.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5087953425450792738" /&gt;&lt;/a&gt;&lt;br /&gt;todays puzzler may be hard to read in the screen shot above (click on image to expand) but basically the debugger is complaining that I'm trying to cast the value "0" to an integer value and it can't handle that. (fwiw, most people accept zero as a valid integer)... bizarre!&lt;br /&gt;&lt;code&gt;&lt;br /&gt;if ((int)Args.NewValues["ItemPrice"] &lt; 0)&lt;br /&gt;            {&lt;br /&gt;                Args.Cancel = true;&lt;br /&gt;                EditMSG.Text = "-- Item price is out of range";&lt;br /&gt;            }&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;can anyone tell me why the if statement bombs when Args.NewValues["ItemPrice"] == "0"? I should think that would cast nicely to an int as I am attempting. (BTW Args is type DetailsViewUpdateEventArgs)&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;here's a workaround --&lt;br /&gt;if (Convert.ToInt32(Args.NewValues["ItemPrice"]) &lt; 0)...&lt;br /&gt;&lt;br /&gt;this way you're not casting, you're converting. ok!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-5071975128826118981?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/5071975128826118981/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=5071975128826118981' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/5071975128826118981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/5071975128826118981'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/07/erroneous-invalidcastexception.html' title='erroneous InvalidCastException'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_pKBqLqtXPbk/RpwKru259yI/AAAAAAAAACE/7-d0ppVP5wA/s72-c/puzzler.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-9039038215391517314</id><published>2007-07-11T22:28:00.000-07:00</published><updated>2007-07-11T23:09:28.273-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net debug'/><title type='text'>asp.net debugging annoyance...</title><content type='html'>so I run my app and notice at the bottom left the yellow triangle with "!" warning "Error on page."&lt;br /&gt;the details give this very unhelpful message:&lt;br /&gt;&lt;cite&gt;&lt;br /&gt;Line: 2829&lt;br /&gt;Char: 23&lt;br /&gt;Error: Sys.ArgumentException: Value must not be null for Controls and Behaviors. Parameter name: element&lt;br /&gt;Code: 0&lt;br /&gt;&lt;/cite&gt;&lt;br /&gt;where is this Line 2829? I know of no parameter named "element"... how does one track down such an error?&lt;br /&gt;&lt;br /&gt;I hate this.  and the only thing worse than Microsoft is everything else!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-9039038215391517314?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/9039038215391517314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=9039038215391517314' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/9039038215391517314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/9039038215391517314'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/07/aspnet-debugging-annoyance.html' title='asp.net debugging annoyance...'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-8057707362415316659</id><published>2007-07-09T17:25:00.000-07:00</published><updated>2007-07-11T22:50:22.403-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='asp.net gridview'/><title type='text'>asp.net: how to autoGenerateSelectButton on gridView manually...</title><content type='html'>&lt;em&gt;(I'll preface my post with "so" as the stereotypical microsoftie does)...&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;so I have this asp.net application that displays a grid of data. I want the user to be able to click anywhere on any row of that grid to start editing that row; something like data entry on a spreadsheet, but a little more controlled. dotNet 2.0 introduced a new control "gridview" to replace whatever else was used before. the event that gridview has that I want to use to trigger going into edit mode is SelectedIndexChanged - seems like a simple way to ID the row of interest and work on it. "seems" is the key word, because actually they made it hard to fire the event if you want to do anything different from the (ugly) way the control designers premade for you...&lt;br /&gt;&lt;br /&gt;what they &lt;strong&gt;want&lt;/strong&gt; you to do is use the "AutoGenerateEditButton" property to do the magic. funny they call it AutoGenerateEdit "Button" because it makes a URL looking link on the grid - not a button! then when you edit in the grid things jump around to fit the new fields that pop into the cells. looks awful.&lt;br /&gt;&lt;br /&gt;so what you have to do to fake it out (which I'd rather not have to do, but there you go) was revealed on a google group search &lt;a href="http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/6e29b371de01b72f/1cc4f3525b837f85?lnk=st&amp;q=autogenerateselectbutton&amp;amp;rnum=1&amp;hl=en"&gt;here&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;the trick is in Page_Load to add this code:&lt;br /&gt;&lt;code&gt;&lt;br /&gt;for (int i = 0; i++)&lt;br /&gt;{&lt;br /&gt;    GridView1.Rows[i].Attributes.Add("onclick",&lt;br /&gt;    ClientScript.GetPostBackEventReference(GridView1, "Select$" + i));&lt;br /&gt;}&lt;br /&gt; &lt;/code&gt;&lt;br /&gt;(sorry I haven't figured how to make code format right under html yet).&lt;br /&gt;also in the .aspx &lt;%@ Page... %&gt;directive you have to add a property not shown in VS: &lt;code&gt;EnableEventValidation="False"&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;it works, but yuck! next, can I tackle edit mode?...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-8057707362415316659?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/8057707362415316659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=8057707362415316659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/8057707362415316659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/8057707362415316659'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/07/aspnet-how-to-autogenerateselectbutton.html' title='asp.net: how to autoGenerateSelectButton on gridView manually...'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7839587483592502718.post-2733654367649069798</id><published>2007-07-08T16:12:00.000-07:00</published><updated>2007-07-08T16:16:54.861-07:00</updated><title type='text'>new blog!</title><content type='html'>I decided today to devote a blog to my adventures in coding -- maybe this will garner more interest than my other non-work-related personal musings. so yes, posts here will primarily relate to my real job.  stay tuned, ideas are gestating already!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7839587483592502718-2733654367649069798?l=fingernailsontheblackboard.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://fingernailsontheblackboard.blogspot.com/feeds/2733654367649069798/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7839587483592502718&amp;postID=2733654367649069798' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/2733654367649069798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7839587483592502718/posts/default/2733654367649069798'/><link rel='alternate' type='text/html' href='http://fingernailsontheblackboard.blogspot.com/2007/07/new-blog.html' title='new blog!'/><author><name>tomawesome</name><uri>http://www.blogger.com/profile/10670527457029826074</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://images.43things.com/profile/00/00/1a/6660xl.jpg'/></author><thr:total>0</thr:total></entry></feed>
