none
CCF2009 with CCF Studio RRS feed

  • Question

  • When inspecting the user interface in CCF Studio (VS2005 with SP1) with the "Inspect UI" command an error message appears and the following text is written to the HAT section of the EventLog:

     

    Inspect UI UnableToInspectUI : Failed to inspect the Application UI.
    System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderApplication.Read4_Application()
       --- End of inner exception stack trace ---
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
       at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
       at Microsoft.Ccf.Tools.Hat.VsExtensions.Actions.Library.XmlHelper.GetObject[T](String filePath)
       at Microsoft.Ccf.Tools.Hat.VsExtensions.Actions.InterrogateUIAction.Execute()

     

    Any ideas?

    Wednesday, November 19, 2008 9:59 AM

All replies

  • This is a known bug in CCF 2009 and a rare occurent.

    The current work around is to restart the visual studio instance to resume.

     

    Do you get this consistently ? Can you please share the repro steps of this bug ?

    Wednesday, December 10, 2008 4:23 PM
  • The bug occurs sporadically, but if it occurs once it stays as long as the Visual Studio session and many commands in the context menu like "Inspect UI", "Deploy To Server" or "Show XML" fail.

    The error messages are varying, depending on the executed command. Here are two samples.

     

    Show XMLUnableToShowXml : Unable to display the Init String Xml.
    System.InvalidOperationException: There was an error generating the XML document. ---> System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Ccf.Tools.HostedApplicationTool.Utility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=4f00c1aa5320a4d9' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))

     

    Inspect UI UnableToInspectUI : Failed to inspect the Application UI.
    System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.IO.FileLoadException: Could not load file or assembly 'CcfHatVsExtensionsPackage, Version=1.0.3158.29298, Culture=neutral, PublicKeyToken=4f00c1aa5320a4d9' or one of its dependencies. Invalid pointer (Exception from HRESULT: 0x80004003 (E_POINTER))

     

    Thursday, December 11, 2008 10:17 AM