Monthly Archives: June 2014

Office Web Apps Error: “CreateWopiHttpRequest failing due to invalid host”

Published / by / Leave a Comment

In case Office Web Apps don’t work after the installations and configuration, check the error logs located at C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS.

For the error

WOPI CheckFileInfo: Start [url:http://contoso/_vti_bin/wopi.ashx/files/4e6ec34afd3c4d0e846b6a4c28974e6a] d6a00ff8-7390-4d91-9d44-c6f56b0995b9
06/25/2014 11:52:03.05 w3wp.exe (0x1CF0) 0x6F80 Office Web Apps WAC Hosting Interaction ajjtl Medium WOPI – CreateWopiHttpRequest failing due to invalid host [wopiUrl: http:/contoso/_vti_bin/wopi.ashx/files/4e6ec34afd3c4d0e846b6a4c28974e6a] d6a00ff8-7390-4d91-9d44-c6f56b0995b9

Add the domain name and the URL of the site as New-OfficeWebAppsHost on OWA server

for http://contoso website in Microsoft domain run the below PowerShell commands on OWA server

New-OfficeWebAppsHost -Domain  “contoso”

New-OfficeWebAppsHost -Domain  “”



Microsoft Word Web App: Sorry, there was a problem and we can’t open this document, if this happens again, try opening the document in Microsoft Word.

Published / by / Leave a Comment


OWA error



Sorry, there was a problem and we can’t open this document, if this happens again, try opening the document in Microsoft Word. 


Office Web App Server logs are located at  C:\ProgramData\Microsoft\OfficeWebApps\Data\Logs\ULS and by going through the logs actual error was identified.

w3wp.exe (0x1CF0) 0x1F78 Office Web Apps WAC Hosting Interaction adhsk Unexpected WOPI CheckFile: Catch-All Failure [exception:Microsoft.Office.Web.Common.EnvironmentAdapters.FileUnknownException: Invalid Host at Microsoft.Office.Web.Apps.Common.WopiDocument.CreateWopiHttpRequest(WopiRequest req, NameValueCollection headers, Stream requestStream, Int32 requestStreamLength, Stream responseStream, Int32 responseStreamLength, AsyncCallback callback, Object state) at Microsoft.Office.Web.Apps.Common.WopiDocument.GetWopiRequestResultWithRetry(Int32 maxSize, MemoryStream ms, WopiRequest wopiRequest) at Microsoft.Office.Web.Apps.Common.WopiDocument.CheckWopiFile()] 1df9c167-143c-4d80-a5ff-a93cc5569a83


for communicatin over http the below powershell commands needs to be executed on the SharePoint server

$OWAC = (get-spsecuritytokenserviceconfig)

$OWAC.allowoauthoverhttp = $true



Office Web Apps configuration with and w/o SSL

Published / by / Leave a Comment

Windows Server 2012 Configure Roles

1) Open PowerShell as Administrator and execute the following commands to configure the server

Import-Module ServerManager
Add-WindowsFeature Web-Server,Web-Mgmt-Tools,Web-Mgmt-Console,Web-WebServer,Web-Common-Http,Web-Default-Doc,Web-Static-Content,Web-Performance,Web-Stat-Compression,Web-Dyn-Compression,Web-Security,Web-Filtering,Web-Windows-Auth,Web-App-Dev,Web-Net-Ext45,Web-Asp-Net45,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,InkandHandwritingServices

2) Install Office Web Apps using setup wizard.

3)Run the below commands on OWA server

w/o SSL (http)

New-OfficeWebAppsFarm -InternalURL “http://txdal11epapts02” -ExternalURL “” -AllowHttp -EditingEnabled -ClipartEnabled -TranslationEnabled -Verbose

SSL (https)

New-OfficeWebAppsFarm -InternalURL “https://txdal11epapts02” -ExternalURL “”  -EditingEnabled -ClipartEnabled -TranslationEnabled -Verbose


4) Run the below powershell commands on the SharePoint server

w/o SSL (http)

New-SPWOPIBinding -ServerName “” -AllowHTTP

Set-SPWOPIZone –zone “internal-http”


Run the PowerShell command below to enable OAuth over HTTP.
$OWAC = (get-spsecuritytokenserviceconfig)

$OWAC.allowoauthoverhttp = $true



SSL (https)

New-SPWOPIBinding -ServerName “”

Set-SPWOPIZone –zone “external-https”


PowerShell script to get a list of sites that have Enterprise Features enabled

Published / by / Leave a Comment

In SharePoint 2010 there is no mechanism to track and identify the sites that have enterprise features ,

The below powershell script can be used to Identify all Enterprise sites, subsites, libraries and webparts in a WebApplication.

The Powershell Script generates two reports EnterpriseReport.csv and EnterpriseComponents.csv


Identifies all sitecollections with “SharePoint Server Enterprise Site Collection features” feature enabled

Identifies all subsites with “SharePoint Server Enterprise Site features” feature enabled


Identifies URLs of all PowerPivot libraries, DataConnection libraries and InfoPath libraries

Identifies URLs of all pages with Excel WebParts and Visio WebParts

Identifies URLs of all document libraries with Content Organizer Rules


Identify Enterprise Components