Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 安装时OfficeApp清单权限元素失败_Xml_Outlook_Office Js - Fatal编程技术网

Xml 安装时OfficeApp清单权限元素失败

Xml 安装时OfficeApp清单权限元素失败,xml,outlook,office-js,Xml,Outlook,Office Js,上载我的OfficeApp清单以安装到Outlook加载项时,出现以下错误: '无法读取邮箱的应用程序列表,原因如下://owe1\u 1:Permissions元素ReadWriteDocument的值无效。。 好的 如果我的许可是: <Permissions>ReadWriteDocument</Permissions> 提供的OfficeApp清单示例不符合Outlook加载项的架构。虽然该示例确实更新了ReadWriteEmailBox的权限,但与Outlo

上载我的OfficeApp清单以安装到Outlook加载项时,出现以下错误:

'无法读取邮箱的应用程序列表,原因如下://owe1\u 1:Permissions元素ReadWriteDocument的值无效。。 好的

如果我的许可是:

  <Permissions>ReadWriteDocument</Permissions>

提供的OfficeApp清单示例不符合Outlook加载项的架构。虽然该示例确实更新了ReadWriteEmailBox的权限,但与Outlook和Word manifest之间还有其他区别。我已经更新了示例,因此它将为Outlook安装。对xsi:type、需求、主机名和FormSettings的包含进行了一些更新。有关如何为Outlook加载项构造清单的详细信息,请访问


da977793-c2c9-41e3-86f9-27c6889cf9e5
1.0.0.0
[提供商名称]
恩美
450
读写项目
假的

注意:此处提供的示例不包括将外接程序提交到应用商店所需的版本覆盖部分以及我们对所有Outlook外接程序的建议。

那么我可以创建一个同时适用于Word和Outlook的项目吗?否Word和Outlook不能使用相同的xml清单。此外,两个应用程序之间可用的Office.JS API也不同。感谢您的回复,因此创建一个同时使用这两个应用程序的项目的最佳方法是OfficeApp one和创建其他清单文件,以便我有两个清单文件,每个清单文件一个?你能给我推荐其他的解决方案吗?没错。由于两个应用程序使用不同的API,您将需要两个单独的清单和项目
  <Permissions>ReadWriteMailbox</Permissions>
<?xml version="1.0" encoding="UTF-8"?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="TaskPaneApp">
  <Id>da977793-c2c9-41e3-86f9-27c6889cf9e5</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>[Provider name]</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="OfficeApp1" />
  <Description DefaultValue="OfficeApp1"/>
  <IconUrl DefaultValue="~remoteAppUrl/Images/taskpane_32x.png" />
  <Hosts>
    <Host Name="Document" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="DocumentEvents" MinVersion="1.1" />
      <Set Name="File" MinVersion="1.1" />
      <Set Name="Selection" MinVersion="1.1" />
      <Set Name="Settings" MinVersion="1.1" />
      <Set Name="TextFile" MinVersion="1.1" />
      <Set Name="TextCoercion" MinVersion="1.1" />
      <Set Name="TextBindings" MinVersion="1.1" />
      <Set Name="BindingEvents" MinVersion="1.1" />
    </Sets>
  </Requirements>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://localhost:44300/App/Home/Home.html" />
  </DefaultSettings>
  <Permissions>ReadWriteMailbox</Permissions>
</OfficeApp>
<?xml version="1.0" encoding="UTF-8"?>
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9-->
<OfficeApp
  xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
  xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0"
  xsi:type="MailApp">
  <Id>da977793-c2c9-41e3-86f9-27c6889cf9e5</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>[Provider name]</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="OfficeApp1" />
  <Description DefaultValue="OfficeApp1"/>
  <IconUrl DefaultValue="https://remoteAppUrl/Images/taskpane_32x.png" />
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets>
      <Set Name="Mailbox" MinVersion="1.1" />
    </Sets>
  </Requirements>
   <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:44300/App/Home/Home.html"/>
        <RequestedHeight>450</RequestedHeight>
      </DesktopSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
</OfficeApp>