[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
https://bugzilla.novell.com/show_bug.cgi?id=645189
https://bugzilla.novell.com/show_bug.cgi?id=645189#c0
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:1.9.2.10)
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)
{
Console.WriteLine(Assembly.LoadWithPartialName(
"Microsoft.Build.Engine").GetName());
Console.WriteLine(Assembly.LoadWithPartialName(
"Microsoft.VisualBasic").GetName());
}
}
}
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=3.5.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
--
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