You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

向Partner Center上传Word Office Add-in时遇验证错误求助

Office Add-in上传Partner Center验证失败排查与修复

问题详情

上传Word Office Add-in到Partner Center验证时,遇到两个错误:

  1. Package acceptance validation error: Package Type Not Identified We could not recognize any supported add-in type
  2. Package acceptance validation error: Wrong Package Your package does not match submission type

插件在Office 365侧载测试正常,求问题原因及manifest修改方案。

当前Manifest代码

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<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:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
  <Id>6aa0ef48-9efb-4e53-a2a3-2eeb282b8779</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>Vizibit d.o.o.</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="eSign-Lite"/>
  <Description DefaultValue="eSign-Lite"/>
  <IconUrl DefaultValue="https://esign-lite.signator.eu/word/assets/icon-32.png"/>
  <HighResolutionIconUrl DefaultValue="https://esign-lite.signator.eu/word/assets/icon-64.png"/>
  <SupportUrl DefaultValue="https://esign-lite.signator.eu/word"/>
  <AppDomains>
    <AppDomain>https://vizibit.eu</AppDomain>
  </AppDomains>
  <Hosts>
    <Host Name="Document"/>
  </Hosts>
  <DefaultSettings>
    <SourceLocation DefaultValue="https://esign-lite.signator.eu/word/taskpane.html"/>
  </DefaultSettings>
  <Permissions>ReadWriteDocument</Permissions>
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_1">
    <Hosts>
      <Host xsi:type="Document">
        <DesktopFormFactor>
          <GetStarted>
            <Title resid="GetStarted.Title"/>
            <Description resid="GetStarted.Description"/>
            <LearnMoreUrl resid="GetStarted.LearnMoreUrl"/>
          </GetStarted>
          <FunctionFile resid="Commands.Url"/>
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <OfficeTab id="TabHome">
              <Group id="CommandsGroup">
                <Label resid="CommandsGroup.Label"/>
                <Icon>
                  <bt:Image size="16" resid="Icon.16x16"/>
                  <bt:Image size="32" resid="Icon.32x32"/>
                  <bt:Image size="80" resid="Icon.80x80"/>
                </Icon>
                <Control xsi:type="Button" id="TaskpaneButton">
                  <Label resid="TaskpaneButton.Label"/>
                  <Supertip>
                    <Title resid="TaskpaneButton.Label"/>
                    <Description resid="TaskpaneButton.Tooltip"/>
                  </Supertip>
                  <Icon>
                    <bt:Image size="16" resid="Icon.16x16"/>
                    <bt:Image size="32" resid="Icon.32x32"/>
                    <bt:Image size="80" resid="Icon.80x80"/>
                  </Icon>
                  <Action xsi:type="ShowTaskpane">
                    <TaskpaneId>ButtonId1</TaskpaneId>
                    <SourceLocation resid="Taskpane.Url"/>
                  </Action>
                </Control>
              </Group>
            </OfficeTab>
          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="Icon.16x16" DefaultValue="https://esign-lite.signator.eu/word/assets/icon-16.png"/>
        <bt:Image id="Icon.32x32" DefaultValue="https://esign-lite.signator.eu/word/assets/icon-32.png"/>
        <bt:Image id="Icon.80x80" DefaultValue="https://esign-lite.signator.eu/word/assets/icon-80.png"/>
      </bt:Images>
      <bt:Urls>
        <bt:Url id="GetStarted.LearnMoreUrl" DefaultValue="https://go.microsoft.com/fwlink/?LinkId=276812"/>
        <bt:Url id="Commands.Url" DefaultValue="https://esign-lite.signator.eu/word/commands.html"/>
        <bt:Url id="Taskpane.Url" DefaultValue="https://esign-lite.signator.eu/word/taskpane.html"/>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="GetStarted.Title" DefaultValue="Get started with your sample add-in!"/>
        <bt:String id="CommandsGroup.Label" DefaultValue="Commands Group"/>
        <bt:String id="TaskpaneButton.Label" DefaultValue="Signator Demo"/>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="GetStarted.Description" DefaultValue="Your sample add-in loaded succesfully. Go to the HOME tab and click the 'Show Taskpane' button to get started."/>
        <bt:String id="TaskpaneButton.Tooltip" DefaultValue="Click to Show a Taskpane"/>
      </bt:LongStrings>
    </Resources>
      <WebApplicationInfo>
        <Id>6aa0ef48-9efb-4e53-a2a3-2eeb282b8779</Id>
        <Resource>api://esign-lite.signator.eu/word/6aa0ef48-9efb-4e53-a2a3-2eeb282b8779</Resource>
        <Scopes>
          <Scope>User.Read</Scope>
          <Scope>Contacts.Read</Scope>
          <Scope>Mail.Read</Scope>
          <Scope>Email</Scope>
          <Scope>offline_access</Scope>
          <Scope>openid</Scope>
          <Scope>profile</Scope>
        </Scopes>
      </WebApplicationInfo>
  </VersionOverrides>
</OfficeApp>

错误原因及修复方案

操作层面问题

  • 上传文件类型错误:你提到上传的是manifest.json,但Office Add-in的合法配置文件是XML格式的manifest.xml。Partner Center仅识别XML清单,上传JSON会直接触发「Package Type Not Identified」错误。
  • 提交类型不匹配:在Partner Center创建提交时,必须选择「Office Add-ins」类型,若选成Teams应用、Power Platform应用等其他类型,会触发「Wrong Package」错误。

Manifest代码修改点

  1. 升级清单命名空间版本
    当前使用的appforoffice/1.1版本较旧,Partner Center对新版本兼容性更好,建议升级到1.10(最新稳定版):

    <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.10" 
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" 
               xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" 
               xsi:type="TaskPaneApp">
    
  2. 修正WebApplicationInfo配置

    • 当前WebApplicationInfo的Id与插件GUID相同,这不符合要求:该ID必须是Azure AD应用的客户端ID,而非插件自身的GUID。若你不需要调用Microsoft Graph,可直接移除整个WebApplicationInfo节点简化验证;若需要保留,需替换为正确的Azure AD客户端ID。
    • 确保WebApplicationInfo位于VersionOverrides的直接子节点下(当前位置是对的,但内容有误)。
  3. 完善描述信息
    Description字段内容过于简短,Partner Center要求清晰说明插件功能,建议修改:

    <Description DefaultValue="eSign-Lite:在Word文档中快速完成电子签名,支持多人签署、身份验证等核心功能"/>
    
  4. 更新高分辨率图标
    Partner Center要求高分辨率图标为128x128像素,当前使用的是64x64,需修改:

    <HighResolutionIconUrl DefaultValue="https://esign-lite.signator.eu/word/assets/icon-128.png"/>
    

验证步骤

  1. 将修改后的manifest.xml压缩为ZIP包(注意ZIP根目录直接放XML文件,不要嵌套文件夹)。
  2. 在Partner Center确认提交类型为「Office Add-ins」,上传ZIP包重新验证。

内容的提问来源于stack exchange,提问作者MatejDodevski

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 16:20:39