ImageServiceLayer - Initialize with secure URL (HTTPS) throws generic exception

Discussion created by Jamestown. on Feb 16, 2011
Latest reply on Nov 21, 2011 by wju-esristaff
I am trying to Initialize a new ImageServerLayer with a secure (HTTPS) URL, but it throws the generic exception: "Error HRESULT E_FAIL has been returned from a call to a COM component."

Below is the code I am using, and two different URLs, both services work, but only the unsecure (HTTP) one will connect.

Type shpWkspFactType = typeof(ImageServerLayerClass);
string typeClsID = shpWkspFactType.GUID.ToString("B");
IImageServerLayer imageserverlayer = (IImageServerLayer)pObjFactory.Create(typeClsID);

DOES work:        "http://AGSServer/arcgis/services/ISName/ImageServer"
DOES NOT work:  "https://AGSServer/arcgis/services/ISName/ImageServer"

(again, both services work, and I can manually add them via GIS Server connection in ArcMap, both Internet and LAN connections work)

Does anyone know how to connect to a secure ImageServiceLayer in ArcObjects?