[Mono-list] Question on Compatibility

Stapleton, Steven stapleton.41 at osu.edu
Mon Aug 29 10:16:38 EDT 2011


From: mono-list-bounces at lists.ximian.com [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan
Sent: Friday, August 26, 2011 10:29 AM
>>>> I have a project written in Visual Studio 2010, using the .NET
>>>> 4.0
>>>> client framework. The executable it produces does not run/open in 
>>>> Mono. I then open the project in MonoDevelop (2.4), keep the same 
>>>> runtime target, set up the command lines I need in the environment, 
>>>> and build the project. This runs just fine.
>>>
>>> Please specify "does not/run open".
>>>
>>> Robert
>>
>> Sorry, I should have known better.
>>
>> Here's the error:
>> 	Unhandled Exception: System.TypeLoadException: Could not load type
>> 	'PluginProgram.Program' from assembly 'PluginTestProgram, Version=1.0.0.0,
>> 	Culture=neutral, PublicKeyToken=null'. 
>
> Check the casing of PluginTestProgram.exe. 
>
> Robert

Thanks, the cases matched, but the assemblies 'dll' name did not match the top level namespace encased. When I changed the namespace to PluginTestProgram to match the project and dll name, this fixed the problem.

-Jim Stapleton


More information about the Mono-list mailing list