WSManFault

WSManFault

Can anyone tell me the reason why I am getting the error "WSManFault.Code: SOAP-ENV:Sender WSManFault.SubCode: wsman:SchemaValidationError" The error occurs at the following code segment. It throws an exception.

--------------------------------------------------------------------------------------------------------

private AmtStorageStatus WSMAN_LockBlock(string SessionHandle, uint BlockHandle)
        {
            if (WsMan == null) return AmtStorageStatus.NO_WSMAN;

            try
            {
                AMT_ThirdPartyDataStorageService service = new AMT_ThirdPartyDataStorageService(WsMan);
                return (AmtStorageStatus)service.LockBlock(SessionHandle, BlockHandle);
            }
            catch (Exception e)
            {
                WSManException wsManException = e as WSManException;
                if (wsManException != null)
                {
                    AmtDebugForm.LogEvent(this, AmtDebugForm.EventType.CallFailed, "AmtStorageWrapper.WSMAN_LockBlock WSMAN error",
                    String.Format("WSMAN FaultrnCode: {0} (subcode: {1})rnDetail: {2}rnReason: {3}",
                    wsManException.WSManFault.Code.Value, wsManException.WSManFault.Code.Subcode.Value,
                    wsManException.WSManFault.Detail.Text, wsManException.WSManFault.Reason.Text));
                }
                CimException cimException = e as CimException;
                if (cimException != null)
                {
                    AmtDebugForm.LogEvent(this, AmtDebugForm.EventType.CallFailed, "AmtStorageWrapper.WSMAN_LockBlock CIM error",
                    String.Format("CIM FaultrnCode: {0} (subcode: {1})rnDetail: {2}rnReason: {3}",
                    cimException.CimFault.Code.Value, cimException.CimFault.Code.Subcode.Value,
                    cimException.CimFault.Detail.Text, cimException.CimFault.Reason.Text));
                }

                AmtDebugForm.LogEvent(this, AmtDebugForm.EventType.CallFailed, "AmtStorageWrapper.WSMAN_LockBlock",
                    String.Format("{0}rn{1}", e.Message, e.StackTrace));
                Debug.Print("EXCEPTION: {0} (type {1})", e.Message, e.GetType());
                Debug.Print("EXCEPTION STACK: {0}", e.StackTrace);

                throw; // ERROR OCCURS HERE

            }
        }

--------------------------------------------------------------------------------------------------------

1 contribution / 0 nouveau(x)
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.