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

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -