[Mono-dev] Incorrect cultured SatelliteAssembly

Gert Driesen gert.driesen at telenet.be
Mon Dec 18 08:49:41 EST 2006


----- Original Message ----- 
From: "Armand du Plessis" <armand at dotnet.org.za>
To: <mono-devel-list at lists.ximian.com>
Sent: Monday, December 18, 2006 2:28 PM
Subject: [Mono-dev] Incorrect cultured SatelliteAssembly


> Hi,
>
> Came across a small problem when loading satellite assemblies for a
> specific Assembly.
>
>>From MSDN Assembly.GetSatelliteAssembly should throw
> System.IO.FileLoadException when the satellite assembly is found but
> the culture don't match ie. If U.S. English (en-us) satellite assembly
> is requested but culture "English" is found in the expected location
> (/en-us) then FileLoadException should be thrown instead of returning
> found assembly with incorrect culture.
>
> I've attached a test case for above mentioned scenario and a possible
> patch, however the patch will still causes the incorrect assembly to
> be loaded into the AppDomain which is different from behavior on
> Microsoft who don't load the assembly if the culture is incorrect. I
> assume a better place for this check would be in the LoadAssembly
> internal call?

I've submitted a bug report with patch (and corresponding unit tests) for 
this a while ago:

http://bugzilla.ximian.com/show_bug.cgi?id=79712

Still no approval though...

Gert 




More information about the Mono-devel-list mailing list