[mono-android] Creating a type from another assembly by name

Konaju Games (Dev) dev at konaju.com
Mon Feb 13 05:44:27 UTC 2012


Your tips got me to the root of the problem.  The DLL name was missing a
character from when I created the Android version of the Windows Phone
project.

*facepalm*

Thanks for your help.

Steve 'Sly' Williams

On 13 February 2012 11:41, Brannon King <notacommie at gmail.com> wrote:

>
> Is there any trick or extra bit I should be doing in order to instantiate
>> a class from another assembly?
>>
>
> Did you try loading the assembly directly with a call to
> Assembly.LoadFrom("Game.Data.dll") ? And I assume Game.Data.dll is the GAC
> or the same path as your executable? Assuming the assembly does load, you
> might try printing out the list of types from assembly.GetTypes() to see if
> the type you're trying to load really does exist there. Another thing to do
> is add event handlers to AppDomain.Current.TypeResolve/AssemblyResolve and
> see what goes through them on your call. Do you possibly have multiple
> versions of that DLL floating around? Sometimes there will be an old file
> hanging around that gets loaded. Assembly.Location might help you in that
> situation.
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120213/77f2eadc/attachment-0001.html>


More information about the Monodroid mailing list