Using C#: Unable to load DLL 'mapscript': The specified module could not be found.

Tamas Szekeres szekeres.tamas at FREEMAIL.HU
Fri Jan 20 14:53:53 PST 2006


It is highly recommended to compile MapServer and MapScript for yourself in
order to have full control over the code.

If you are targeting windows I suggest to compile MapServer and MapScript
(and all of the subsequent libraries) with the same development environment
ie VS2003, otherwise you may run into problems like

http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1476

The build process should be started at Visual Studio .NET command prompt by
using nmake -f makefile.vc at the mapserver and mapscript/csharp directory.
Otherwise you may have to use vcvars32.bat to set your VC environment variables.

Release (optimized) builds can be obtained by changing the compiler options
by editing nmake.opt and makefile.vc respectively.

I couldn't find out the compilation method for the files you mentioned, but
I suppose some of the recent issues like typemaps for gdBuffer were missing
during compilation.

You should be aware of the threading issues during the development
especially when creating ASP.NET applications.

I think it's time to work on a more detailed howto for c# including the
creation of the sample apps and debugging issues as well.


Tamas


On Fri, 20 Jan 2006 15:09:32 +0100, Eduard Witteveen
<e.witteveen at HAWARIT.COM> wrote:

>Tamas Szekeres wrote:
>> I recommend that all of the dll-s belonging to your app. to be placed into
>> your application's directory ie bin/Debug due to avoid further problems. It
>> is not alien from the philosophy of the .NET stuff.
>Which version is the best version to use  for .NET development?
>
>http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_6/full.zip
>didn't work for me, however
>http://hobu.stat.iastate.edu/mapserver/mapserver/build_output/4_6/debug.zip
>  worked without any problems.
>
>(is there also a release build of this version?)
>
>Thanks for all the quick responses! I can now continue development!
>
>--
>Ing. Eduard Yeb Witteveen           Software Engineer
>Hawar Information Technology bv   lid Dijkoraad Groep
>De Wymerts 7  8701 WT                        Bolsward
>Tel: +31 (0)515 570333         Fax: +31 (0)515 570335
>http://www.hawarit.com/             nl_NL fy_NL en_US



More information about the MapServer-users mailing list