Posts

Showing posts from June, 2013

Provider Hosted App - Azure and Read, Write to SharePoint List with real example

Hi, After my first blog on simple app, http://anujabhojani.blogspot.in/2013/06/step-by-step-sharepoint-2013-provider.html Now will go in detail about how to read and write SharePoint list with Provider Hosted App. Here to cover all the scenario implementing it with real example by creatingvTrello App. http://www.trello.com is basically a task management tool. I am developing app which will have following functionality, 1. App will take user token (oauth) from Trello to read all the cards  for current logged in user. 2. Trello will return token, which our app will store in one SharePoint list so next time when user visit the app, will get the token from list and directly get all the cards from trello. Now, lets start and build this app. 1. Having Default.aspx in my solution, adding following code in page_load to get the access token public partial class Default : System.Web.UI.Page { public static string userToken = string.Empty; Uri appWeb; s...

Step By Step- SharePoint 2013 Provider Hosted App - Azure Hosting

Image
Here In this blog on SharePoint 2013 Provider hosted app will try to cover each and every steps to create provider hosted app. 1. Open Visual Studio 2012. 2. Click on New Project -> Select SharePoint template  3. Visual studio will prompt to add Office 365 SharePoint Site you are using and select the Provider-hosted from dropdown list. 4.  On selection of Provide Hosted, click Next you will be prompted with following screen. Select use a client secret option. 5. Now, Click on Finish. visual studio will take some time to prepare solution. 6. Solution has been created with two projects, looks like below image, 7.   App project will be deployed to SharePoint. And  AppWeb project will  be .Net Web Application.  8. Now lets Deploy Provider-Hosted App to SharePoint.  here, I am adding some sample test text in default.aspx as per below code, <html xmlns=" http://www.w3.org/1999/xhtml" > <head r...

Error: Web deployment task failed. .. User_UNAUTHORIZED - Provider Hosted App

During development of provider hosted app, while deployment I was greeted with error : Web deployment task failed. (Connected to the remote computer ("waws-prod-hk1-001.publish.azurewebsites.windows.net") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site.  Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.) After some research came to know need to download the Publish Profile from site and attached new publish profile, helps me to solve this issue. It was due to changes in site happens are not detected in old publish profile, which leads to this error. Hope this fix will save you time!

The option for the SharePoint 2013 workflow platform is not available because the workflow service is not configured on the server

Image
Hi there, I have configured SharePoint 2013 and Workflow Manager. Created new Site Collection. However I was not able to create SharePoint 2013 workflows. Option for"SharePoint 2013 Workflow" (but SharePoint 2010 workflows works). Issue was, The site collection was created using blank template, which doesn't include all necessary dependency features for creating workflows. Fix: we need to enable hidden feature WorkflowServiceStore using PowerShell. Enable-SPFeature -Identity WorkflowServiceStore –Url $yourUrl And finally I got option in SharePoint Designer:

The parameter 'token' cannot be a null or empty string - Provider Hosted App SharePoint 2013

Hi, Today while my research on SharePoint Provider hosted app with Azure, after deployment I was greeted with "The parameter 'token' cannot be a null or empty string ". I was almost crazy behind finding the cause. However finally I found some points which leads me to resolve this error. The ClientID in your AppManifest.xml and in your Web.Config should be same. In AppManifest.xml file domain reference to Azure should be HTTPS rather than HTTP. Should have proper permission on web,list,site collection according to your app.    Happy coding!