[Mono-list] Exception with DllMap on Windows

Robert Jordan robertj at gmx.net
Fri Apr 23 09:24:02 EDT 2010


On 23.04.2010 15:20, Dimitar Dobrev wrote:
>
> Hi. I am trying to use DllMap on Windows. I specified a<dllmap />  element
> under<configuration />  in MyApp.exe.config but the .NET Framework 2.0
> throws a ConfigurationErrorsException: "Configuration system failed to
> initialize"<- "Unrecognized configuration section dllmap.". I do not want
> to use the config file of Mono for the purpose. In this case, is it at all
> possible to use DllMap and if so, how?

<dllmap/> is a Mono extension. You cannot use it under MS.NET.
You should declare your p/invokes the Windows way (foobar.dll)
and only employ a dllmap under OSes != Windows.

Robert




More information about the Mono-list mailing list