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: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to