mail-archives/mono-bugs/2010-October/104681.html

185 строки
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 645189] New: Assembly.LoadWithPartialName completely non-functional
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20645189%5D%20New%3A%20Assembly.LoadWithPartialName%0A%20completely%20non-functional&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="105553.html">
<LINK REL="Next" HREF="104683.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 645189] New: Assembly.LoadWithPartialName completely non-functional</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20645189%5D%20New%3A%20Assembly.LoadWithPartialName%0A%20completely%20non-functional&In-Reply-To="
TITLE="[Mono-bugs] [Bug 645189] New: Assembly.LoadWithPartialName completely non-functional">bugzilla_noreply at novell.com
</A><BR>
<I>Sat Oct 9 05:20:13 EDT 2010</I>
<P><UL>
<LI>Previous message: <A HREF="105553.html">[Mono-bugs] [Bug 645131] binding: NSUrlRequest.setValue
</A></li>
<LI>Next message: <A HREF="104683.html">[Mono-bugs] [Bug 645189] Assembly.LoadWithPartialName completely non-functional
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#104681">[ date ]</a>
<a href="thread.html#104681">[ thread ]</a>
<a href="subject.html#104681">[ subject ]</a>
<a href="author.html#104681">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=645189">https://bugzilla.novell.com/show_bug.cgi?id=645189</A>
<A HREF="https://bugzilla.novell.com/show_bug.cgi?id=645189#c0">https://bugzilla.novell.com/show_bug.cgi?id=645189#c0</A>
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: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">joe at mistachkin.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
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(
&quot;Microsoft.Build.Engine&quot;).GetName());
Console.WriteLine(Assembly.LoadWithPartialName(
&quot;Microsoft.VisualBasic&quot;).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
&lt;filename unknown&gt;: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: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="105553.html">[Mono-bugs] [Bug 645131] binding: NSUrlRequest.setValue
</A></li>
<LI>Next message: <A HREF="104683.html">[Mono-bugs] [Bug 645189] Assembly.LoadWithPartialName completely non-functional
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#104681">[ date ]</a>
<a href="thread.html#104681">[ thread ]</a>
<a href="subject.html#104681">[ subject ]</a>
<a href="author.html#104681">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>