Hi, Thanks to your response. I put in dispose all the Mg elements, after using them, and I still got the error at the siteconnection open. I have this code running at a MapServer Infrastructure 2017 without a problem (and not disposing Mg classes). Any thoughts ? -- Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html