Word web app cannot open the document due to an unknown error

​Recently I ran into an interesting error. This is related to SharePoint 2010 and Office Web Apps 2010. When opening any Word or PowerPoint documents SharePoint 2010 started throwing the following error.

“Word web app cannot open the document due to an unknown error. If the Problem persist try opening the file in Microsoft Word. ”

After searching around there were couple of articles which provided some help but I was not able to fix the issue.

http://sharepointknowledgebase.blogspot.ca/2011/09/word-web-app-cannot-open-this-document_05.html

http://technet.microsoft.com/en-us/library/hh269604(v=office.14).aspx

Since none of the above article helped I started looking into ULS logs and found few errors in there related to Office Web Apps.

w3wp.exe (0x0D6C) 0x0DD4 Office Web Apps Office Viewing Architecture b5es Monitorable Cannot create process for “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\WebServices\PowerPoint\bin\Converter\AppServerHost.exe” /id 6c1f5a42-46c1-44b2-b919-100270bc58ad /convertingService net.pipe://127.0.0.1/09062522-2045-4126-8f60-13f56f0c8231 /assembly Microsoft.Office.Server.Powerpoint.Core.WebConversion.dll /type PowerPointServer.PowerPointServer /IsBatchedTracing True /LogQuota 10000 – err = 1314 
w3wp.exe (0x0D6C) 0x0DD4 Office Web Apps                Office Viewing Architecture    b10r Monitorable Failed to create the sandboxed process  

 

This led me to the following Microsoft Knowledge Base article.

http://support.microsoft.com/kb/2521084

I followed the instructions mentioned in the above article and it worked like a charm.

Resolution: Basically you will need Office Web Apps service account to have Replace a process level token on the local policy.

Just to save time for others I am going to post the steps here.

  • On the Windows 2008 server, select Start | Programs | Administrative Tools | Local Security Policy
  • Expand Local Policies | User Rights Assignment
  • In User Rights Assignment | Click on the Replace a process level token policy. Click on Add user or group. Type in the service account, resolve the name. Click OK. Click OK. Click apply. Click OK. (Below is a screenshot of the policy)
  • After the permission is set then launch a command prompt and type the following: gpupdate /force

Note: I need to reboot the server for this to work as after running gpupdate /force it did not work for me.

Running Powershell CMDLET and Permissions

​This question comes up quite often. What permissions does a user need to execute a command in the SharePoint 2010 Shell?
Short answer is you will need SharePoint_Shell_Access access.
To give user SharePoint_Shell_Access access run the following command
Add-SPShellAdmin -UserName [USERNAME] -Database [DBNAME]
-Database switch is optional and if the database is not specified the configuration database is used.

SharePoint Saturday Albany – 2014

​On February 1st 2014, I presented at, first ever, SharePoint Saturday Albany​ 2014.

I presented a session in the developer track on Creating SharePoint 2013 workflow using Visual Studio 2012 (my signature session :)). It was a very well organized event in terms of planning, venue, food and prizes.
I would like to thank everyone who attended my session and special thanks to who filled the evals. Please find my presentation slides below.
Kudos to all the organizers, sponsors and volunteers for successful event!!!

 

Enable visio file (.vsd) preview in SharePoint 2013

​If you want to open your Visio (.VSD) file using Visio Services in SharePoint 2013 then unfortunately SharePoint will not open .VSD files in browser. If you have  Visio 2013 then save those files as .VSDX and SharePoint 2013 will open those files in Browser or you can save your Visio file as Web Drawing (.VDW) and they should open in browser as well.

​Also please make sure you have Visio Services Enabled.

How to set SharePoint Search Crawl Schedule as None via Powershell command

​If you wanted to reset your SharePoint 2013 or SP 2010 Search Crawler schedule to none using PowerShell then you can use the following code. The key here is to set the Scheduel to $null. These properties are nullable and by setting them to null will clear all your crawling schedule.

$ssa = "Search Service Application"​

$contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"

$contentSource.IncrementalCrawlSchedule = $null

$contentSource.FullCrawlSchedule = $null

$contentSource.Update​()​

SharePoint Saturday Washington DC – 2013

Last Saturday, on December 7th, I presented at the SharePoint Saturday DC​ 2013. This was my first time speaking at SharePoint Saturday event in USA.
sharepointsatdc.png
I presented a session in the IT PRO track on Crawling your SharePoint 2010 sites with SharePoint 2013 Search using Cross farm services. The event was very well organized and I met so many known faces.
I would like to thank everyone who attended my session. Please find my presentation slides below.
Kudos to all the organizers, sponsors and volunteers for successful event!!!