mapping.MapDocument("CURRENT") With A published Geoprocessing Tool.

Discussion created by valleyman86 on Jun 3, 2011
Latest reply on Jun 7, 2011 by valleyman86
Ok so I have some code that works great via a local toolbox. If I publish the tool to a server I get an error during runtime. The error I get is "Object: CreateObject cannon open map document". Now I read that the "CURRENT" keyword can only be used in a tool that is always running in foreground which leads me to believe this won't work at all for a server side geoprocessing tool. If this is the case what is the best way to get around this? We would like to add a layer to the current map document.

Thanks in advance.