Reputation: 166
So I have a PowerPoint Web Content Add-In app (same as the default app that comes preloaded), that I want to test by running on Office 365 Developer account. I have Visual Studio 2015 Community.
Here is XML file (with ID stuff removed)
<?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>
I go to my Office 365 developer site:
Press the "new app to deploy button" and successfully upload my app to developer site:
But get this error when I deploy:
Could you please help?
Upvotes: 0
Views: 259
Reputation: 8670
Looking at your XML file, you still have tokenized values like "~remoteAppUrl". You need to get your XML file to a clean/publishable state.
Publishing it is the simplest way, you can follow the steps on https://blogs.msdn.microsoft.com/officeapps/2014/01/15/publishing-apps-for-office-and-sharepoint-to-windows-azure-websites/.
Since you'll need to host the web page somewhere, the same blog post will also help you get the application to an Azure Website (though you can also use localhost if it's just for testing -- if so, choose "Create new profile" instead of choosing an existing one.
Upvotes: 1