[mapguide-users] security exception webconfig.ini

william MGOS mgoslist at gmail.com
Thu Nov 1 05:26:05 EDT 2007


Hi,

i created an IIS webapplication and created a page. In the load event
of the page I put this.  The file exists, so mgInitializeWebTier is
called. Now it throws an exception. What could this be?

System.Security.SecurityException:
System.Security.Permissions.SecurityPermission
   at MapGuideApi.MgInitializeWebTier(String configFile)


 string filename;

            filename = Server.MapPath("webconfig.ini");

try{

            if (File.Exists(filename))
            {
                MapGuideApi.MgInitializeWebTier(filename);
            }
}catch(Exception ex)
{

}


More information about the mapguide-users mailing list