[Mono-bugs] [Bug 377692] New: Assembly. CodeBase is broken when assemblies are shadow-copied (at least in an asp. net environment)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Apr 7 14:19:29 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=377692
Summary: Assembly.CodeBase is broken when assemblies are shadow-
copied (at least in an asp.net environment)
Product: Mono: Runtime
Version: 1.9.0
Platform: PowerPC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: johannes at jroith.de
QAContact: mono-bugs at lists.ximian.com
Found By: ---
When assemblies are shadow-copied (as is the case in ASP.NET) Assembly.CodeBase
should return the original path before the copy was made. Assembly.Location
should return the new path. (In ASP.NET that means, that Assembly.CodePath
should return the path of the assembly in the /Bin directory.)
In Mono both properties point to the copy.
To reproduce this, compile an assembly containing this:
using System;
using System.Reflection;
class Test {
public Test () {
Console.WriteLine ("codebase:" + Assembly.GetExecutingAssembly
().CodeBase);
Console.Writeline ("location:" + Assembly.GetExecutingAssembly
().Location);
}
}
and put it in the /Bin directory. Add <% new Test (); %> to a page and take a
look at the console output.
--
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