[Mono-bugs] [Bug 458624] New: <codeBase> in app.config file is ignored
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Dec 12 05:55:40 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=458624
Summary: <codeBase> in app.config file is ignored
Product: Mono: Runtime
Version: 2.0.x
Platform: x86-64
OS/Version: Ubuntu
Status: NEW
Severity: Major
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: eb1 at sil.org
QAContact: mono-bugs at lists.ximian.com
Found By: Customer
Created an attachment (id=259636)
--> (https://bugzilla.novell.com/attachment.cgi?id=259636)
App that demonstrates the problem
Redirecting an assembly in the application configuration file with the
<codeBase> tag doesn't work with Mono.
The attached files demonstrate the problem:
- AssemblyOne.dll contains a class MyClass with a method DoIt() that prints the
text "This is AssemblyOne".
- AssemblyOne.new.dll simulates a different version of AssemblyOne.dll. It is
identical except that it prints "This is the new AssemblyOne".
- AssemblyRedirect.exe just calls MyClass.DoIt().
- AssemblyRedirect.exe.config redirects AssemblyOne to AssemblyOne.new.dll:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AssemblyOne"/>
<codeBase version="1.0.0.0" href="AssemblyOne.new.dll"
/>
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
The expected behavior is the output of "This is the new AssemblyOne" and this
is exactly what you get with Microsofts .NET on Windows.
If I run the test app on Mono the output is "This is AssemblyOne".
--
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