[Mono-list] dll with same name causes missing method exceptions (mono 0.91)

Dolapo M Falola dolapo@minivishnu.net
Tue, 25 May 2004 21:40:35 -0500


I believe this is the expected behavior. My initial problem was not 
looking at assemblies as first class objects but more like jars.
I installed MS .net 1.1 sdk on my windows box and ran the same test. 
This is the output I get:
Unhandled Exception: System.TypeLoadException: Could not load type 
Namespace.A.ClassA from assembly ClassB, Version=0.0.0.0, 
Culture=neutral, PublicKeyToken=null.
at Namespace.B.ClassB.Main()

Hope this helps.

Erik Pukinskis wrote:
>>Executing: mono ClassB.exe
>>yields:
>>** (ClassB.exe:32278): WARNING **: Could not load class from token 
>>0x01000002 in /home/dolapo/code/diffname/ClassB.exe
>>
>>** (ClassB.exe:32278): WARNING **: Missing method .ctor in assembly 
>>/home/dolapo/code/diffname/ClassB.exe typeref index 2
>>
>>Unhandled Exception: System.NullReferenceException: A null value was 
>>found where an object instance was required.
>>in (unmanaged) Namespace.B.ClassB:Main ()
> 
> 
> 
> I've been having the exact same problem, and can't figure it out:
> 
>   http://lists.ximian.com/archives/public/mono-list/2004-May/020577.html
> 
> I thought it was just a problem with my build environment, but maybe
> it's a bug with the beta.  Perhaps one of us should file it in bugzilla.
> 
> Erik
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list