系統環境: win2008r2 + sql2008R2 + sharepoint 2010 + office web apps
安裝部署完office web apps 後,在sharepoint 2010浏覽器中浏覽Word提示:“由于出現意外錯誤,Word Web App 無法打開此 文檔 進行檢視。 要檢視此 文檔,請在 Microsoft Word 中打開它。”,如圖:
<a href="http://blog.51cto.com/attachment/201312/043129179.jpg" target="_blank"></a>
隻有當sharepoint 2010安裝在域控制器上才會出線上檢視word檔案出錯.
第一步:需要從開始菜單進入 SharePoint 2010 Management Shell 在指令視窗執行如下指令:
$e = Get-SPServiceApplication | where {$_.TypeName.Equals("Word Viewing Service 應用程式")}
$e.WordServerIsSandboxed = $false
$e.WordServerIsSandboxed
$p = Get-SPServiceApplication | where {$_.TypeName.Equals("PowerPoint Service Application")}
$p.EnableSandboxedViewing = $false
$p.EnableSandboxedEditing = $false
$p.EnableSandboxedViewing
$p.EnableSandboxedEditing
#(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
或者建立一個記事本檔案,将以上内容拷貝,儲存後更改檔案字尾為 .ps1 例如 temp.ps1
然後從開始菜單進入 SharePoint 2010 Management Shell 在指令視窗輸入 e:\temp.ps1
第二步:用記事本打開 c:\windows\system32\inetsrv\config\applicationHost.config 檔案
在</dynamicTypes>的前面加入<add mimeType="application/zip" enabled="false" />,儲存。
注意事項:
1. 在管理中心網站上的“應用程式管理”部分,單擊“管理服務應用程式”右側可以看到類型名
例如英文版的類型名是 "Word Viewing Service Application" 中文版是
"Word Viewing Service 應用程式" 請對照修改指令。
2.如果要使系統支援powerpoint 對于所有提問請回答 Y 是
3.以前上傳的word檔案需要重新上傳,才能使用
4.office web apps 不支援 excel97-2003 格式檔案線上浏覽編輯
本文轉自 yuxye 51CTO部落格,原文連結:http://blog.51cto.com/fishvsfrog/1345908