2017-07-31 10 views
1

私は現在アドインをOutlook用に開発していますが、アドインを作成する際の基本手順に従っていますが、(編集前の事前生成された)プロジェクトを実行するたびに、エラー:アドインを起動できませんでした

This add-in could not be started. Close this dialog to ignore the problem or click "Restart" to try again.

私が最初にこれはVisual StudioのISSのHTTPS証明書に関連するかもしれないと思ったが、それらをインストールする(そして、彼らはChromeで動作することをテストする)の後に。私はロゴを変えて、効果があるかどうかを確認しましたが、デフォルトのイメージを表示し続けました。

誰かが間違っていることを知っていますか?これは私の現在のマニフェストです:エラーの

<?xml version="1.0" encoding="UTF-8"?> 
<!--Created:ce44715c-8c4e-446b-879c-ea9ebe0f09c8--> 
<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"> 

    <!-- Begin Basic Settings: Add-in metadata, used for all versions of Office unless override provided. --> 

    <!-- IMPORTANT! Id must be unique for your add-in, if you reuse this manifest ensure that you change this id to a new GUID. --> 
    <Id>d2240a8c-b832-493e-8056-5a14ca48a3f3</Id> 

    <!--Version. Updates from the store only get triggered if there is a version change. --> 
    <Version>1.0.0.0</Version> 
    <ProviderName>DearBytes B.V.</ProviderName> 
    <DefaultLocale>nl-NL</DefaultLocale> 
    <!-- The display name of your add-in. Used on the store and various places of the Office UI such as the add-ins dialog. --> 
    <DisplayName DefaultValue="Test" /> 
    <Description DefaultValue="Test"/> 
    <IconUrl DefaultValue="~remoteAppUrl/Images/icon64.png"/> 

    <SupportUrl DefaultValue="https://www.test.com/" /> 
    <!-- Domains that will be allowed when navigating. For example, if you use ShowTaskpane and then have an href link, navigation will only be allowed if the domain is on this list. --> 
    <AppDomains> 
    <AppDomain>*.test.com</AppDomain> 
    <AppDomain>*.test.nl</AppDomain> 
    </AppDomains> 
    <!--End Basic Settings. --> 

    <Hosts> 
    <Host Name="Mailbox" /> 
    </Hosts> 
    <Requirements> 
    <Sets> 
     <Set Name="Mailbox" MinVersion="1.1" /> 
    </Sets> 
    </Requirements> 
    <FormSettings> 
    <Form xsi:type="ItemRead"> 
     <DesktopSettings> 
     <SourceLocation DefaultValue="~remoteAppUrl/MessageRead.html"/> 
     <RequestedHeight>250</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> 

    <VersionOverrides xmlns="http://schemas.microsoft.com/office/mailappversionoverrides" xsi:type="VersionOverridesV1_0"> 
    <Requirements> 
     <bt:Sets DefaultMinVersion="1.3"> 
     <bt:Set Name="Mailbox" /> 
     </bt:Sets> 
    </Requirements> 
    <Hosts> 
     <Host xsi:type="MailHost"> 

     <DesktopFormFactor> 
      <!-- Location of the Functions that UI-less buttons can trigger (ExecuteFunction Actions). --> 
      <FunctionFile resid="functionFile" /> 

      <!-- Message Read --> 
      <ExtensionPoint xsi:type="MessageReadCommandSurface"> 
      <!-- Use the default tab of the ExtensionPoint or create your own with <CustomTab id="myTab"> --> 
      <OfficeTab id="TabDefault"> 
       <!-- Up to 6 Groups added per Tab --> 
       <Group id="msgReadGroup"> 
       <Label resid="groupLabel" /> 
       <!-- Launch the add-in : task pane button --> 
       <Control xsi:type="Button" id="msgReadOpenPaneButton"> 
        <Label resid="paneReadButtonLabel" /> 
        <Supertip> 
        <Title resid="paneReadSuperTipTitle" /> 
        <Description resid="paneReadSuperTipDescription" /> 
        </Supertip> 
        <Icon> 
        <bt:Image size="16" resid="icon16" /> 
        <bt:Image size="32" resid="icon32" /> 
        <bt:Image size="80" resid="icon80" /> 
        </Icon> 
        <Action xsi:type="ShowTaskpane"> 
        <SourceLocation resid="messageReadTaskPaneUrl" /> 
        </Action> 
       </Control> 
       <!-- Go to http://aka.ms/ButtonCommands to learn how to add more Controls: ExecuteFunction and Menu --> 
       </Group> 
      </OfficeTab> 
      </ExtensionPoint> 
      <!-- Go to http://aka.ms/ExtensionPointsCommands to learn how to add more Extension Points: MessageRead, AppointmentOrganizer, AppointmentAttendee --> 
     </DesktopFormFactor> 
     </Host> 
    </Hosts> 

    <Resources> 
     <bt:Images> 
     <bt:Image id="icon16" DefaultValue="~remoteAppUrl/Images/icon16.png"/> 
     <bt:Image id="icon32" DefaultValue="~remoteAppUrl/Images/icon32.png"/> 
     <bt:Image id="icon80" DefaultValue="~remoteAppUrl/Images/icon80.png"/> 
     <bt:Image id="icon128" DefaultValue="~remoteAppUrl/Images/icon128.png"/> 
     </bt:Images> 
     <bt:Urls> 
     <bt:Url id="functionFile" DefaultValue="~remoteAppUrl/Functions/FunctionFile.html"/> 
     <bt:Url id="messageReadTaskPaneUrl" DefaultValue="~remoteAppUrl/MessageRead.html"/> 
     </bt:Urls> 
     <bt:ShortStrings> 
     <bt:String id="groupLabel" DefaultValue="Test"/> 
     <bt:String id="paneReadButtonLabel" DefaultValue="Test"/> 
     <bt:String id="paneReadSuperTipTitle" DefaultValue="Test"/> 
     </bt:ShortStrings> 
     <bt:LongStrings> 
     <bt:String id="paneReadSuperTipDescription" DefaultValue="Test"/> 
     </bt:LongStrings> 
    </Resources> 
    </VersionOverrides> 
