无法在SharePoint上部署应用程序

时间:2016-06-10 02:42:41

标签: visual-studio ms-office office-addins office-js

所以我有一个PowerPoint Web内容加载项应用程序(与预加载的默认应用程序相同),我想通过在Office 365 Developer帐户上运行来测试。我有Visual Studio 2015社区。

这是XML文件(删除了ID内容)

<?xml version="1.0" encoding="UTF-8"?>

<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"

 xsi:type="ContentApp">

<!-- 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. -->

<!--Version. Updates from the store only get triggered if there is a version change. -->

<Version>1.0.0.0</Version>

<ProviderName>[Provider name]</ProviderName>

<DefaultLocale>en-US</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="PowerPointWebAddIn12" />

<Description DefaultValue="PowerPointWebAddIn12"/>

 

<!-- 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>AppDomain1</AppDomain>

<AppDomain>AppDomain2</AppDomain>

<AppDomain>AppDomain3</AppDomain>

</AppDomains>

<!--End Basic Settings. -->

<Hosts>

<Host Name="Presentation" />

</Hosts>

<DefaultSettings>

<SourceLocation DefaultValue="~remoteAppUrl/Home/Home.html" />

<RequestedWidth>400</RequestedWidth>

<RequestedHeight>400</RequestedHeight>

</DefaultSettings>

<Permissions>ReadWriteDocument</Permissions>

</OfficeApp>

enter image description here

我转到Office 365开发人员站点:

enter image description here

按下&#34;新应用以展开按钮&#34;并成功将我的应用程序上传到开发者网站:

enter image description here

但在部署时遇到此错误:

enter image description here

你能帮忙吗?

1 个答案:

答案 0 :(得分:1)

查看您的XML文件,您仍然拥有像#34; ~remoteAppUrl&#34;这样的标记化值。您需要将XML文件转换为干净/可发布的状态。

发布它是最简单的方法,您可以按照https://blogs.msdn.microsoft.com/officeapps/2014/01/15/publishing-apps-for-office-and-sharepoint-to-windows-azure-websites/上的步骤进行操作。

由于您需要在某个地方托管网页,因此相同的博客文章也可以帮助您将应用程序迁移到Azure网站(尽管如果它仅用于测试,您也可以使用localhost)如果是这样,请选择&#34;创建新的个人资料&#34;而不是选择现有的个人资料。