Hans,<div><br></div><div>You probably have an older version on mapscript dll available in the PATH which is loaded at run time instead of the correct version.</div><div>Make sure mapscript_csharp.dll loads the proper version of mapscript.dll.</div>
<div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br><br><div class="gmail_quote">2013/3/20 Hans Wapenaar (GIS Innovations) <span dir="ltr"><<a href="mailto:hans.wapenaar@gis-innovations.nl" target="_blank">hans.wapenaar@gis-innovations.nl</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="NL" link="blue" vlink="purple"><div><p class="MsoNormal">Hi,<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am upgrading a website with MapServer 5.6 to 6.2.<u></u><u></u></p><p class="MsoNormal">Website was made in Visual Studio using MapScript. After some adjustments I got it running in Visual Studio. But when I publish the website on a server with IIS 7.5 the following error appears:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Error in initMapJ: System.TypeInitializationException: <u></u><u></u></p><p class="MsoNormal">The type initializer for 'OSGeo.MapServer.mapscript' threw an exception. ---> <u></u><u></u></p>
<p class="MsoNormal">System.EntryPointNotFoundException: Unable to find an entry point named 'CSharp_MS_LABEL_ALLOCSIZE_get' in DLL 'mapscript'.<u></u><u></u></p><p class="MsoNormal">   at OSGeo.MapServer.mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get()<u></u><u></u></p>
<p class="MsoNormal">   at OSGeo.MapServer.mapscript..cctor()<u></u><u></u></p><p class="MsoNormal">   --- End of inner exception stack trace ---<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
In initMapJ the mapObj is created/mapfile opened.<u></u><u></u></p><p class="MsoNormal">The error appears at moment that a layer object is read.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">
I have no idea where to look. I tried removing all label settings from the mapfile. But I thinks it something else.<u></u><u></u></p><p class="MsoNormal">Any suggestions/ideas?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thank, Hans Wapenaar<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></div><br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br></div>