</OfficeApp> 

スクリーンショット:

enter image description here

+0

"〜remoteAppUrl"を何と置き換えましたか?マニフェストを展開する前にこれをしましたか? "AppDomain"にはprotocil "https:// ..."を含むURIが含まれている必要があります –

答えて

0

このエラーの最も可能性の高い原因は、タイムアウトです。 Outlookでエラーが発生する前に、アドインでOffice.initializeメソッドを実行するのに5秒間かかります。

一般に、これは、<head>のoffice.jsライブラリを参照していないか、DOMを読み込むまでOffice.initializeを実行していないためです。

あなたがポストされたXMLマニフェストファイルでUnderstanding the JavaScript API for Office

+0

何も変更していないので間違いなく頭がありますが、デバッガを実行するとコードはブレークポイントに達しませんアドインは私のJSをまったく読み込んでいません。エラーフィードバックがないとデバッグがほとんど不可能になります – Paradoxis

+0

あなたは〜remoteAppUrlを使用しています。これはVisual Studio内でこれを実行している場合にのみ機能します。出力ウィンドウにエラーが表示されていますか? –

0

@ office.jsを参照の詳細を見つけることができ、~remoteAppUrlの9回の出現があります。まだ実行していない場合は、~remoteAppUrlの各オカレンスを、アドインの(Webアプリ)ファイルがどこに配置されているかを表すHTTPS URLに置き換える必要があります。また

は、@Slavaイワノフ上記のコメントで述べたように - Iは、それぞれAppDomain値は、プロトコル(:https://www.test.com EX)を含むURIであるべきと考えています。

+0

両方の答えが悲しいことに私の問題を解決しない – Paradoxis

+0

F5を実行してアドインを実行してインストールしていますか、それともどうしていますか? VSから実行している場合、〜remoteAppUrlはVSによって自動的に置き換えられます。 また、あなたのアプリドメインに*があります。ワイルドカードはサポートされていません。 –

関連する問題