Showing posts with label Visual Studio 2012. Show all posts
Showing posts with label Visual Studio 2012. Show all posts

Monday, September 23, 2013

Provisioning TermSets/Terms to Terms Store from Apps

I was reading Deploying Managed Metadata Fields by Luis Manez, in the blog he mentions about creating TermSets and Terms with PowerShell. I couldn't get it working and instead created an APP to provision the TermSets and Terms.

Below are brief steps:

1. Create a "App for SharePoint 2013" Project (SharePoint-hosted)

2. Open AppMainifest.xml and set the Permissions


3. below is the js code



call the InitiateTaxonomy from the onGetUserNameSuccess method.

4. Deploy the app and verify by navigating to the Term Store Management.



Note: I used the publishing site template, the Site Collection was already created.

Sunday, March 17, 2013

SharePoint-hosted app: Deployment issues

You have installed SharePoint 2013 and ready to write apps.

You have downloaded the SharePoint 2013 Developer Tools for Visual Studio 2012.

You have chosen to write a SharePoint-hosted app. Read How to: Create a basic SharePoint-hosted app

When you try to deploy your app from Visual Studio by pressing F5, you get the following errors:

Error: Sideloading of apps is not enabled on the site - Apps are disabled on the site
Reason: You are trying to deploy the solution to a site that was not created using the new Developer site template:
Solution: Either you create a new site with the Developer template or run the following Powershell script: Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 –url <SiteUrl>


Error: App Management Shared Service Proxy is not installed
Reason: One or more service application is not running.
Solution: Navigate to Manage service applications under Central Admin, make sure the App Management Service, Secure Store Service and Security Token Service applications are provisioned and running.


Error: There are no addresses for this application
Reason: Isolated app domain missing
Solution: Follow the steps outllined here to configure the isolated app domain

HTH