c# - The type initializer for 'OSGeo.MapGuide.MapGuideApiPINVOKE' threw an exception -
i'm developing web application on mapguide open source 2.5.2 64bit asp.net. when try create user session login.aspx page error:
the type initializer 'osgeo.mapguide.mapguideapipinvoke' threw exception
i using following code create session:
try { mapguideapi.mginitializewebtier (string.format ("{0} \ \ {1}", serverpath, "webconfig.ini")); var site = new mgsite (); site.open (new mguserinformation (username, userpassword)); var sessionid = site.createsession (); session.add ("mgsessionid", sessionid); return true; } catch (mgexception exmg) { this.lblmessage.text = exmg.message; }
does have ideas how fix it? don't found solutions on web. thanks
Comments
Post a Comment