[Mono-bugs] [Bug 402182] Missing referenced assembly causes FileNotFoundException

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Jun 21 19:25:50 EDT 2008


User kobruleht2 at hot.ee added comment

--- Comment #2 from andrus moor <kobruleht2 at hot.ee>  2008-06-21 17:25:48 MDT ---
1. Create assembly entityextension.dll containing code:

public class Extension

2. Create second assembly containing code:

public class Business
    class Test : Extension { }

3. Create third assembly containing code:

using System.IO;
using System.Reflection;

class Program
    static void Main()
        var res = Assembly.GetAssembly(typeof(Business)).GetTypes();

4. Run third assembly using command

mono main.exe 2>t


Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'entityextension, Version=, Culture=neutral' or one of its


System.Reflection.ReflectionTypeLoadException should occur.

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