[Mono-bugs] [Bug 645189] New: Assembly.LoadWithPartialName completely non-functional

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 9 05:20:13 EDT 2010



           Summary: Assembly.LoadWithPartialName completely non-functional
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: x86
        OS/Version: Windows 7
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: joe at mistachkin.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
Gecko/20100914 Firefox/3.6.10

Using the Assembly.LoadWithPartialName method seems to always fail.  This seems
to have something to do with how the GAC is implemented in 2.8.  In 2.6.7 this
functionality worked just fine.

Reproducible: Always

Steps to Reproduce:
1. Compile and run the following C# code:

using System;
using System.Reflection;

namespace ConsoleApplication1
    class Program
        static void Main(string[] args)


Actual Results:  
The LoadWithPartialName calls return false, causing this exception:

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at ConsoleApplication1.Program.Main (System.String[] args) [0x00000] in
<filename unknown>:0

Expected Results:  
With the .NET Framework 3.5:

Microsoft.Build.Engine, Version=, Culture=neutral,
Microsoft.VisualBasic, Version=, Culture=neutral,

Configure bugmail: https://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.

More information about the mono-bugs mailing list