Share via


Problem adding AppDomains in the manifest of an outlook addin

Question

Thursday, May 26, 2016 7:03 PM

Hello,

We are developing an Outlook Addin in pure html and javascript and are using the manifest created by 'yo'.

Everything works fine when trying to add and use the add-in as a custom add in by loading the manifest from the URL.

However when we add the AppDomains element to specify which domains the add-in can navigate to, the add-in is not being accepted.

This is our manifest with the AppDomains:

http://www.kwiltapp.com/download/manifest-kwilt.xml

The error is:

"This app can't be installed. The manifest file doesn't conform to the schema definition. The element 'OfficeApp' in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1' has invalid child element 'AppDomains' in namespace 'http://schemas.microsoft.com/office/appforoffice/1.1'. List of possible elements expected: any element in namespace 'http://www.w3.org/2000/09/xmldsig#'..."

All replies (4)

Friday, May 27, 2016 6:46 AM ✅Answered | 2 votes

Hi imecoltd,

>> are using the manifest created by 'yo'.

How did you create this manifest? In my option, I would suggest you use the Manifest Designer to set or modify one or more of the properties.

As my test, it seems the xml element might be invalid when xml elements in a wrong order.

I suggest you try below manifest.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<OfficeApp xsi:type="MailApp" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/office/appforoffice/1.1">
  <Id>45774c5b-f7a6-4593-bd71-66279cb54444</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>MyAddin</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="MyAddin"/>
  <Description DefaultValue="My Outlook Addin"/>
  <IconUrl DefaultValue="https://localhost/images/kwilt_icon_64x64.png"/>
  <HighResolutionIconUrl DefaultValue="https://localhost/images/kwilt_icon_128x128.png"/>
  <SupportUrl DefaultValue="http://www.kwilt.it/community"/>  
  <AppDomains>
    <AppDomain>https://accounts.kwilt.it</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Mailbox"/>
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="MailBox" MinVersion="1.1"/>
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost/msoffice/outlook/appcompose/home/home.html"/>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="ItemIs" FormType="Edit" ItemType="Message"/>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
  <VersionOverrides xsi:type="VersionOverridesV1_0" xmlns="http://schemas.microsoft.com/office/mailappversionoverrides"> </VersionOverrides>
</OfficeApp>

Best Regards,

Edward

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, May 31, 2016 5:46 AM ✅Answered

Hi,

You can also use "Office App Compatibility Kit" to verify your manifest file for any possible or unknown error.

Following is the link to download:(Read the install instruction tab for help running this)

https://www.microsoft.com/en-us/download/details.aspx?id=46831

Regards,
Pallav


Friday, May 27, 2016 2:21 PM

That was the problem. The order!

Having AppDomains at the end was not acceptable. Moving it to after 'SupportURL' fixed the problem.

Thank you.


Monday, May 30, 2016 2:52 AM

Hi imecoltd,

If your issue has been resolved, I would suggest you mark the helfpul reply as answer to close this thread, and then others who run into the same issue would find the solution easily.

Best Regards,

Edward

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.