Friday, January 22, 2010

Error in Office Web Apps when installing on Domain Controller

I had installed SharePoint 2010 Public Beta (Farm Installation) on a Hyper-V machine with Windows Server 2008 R2 (Standard) as the OS and SQL Server 2008 R2 as my Database Server. I installed all the Pre-Requisites properly and the installation went really well and my SharePoint farm was fully configured and ready for use. Then i installed Office Web Apps and  ran the configuration wizard without any errors.
Then i created a Team Site , turned on the Office Web Apps feature for the site collection. Till this point everything was absolutely fine. But then i uploaded a word document onto the site and tried to view it in the browser using the Office Web Apps. It took a long time to open and then finally gave me the following error “Word Web App cannot open this document because the server is still processing the document. Please try again later.

Then i tried upload an Excel sheet and opend it in the browser. The excel opened without any problem which meant that there was no problem in the Excel Web Service. then i uploaded a PowerPoint presentation and opend it in the browser. It also gave me an error. It was quiet strange as the Office Web Applications had worked fine when i had installed SharePoint 2010 CTP version on a different machine.

After googling for a while i found Jie Li's Article which talked about installing Office Web Apps on a DC.

It turns out to be that if you are installing Office Web Apps on a machine which is a DC (Domain Controller) There are some extra steps which you need to perform in order to make Office Web Apps run properly.

If you are using Office Web Apps on DC you need to run the following shell script to make it work

$e = Get-SPServiceApplication | where {$_.TypeName.Equals("Word Viewing Service Application")}
$e.WordServerIsSandboxed = $false
$e.WordServerIsSandboxed

#(Please use the below script for PowerPointServiceApplication - You need to enter "Y" for the answer of each cmd)
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedViewing $false
Get-SPPowerPointServiceApplication | Set-SPPowerPointServiceApplication -EnableSandboxedEditing $false

So i ran the above commands and did an IIS reset and Issue Resolved. I was able to use Office Web Apps without any trouble.

1 comment:

  1. How did you run the script? I have tried to run in powershell but it can't recognize the cmdlets

    ReplyDelete