Sunday, April 26, 2009

Saturday, April 25, 2009

Amy and David Goodman: Standing Up to the Madness

In which three Connecticut librarians take on the Bush administration.

Thursday, April 23, 2009

Houston, We Have A Solution

From Andy Cobb.

Tuesday, April 21, 2009

Give it up, Norm

Can you say "two-faced?"

Sunday, April 19, 2009

What Would Jesus NOT Do?

And here's a helpful link to Deuteronomy 28:20-55 (referenced herein).

Saturday, April 18, 2009

"This is about racism."

Janeane Garofalo visits with Keith Olbermann.

Friday, April 17, 2009

Baptist pastor beaten and tasered by Border Patrol

Whatever your political beliefs, you'd have to agree the events described by pastor Steven L. Anderson were despicable. He deserves an apology and restitution from the uniformed thugs who he alleges beat, mocked, and tasered him under color of law. The charges should be proven, and the peace officers involved ought to be prosecuted, in a court of law.

Pastor Steve's political, religious, and social beliefs happen to be at odds with mine (see here and here). So what. No one should be treated like this.

Wednesday, April 15, 2009

Susan Boyle sings "I DREAMED A DREAM"

From "Britain's Got Talent," 11 April 2009.

From the poster's commentary at the YouTube site:

Susan first appeared ... declaring that she is a single woman who lives with her cat. Not only has she never been married but she also admitted that she had never even been kissed.

Susan looked like your typical batty old aunt, gold dress and all and when she walked on to stage you could just feel the scorn of the audience. Simon Cowell didnt look too hopeful when Susan said she wanted to be a professional singer like Elaine Paige and when she said she would be singing I Dreamed a Dream from Les Miserables.

Video embedding is disabled, but here's the link.

Friday, April 10, 2009

Iowa state Senator Mike Gronstal blocks amendment to reverse Iowa marriage equality

Senator Gronstal's response to Senate Minority Leader Paul McKinley of Chariton on April 6, 2009, the first day the Senate met after the unanimous decision by the Iowa Supreme Court to allow same sex couples to marry.

Thursday, April 2, 2009

Why I am starting to prefer Linux - reason #463

A long time ago Microsoft made compact, easy-to-use, relatively bug-free software with an understandable API (applications programming interface). I keep trying to bear this fact in mind as I peruse the following, searching for a clue as to what it's about.

Source: http://blogs.msdn.com/chaun/archive/2009/04/02/a-slippery-system-io-fileloadexception.aspx


A Slippery System.IO.FileLoadException

After installing the framework 3.5 SP1 (kb 951847) (which also updates framework 2.0) an asp.net web app occasionally began throwing the following exception, as reported by their custom error page:

An error occurred attempting to process your request. Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) MyCustomDll.MyCustomDllat MyCustomDll.MyCustomDll.

This should be a System.IO.FileLoadException, but there never seemed to be any record of the System.IO.FileLoadException.  It didn't even show up in the application event log as expected:

Event Type:     Warning
Event Source:  ASP.NET 2.0.50727.0
Event Category:          (3)
Event ID:          1309
Description:
Event code: 3005
Event message: An unhandled exception has occurred.
Process name: w3wp.exe
Exception type: Exception
Exception message: An error occurred attempting to process your request.
Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
 
Request information:
    Request URL: <https://www.mysite.com:443/Application/Jobs/CustomStuff.aspx?
    Request path: /APPLICATION/Jobs/CustomStuff.aspx
Thread information:
   Stack trace:    at MyCustomDll.MyCustomDll.CustomStuff.updateButton_Click(Object sender, EventArgs e)
   at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
   at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
   at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 

Getting the dump of the w3wp.exe at the right time was impossible at first. We couldn't dump on CLR exception with a DebugDiag 1.1 crash rule because instead of the expected System.IO.FileLoadException was showing up as a ',' rather than a 'System.IO.FileLoadExeception' according to the debugdiag crash rule log file.  It continued to show up as a “blank exception” in the debugdiag log.txt files (made by a crash rule) until the customer installed the updates-to-3.5-sp1 (KB959209 = KB958481/KB958483/KB958484).  After those updates Debugdiag was able to trip a dump when the System.IO.FileLoadException was thrown:

 

Exception type: System.IO.FileLoadException
Message: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)
InnerException: <none>

The dump showed that the web application was initializing a class in a GAC'd assembly ("C:\WINDOWS\assembly\GAC\MyCustomDLL\1.0.530.2__26fddaf73a962ee0\MyCustomDLL.Integration.Export.dll") and also showed that somehow this assembly has a different "SecurityDescriptor" in the "Shared Domain."  The calling assembly MyCustomDLL.Base.DLL is not present in GAC and so it gets loaded in LoadFrom loader context. Now when calling assembly tries to load the assembly MyCustomDLL.Integration.Export.dll, fusion sees that it is GACed and  already loaded in Load Context as a domain neutral assembly.

So far I know of two workarounds to this issue:

1)   Remove the called assembly MyCustomDLL.Integration.Export.dll and its dependency MyCustomDll.Data.dll from GAC so that it does not get loaded as domain-neutral in load context
 

or

2)   Move the calling assembly to GAC so that it also gets loaded in Load Context.