mail-archives/mono-bugs/2008-September/079562.html

183 строки
4.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 427030] New: Assembly.LoadFile loads attributes directly
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20427030%5D%20New%3A%20Assembly.LoadFile%20loads%20attributes%0A%09directly&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="079561.html">
<LINK REL="Next" HREF="079563.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 427030] New: Assembly.LoadFile loads attributes directly</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20427030%5D%20New%3A%20Assembly.LoadFile%20loads%20attributes%0A%09directly&In-Reply-To="
TITLE="[Mono-bugs] [Bug 427030] New: Assembly.LoadFile loads attributes directly">bugzilla_noreply at novell.com
</A><BR>
<I>Wed Sep 17 12:54:52 EDT 2008</I>
<P><UL>
<LI>Previous message: <A HREF="079561.html">[Mono-bugs] [Bug 368664] Create null encoders
</A></li>
<LI>Next message: <A HREF="079563.html">[Mono-bugs] [Bug 427030] Assembly.LoadFile loads attributes directly
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#79562">[ date ]</a>
<a href="thread.html#79562">[ thread ]</a>
<a href="subject.html#79562">[ subject ]</a>
<a href="author.html#79562">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=427030">https://bugzilla.novell.com/show_bug.cgi?id=427030</A>
Summary: Assembly.LoadFile loads attributes directly
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Blocker
Priority: P5 - None
Component: misc
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">msafar at novell.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
This simple apps shows the problem
using System;
using System.Reflection;
class C
{
public static void Main (string[] args)
{
foreach (string s in args)
Assembly.LoadFrom (s);
}
}
When executed like: app.exe ../test/bug.dll
and bug.dll has an attribute which is defined in separate assembly Mono crashes
with but works fine on .NET
mono bug-load.exe ../tests/dlls/test-679-1/test-679-lib.dll
** (bug-load.exe:7965): WARNING **: The following assembly referenced from
/svn/mcs/tests/dlls/test-679-1/test-679-lib.dll could not be loaded:
Assembly: test-679-lib-2 (assemblyref_index=1)
Version: 0.0.0.0
Public Key: (none)
The assembly was not found in the Global Assembly Cache, a path listed in the
MONO_PATH environment variable, or in the location of the executing assembly
(/svn/mcs/tests/dlls/test-679-1/).
** (bug-load.exe:7965): WARNING **: Could not load file or assembly
'test-679-lib-2, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one
of its dependencies.
** (bug-load.exe:7965): WARNING **: Missing method .ctor in assembly
/svn/mcs/tests/dlls/test-679-1/test-679-lib.dll, type LibAAttribute
** (bug-load.exe:7965): WARNING **: Can't find custom attr constructor image:
/svn/mcs/tests/dlls/test-679-1/test-679-lib.dll mtoken: 0x0a000005
--
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="079561.html">[Mono-bugs] [Bug 368664] Create null encoders
</A></li>
<LI>Next message: <A HREF="079563.html">[Mono-bugs] [Bug 427030] Assembly.LoadFile loads attributes directly
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#79562">[ date ]</a>
<a href="thread.html#79562">[ thread ]</a>
<a href="subject.html#79562">[ subject ]</a>
<a href="author.html#79562">[ 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>