none
Form region manifest contains invalid XML on Outlook 2010 RRS feed

  • Question

  • Hi All,

    I have kind of a strange situation with my “replaceAll” form region. I have tested the form region with Outlook 2013 and 2016 and had no issues. However, when my add-in is installed on Outlook 2010, I get an error when the manifest is loaded.

    This is my XML.

    ?xml version="1.0" encoding="utf-8"?>
    <FormRegion xmlns="http://schemas.microsoft.com/office/12/outlook/formregion.xsd">
        <name>MyAddin</name>
        <formRegionType>replaceAll</formRegionType>
        <title>My Message</title>
        <showInspectorRead>true</showInspectorRead>
        <showReadingPane>true</showReadingPane>
        <showInspectorCompose>true</showInspectorCompose>
        <addin>myaddin.ext</addin>
    </FormRegion>
    
    

    This is the error

    Has anybody had this issue?

    Thanks,
    Tom

    Monday, July 2, 2018 10:25 PM

Answers

  • I found the issue. Different types for replace and replace - all . Yuck!

    2013 & 2016

    https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/dd492010(v=office.12)

    2010

    https://docs.microsoft.com/en-us/visualstudio/vsto/creating-outlook-form-regions#Adding


    • Edited by Thomas Lee3 Tuesday, July 3, 2018 10:05 PM
    • Proposed as answer by Terry Xu - MSFT Wednesday, July 4, 2018 3:20 AM
    • Marked as answer by Thomas Lee3 Wednesday, July 4, 2018 2:10 PM
    Tuesday, July 3, 2018 10:04 PM

All replies

  • The very first line is missing the opening < character for the comment.

    Also, have you tried encoding the xml as ascii instead of utf-8?

    • Edited by RLWA32 Monday, July 2, 2018 10:51 PM
    Monday, July 2, 2018 10:50 PM
  • Hello Tom,

    Why do you need to use a manifest file?

    It is an old way for creating form regions in Outlook. Instead, you may consider designing a new form region based on windows forms (user controls). See How to: Add a form region to an Outlook Add-in project for more information.

    BTW You need to use the formRegionName attribute instead of name. See Using the Form Region XML Manifest to Define a Form Region for more information.


    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers




    Monday, July 2, 2018 10:58 PM
  • No it has the < character there. Sorry, I missed that on the cut  paste.
    Tuesday, July 3, 2018 1:04 AM
  • Okay, I think I found the issue. :-(

    The formRegionType parameter only seems like it supports adjoining and separate for Outlook 2010

    When I specify replace or replaceAll I get the invalid XML error.

    Wow, that caught me by surprise.

    Is that a fact? Does anybody have any idea if there is another type for Outlook 2010?

    Tuesday, July 3, 2018 9:33 PM
  • I found the issue. Different types for replace and replace - all . Yuck!

    2013 & 2016

    https://docs.microsoft.com/en-us/previous-versions/office/developer/office-2007/dd492010(v=office.12)

    2010

    https://docs.microsoft.com/en-us/visualstudio/vsto/creating-outlook-form-regions#Adding


    • Edited by Thomas Lee3 Tuesday, July 3, 2018 10:05 PM
    • Proposed as answer by Terry Xu - MSFT Wednesday, July 4, 2018 3:20 AM
    • Marked as answer by Thomas Lee3 Wednesday, July 4, 2018 2:10 PM
    Tuesday, July 3, 2018 10:04 PM
  • Hello Thomas Lee3,

    I'm glad to hear that your issue has been resolved. I would suggest you mark your solution as answer so other developer who runs into the same issue will find the solution more efficiently.

    If you have any other issue, please feel free to post threads to let us know.

    Best Regards,

    Terry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, July 4, 2018 3:21 AM