After the installation of Office Web Apps is deployed, browse word in the SharePoint 2010 Browser prompt:" Word Web App cannot open this document for viewing due to an unexpected error." To view this document, open it in Microsoft Word. "
Special case: An error occurs when sharepoint2010 is installed on a domain controller to view Word files online.
First step: You need to enter the SharePoint Management shell from the Start menu to execute the following command in the command window:
$e = Get-spserviceapplication | where {$_. Typename.equals ("Word viewingservice Application")}
$e. wordserverissandboxed= $false
$e. wordserverissandboxed
$p = Get-spserviceapplication | where {$_. Typename.equals ("PowerPoint serviceapplication")}
$p. enablesandboxedviewing= $false
$p. enablesandboxedediting= $false
$p. enablesandboxedviewing
$p. enablesandboxedediting
# (Pleaseuse the below script for powerpointserviceapplication–you need-enter "Y" for the answer of each cmd)
get-sppowerpointserviceapplication| Set-sppowerpointserviceapplication-enablesandboxedviewing $false
get-sppowerpointserviceapplication| Set-sppowerpointserviceapplication-enablesandboxedediting $false
Or create a new Notepad file, copy the above content, save and change the file suffix to. ps1 such as Temp.ps1
Then enter the SharePoint Management shell from the Start menu in the Command window to enter E:\TEMP.PS1
Step Two: Open the C:\windows\system32\inetsrv\config\applicationHost.config file with Notepad
Add <add mimetype= "Application/zip" enabled= "false"/> in front of </dynamicTypes>, save.
Precautions:
1. On the Central Administration Web site, in the Application Management section, click Manage Service applications to see the type name
For example, the English version of the type name is "Word viewing Service Application" Chinese version is
"Wordviewing Service Application", please control the change command.
2. If you want to make the system support PowerPoint for all questions please answer Y Yes
3. Previously uploaded Word files need to be re-uploaded to use
4.office Web Apps does not support excel97-2003 format files online browsing and editing