TargetInvocationException usually wraps the true error, so if your code is handling the exception take a peek at its InnerException. - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/mg-desktop-and-adding-layers-tp5207736p5207737.html Sent from the MapGuide Users mailing list archive at Nabble.com.