http://bugzilla.novell.com/show_bug.cgi?id=589771
http://bugzilla.novell.com/show_bug.cgi?id=589771#c0 Summary: Runtime ignores assembly version when loading from GAC with full assembly name Classification: Mono Product: Mono: Runtime Version: SVN Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: misc AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- Created an attachment (id=349530) --> (http://bugzilla.novell.com/attachment.cgi?id=349530) test_case.tar.bz2 To run the attached test case on .NET, you need to install the included Npgsql.dll into GAC. NET run: C:\temp>gacutil /l Npgsql Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30128.1 Copyright (c) Microsoft Corporation. All rights reserved. The Global Assembly Cache contains the following assemblies: Npgsql, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7, pro cessorArchitecture=MSIL Number of items = 1 C:\temp>test Environment version: 4.0.30128.1 Requesting assembly: Npgsql, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5d 8b90d52f46fda7 Got exception: System.IO.FileNotFoundException: Could not load file or assembly 'Npgsql, Versio n=2.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' or one of its depen dencies. The system cannot find the file specified. File name: 'Npgsql, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f4 6fda7' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String cod eBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppre ssSecurityChecks) at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String code Base, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& s tackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppres sSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName as semblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntr ospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evid ence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) at System.Reflection.Assembly.Load(String assemblyString) at a.Main(String[] args) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\M icrosoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure lo gging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fus ion!EnableLog]. ------------------------------------------- Mono run: gren...@quantum:/tmp/t$ gacutil /l Npgsql The following assemblies are installed into the GAC: Npgsql, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7 Number of items = 1 gren...@quantum:/tmp/t$ mono --debug test.exe Environment version: 4.0.21006.1 Requesting assembly: Npgsql, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7 Got assembly: Npgsql, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
