[mapserver-users] How I solve This Exception

Mustafa646 noorcs22 at gmail.com
Sun Feb 20 08:05:53 EST 2011


I am using C# MapScript in ASP.Net Application.
I am getting an exception at this line:

mapObj map = new
mapObj(System.Configuration.ConfigurationManager.AppSettings["mapFilePath"].ToString());

Exception: 

The type initializer for 'OSGeo.MapServer.mapscriptPINVOKE' threw an
exception.

Can anybody have an idea about this, what is wrong ?

this is code of a sample application from:

http://www.paolocorti.net/2006/07/26/implementing-the-c-mapscript-code/

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/How-I-solve-This-Exception-tp6045646p6045646.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list