MapReader Open() fails with "The document contains secure (password-protected) layers

Discussion created by spiskulaesriuk-esridist Employee on Feb 27, 2012
Latest reply on Mar 12, 2012 by Neil
Hi All

I am trying to open a MXD file that has layer from secured map service. Whenever i try to do that i get the error:

"The document contains secure (password-protected) layers.???  just after calling .Open() method on the MapReaderClass class. Is there any way to achieve that ? Is it possible to somehow pass some missing credentials and open that document?