I am using DCOM in VB. Importing mschart 8 in powerpoint slide using OLE. It works fine when server is in logged on mode but if server restarts or no body is logged on I got this error.

"Application-defined or object-defined error"

what I understands it fails at some windows 2000 service, but unable to determine which service is this.

For reference the line where it gives me the error is

Set shpGraph = ppslide.Shapes.AddOLEObject(160, 250, 480, , "MSGraph.Chart", , msoFalse, , , , 0).OLEFormat.object

shpGraph.ApplyCustomType 22, "3Lines1Bar"
FndGraph = True