[mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get'

Hans Wapenaar (GIS Innovations) hans.wapenaar at gis-innovations.nl
Wed Mar 20 07:56:24 PDT 2013


Hi Tamas,

 

Thanks for your reaction. 

You were right that there was some kind of conflict in versions.

But not with the PATH setting. On my server configuration it is required to use that.

 

Problem was in the temporary files. I used a site that contained the old mapscript version before, The dotNet framework creates temporary files and directories for a website. Probably the mapscript dll’s were not automatically replaced in the temp dirs also not after resetting the website. 

Removing the temp dirs solved the issue. As simple as that!

 

Thanks,  Hans

 

Van: Tamas Szekeres [mailto:szekerest at gmail.com] 
Verzonden: woensdag 20 maart 2013 12:49
Aan: Hans Wapenaar (GIS Innovations)
CC: mapserver-users at lists.osgeo.org
Onderwerp: Re: [mapserver-users] MapScript EntryPointNotFoundException 'CSharp_MS_LABEL_ALLOCSIZE_get'

 

Hans,

 

You probably have an older version on mapscript dll available in the PATH which is loaded at run time instead of the correct version.

Make sure mapscript_csharp.dll loads the proper version of mapscript.dll.

 

Best regards,

 

Tamas

 

 

2013/3/20 Hans Wapenaar (GIS Innovations) <hans.wapenaar at gis-innovations.nl>

Hi,

 

I am upgrading a website with MapServer 5.6 to 6.2.

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:

 

Error in initMapJ: System.TypeInitializationException: 

The type initializer for 'OSGeo.MapServer.mapscript' threw an exception. ---> 

System.EntryPointNotFoundException: Unable to find an entry point named 'CSharp_MS_LABEL_ALLOCSIZE_get' in DLL 'mapscript'.

   at OSGeo.MapServer.mapscriptPINVOKE.MS_LABEL_ALLOCSIZE_get()

   at OSGeo.MapServer.mapscript..cctor()

   --- End of inner exception stack trace ---

 

In initMapJ the mapObj is created/mapfile opened.

The error appears at moment that a layer object is read.

 

I have no idea where to look. I tried removing all label settings from the mapfile. But I thinks it something else.

Any suggestions/ideas?

 

Thank, Hans Wapenaar

 


_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130320/cac094a0/attachment.htm>


More information about the MapServer-users mailing list