Showing posts with label SharePoint 2013. Show all posts
Showing posts with label SharePoint 2013. Show all posts

Friday, June 7, 2013

User Profile Synchronization Service Hangs on Starting (SharePoint 2013)

I was recently setting up User Profile Sync Service in SharePoint 2013 and of course, I was faced with the hung on starting issue.

In the past I've used Bill Daugherty's excellent post on resolving the hanging issue for SharePoint 2010, so I figured I'd give it a try for 2013, and it worked!

Thanks Bill!

Thursday, March 7, 2013

SharePoint 2013 Provider Hosted App - 401 Unauthorized Error

I've been working on some SharePoint 2013 apps and was building a Provider Hosted app this evening. I followed the step by step instructions in this Microsoft Article and all was going well. Then I tried testing my app and got a 401 unauthorized error.

I searched around and found a few reasons for this error:
- User Profile - it seems you need to have a User Profile created for the user using the app, this wasn't it as I had a user profile.
- Permissions - Your app may be trying to access things it hasn't been granted permission to. This wasn't it either as my app wasn't doing anything, just showing a page.
- Anonymous Access - Your app needs to be able to verify your identity so that it can authorize you in SharePoint. This wasn't my problem either as I was just using F5 to run it, so VS was dynamically creating a web app.
- Certificate Issue - You need to add your app certificate to the trusted certificate store. I had done this through PowerShell earlier but decided to check it out.

Ends up I overlooked the text in the Microsoft Article that states the issuer id needs to be all lowercase letters. Visual Studio's Guid generator alwasy provides all caps and I just copy/pasted.

I removed it and readded and all worked perfectly!

Saturday, January 5, 2013

The future of custom forms in SharePoint 2013

I've been doing quite a bit of research on SharePoint 2013 and the future of custom forms. Back in SharePoint 2010 the push seemed to be toward InfoPath Form Services and using IP to create your forms (items, workflow initiation, tasks, etc...).

At the SharePoint 2012 Conference there seemed to be a big push toward Business Users using Access 2013 to create their custom forms, but after I got my environment setup for this I quickly found out that this certainly doesn't replace InfoPath. An Access Web App is very powerful, however it doesn't really integrate with SharePoint other than being hosted there. You can't have workflow run on your items, and you don't even access SharePoint lists or libraries (the data is stored in SQL by the app).

The lack of attention to InfoPath at the conference as well as a few other things (listed below) have made me wonder... What is going to be the InfoPath replacement?

Reasons I believe InfoPath is going away:
  • InfoPath forms services doesn't work with Forms Based Authentication or SAML Tokens. I've been told by Microsoft that this isn't going to change, which leads me to believe they are not putting a focus on it. (See "Features that do not work with forms-based authentication or SAML security tokens" here: )
  • SharePoint 2013 removes InfoPath Forms for Workflow Initiation or Tasks.
  • The complete lack of attention at the conference to InfoPath along with a focus on CSOM and custom ASPX pages.
  • The fact that they haven't fixed things like mapping People Selector fields to actual people columns in Form Libraries, and the ability to access Managed Metadata in custom InfoPath forms. This was frustrating in SharePoint 2010 and is the same in 2013...

So, where does this leave us? Here are the options as I see it:
  • Access Web App - If it's business users and they don't need workflow (like a LOB solution) this could be a great solution.
  • Custom ASPX forms - At the time of writing this seems like the way everything is moving. Strangely this moves form design out of the businesses hands (the push was the opposite way with 2010 release) and into the developers hands.
  • InfoPath - Still fully supported in SharePoint 2013, however as I mentioned above, reading between the lines tells me this may be the last release that "fully" supports IP, so it might be time to start new projects with one of the above two options.

In the end I feel custom ASPX pages are the safest bet since they've worked since SharePoint 2007. Who knows where Access web apps will go in the future. Only time will tell.

As I learn more I'll update this post.

- Owen Runnals
SharePoint Practice Manager @ General Networks Corp

Tuesday, December 18, 2012

SharePoint 2013 Workflow Not Available w/ Blank Site Template

When setting up Workflow Manager 1.0 with your SharePoint 2013 farm it's important to note that a site that is created with the Blank Template (STS#0 if created w/ PowerShell) doesn't have a critical feature enabled that allows you to create SharePoint 2013 workflows in that site.

Update: It seems other templates are also missing this, like the Document Center template.

The feature is called "WorkflowServiceStore" and is enabled by default on the Team Site (and most likely all the other). The only way (that I've found) that you can activate this feature is through PowerShell as there are no related Features in the Site Features section on the site.

You can use the following PowerShell:

Enable-SPFeature -Identity WorkflowServiceStore -Url http://yoursiteurl

Otherwise you'll see this screen when you try to create a workflow, even though your server may be configured properly.


Message text: "The option for the SharePoint 2013 Workflow platform is not available because the workflow service is not configured on the server. Please contact your server administrator"

- Owen Runnals
SharePoint Practice Manager @ General Networks Corp