[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
https://bugzilla.novell.com/show_bug.cgi?id=402182
User kobruleht2 at hot.ee added comment
https://bugzilla.novell.com/show_bug.cgi?id=402182#c2
--- 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()
{
File.Delete("entityextension.dll");
var res = Assembly.GetAssembly(typeof(Business)).GetTypes();
}
}
4. Run third assembly using command
mono main.exe 2>t
Observed:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or
assembly 'entityextension, Version=1.0.0.0, Culture=neutral' or one of its
dependencies.
Expected:
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