<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic WSManFault in Intel® Business Client Software Development</title>
    <link>https://community.intel.com/t5/Intel-Business-Client-Software/WSManFault/m-p/798960#M656</link>
    <description>Can anyone tell me the reason why I am getting the error &lt;STRONG&gt;"WSManFault.Code: SOAP-ENV:Sender WSManFault.SubCode: wsman:SchemaValidationError" &lt;/STRONG&gt;The error occurs at the following code segment. It throws an exception.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;--------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/STRONG&gt;&lt;PRE&gt;[csharp]&lt;STRONG&gt;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 Fault\r\nCode: {0} (subcode: {1})\r\nDetail: {2}\r\nReason: {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 Fault\r\nCode: {0} (subcode: {1})\r\nDetail: {2}\r\nReason: {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}\r\n{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

            }
        }&lt;/STRONG&gt;[/csharp]&lt;/PRE&gt;&lt;BR /&gt;&lt;STRONG&gt;--------------------------------------------------------------------------------------------------------&lt;/STRONG&gt;</description>
    <pubDate>Mon, 27 Jun 2011 06:59:15 GMT</pubDate>
    <dc:creator>kalpah</dc:creator>
    <dc:date>2011-06-27T06:59:15Z</dc:date>
    <item>
      <title>WSManFault</title>
      <link>https://community.intel.com/t5/Intel-Business-Client-Software/WSManFault/m-p/798960#M656</link>
      <description>Can anyone tell me the reason why I am getting the error &lt;STRONG&gt;"WSManFault.Code: SOAP-ENV:Sender WSManFault.SubCode: wsman:SchemaValidationError" &lt;/STRONG&gt;The error occurs at the following code segment. It throws an exception.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;--------------------------------------------------------------------------------------------------------&lt;BR /&gt;&lt;/STRONG&gt;&lt;PRE&gt;[csharp]&lt;STRONG&gt;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 Fault\r\nCode: {0} (subcode: {1})\r\nDetail: {2}\r\nReason: {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 Fault\r\nCode: {0} (subcode: {1})\r\nDetail: {2}\r\nReason: {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}\r\n{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

            }
        }&lt;/STRONG&gt;[/csharp]&lt;/PRE&gt;&lt;BR /&gt;&lt;STRONG&gt;--------------------------------------------------------------------------------------------------------&lt;/STRONG&gt;</description>
      <pubDate>Mon, 27 Jun 2011 06:59:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Business-Client-Software/WSManFault/m-p/798960#M656</guid>
      <dc:creator>kalpah</dc:creator>
      <dc:date>2011-06-27T06:59:15Z</dc:date>
    </item>
  </channel>
</rss>

