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) <[email protected]> > 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 > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
