Monday, 6 August 2012

Microsoft Web Apps Server Preview Configuration Guide


As Microsoft releases its Preview of SharePoint, Lync and Exchange alot of things have changed. One that I am writing about is the new Web Apps Server. This is now a required component for browser-based file viewing and editing functionality for Office files. Here is a quick highlight of the Web Apps.

SharePoint 2013 Preview Users can access Office files from SharePoint document libraries by using Word Web App Preview, Excel Web App Preview, PowerPoint Web App Preview, and OneNote Web App Preview.

Lync Server 2013 Preview Users can broadcast PowerPoint presentations by using Lync 2013 Preview and Lync Web App. Broadcasting is enhanced to support higher-resolution displays and a wider range of mobile devices than in earlier versions. Users who have the appropriate privileges can scroll through a PowerPoint presentation independent of the presentation itself.

Exchange Server 2013 Preview Users of Outlook Web App can preview Office file attachments by using Word Web App Preview, Excel Web App Preview, and PowerPoint Web App Preview. These previews provide rich, full-fidelity viewing of Office files and any comments within them, without the need to download the files before viewing them.

For prerequists the Web App Server must be running Server 2008 R2 SP1 or Server 2012. Cannot be installed on any other server running Lync, Exchange or SharePoint. and must not have any version of Office installed.
For my guide I will be using Server 2012.

This guide will come into use in Part 2 of my Lync Server 2013 Preview Guide as its required for the front-end configuration.

So to start off I have a Virtual Machine running Server 2012. Web Apps is fully supported in a virtual enviroment but ONLY if its running Hyper-V.

To prepare a server that runs Windows Server 2008 R2 install the following software:

Windows Server 2008 R2 Service Pack 1 and all required updates
.NET Framework 4.5 RC
Windows PowerShell 3.0
For Windows Server 2008 R2 SP1 run the follwing powershell script to install the requires roles and features
PS C:\> Import-Module ServerManager
PS C:\> Add-WindowsFeature Web-Server,Web-WebServer,Web-Common-Http,Web-Static-Content,Web-App-Dev,Web-Asp-Net,Web-Net-Ext,Web-ISAPI-Ext,Web-ISAPI-Filter,Web-Includes,Web-Security,Web-Windows-Auth,Web-Filtering,Web-Stat-Compression,Web-Dyn-Compression,Web-Mgmt-Console,Ink-Handwriting,IH-Ink-Support

Also you will need to install hotfix KB2592525 which resolves a DirectWrite issue. The KB hotfix can be downloaded from this link.

For Server 2012 run this set of powershell scripts for required roles and features.
PS C:\> Import-Module ServerManager
PS C:\> 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

After roles/features are installed you will be prompted to reboot your server.


Next step is to download the Web App Bits found here

So with our Server roles and features installed, server rebooted and the Web App package downloaded, time for installation.

Mount/Extract the img file and double click on Setup.exe


Proceed with accepting the terms, choose a file location and click "Install Now".

And less then 6 minutes later, its installed :)

After the installation, Open PowerShell 3.0 and import the OfficeWebApps Module

PS C:\> Import-Module OfficeWebApps

PS C:\> New-OfficeWebAppsFarm -InternalUrl "https://server.domain.com" -ExternalUrl https://webapp.domain.com –CertificateName "OfficeWebApps Certificate" -EditingEnabled

Verify that the Office Web Apps Server farm was created successfully

Open Internet Explorer and navigate to https://server.domain.com/hosting/discovery

If Office Web Apps Server Preview works as expected, you should see a Web app Open Platform Interface (WOPI)-discovery XML file in your web browser. The first few lines of that file should resemble the following example:

<?xml version="1.0" encoding="utf-8"?><wopi-discovery><net-zone name="internal-https"><app name="Excel" favIconUrl="https://webapps.lyncmeblog.local/x/_layouts/images/FavIcon_Excel.ico" checkLicense="true"><action name="view" ext="ods" default="true" urlsrc="https://webapps.lyncmeblog.local/x/_layouts/xlviewerinternal.aspx?&lt;ui=UI_LLCC&amp;&gt;&lt;rs=DC_LLCC&amp;&gt;" /><action name="view" ext="xls" default="true" urlsrc="https://webapps.lyncmeblog.local/x/_layouts/xlviewerinternal.aspx?&lt;ui=UI_LLCC&amp;&gt;&lt;rs=DC_LLCC&amp;&gt;" /><action name="view" ext="xlsb" default="true" urlsrc="https://webapps.lyncmeblog.local/x/_layouts/xlviewerinternal.aspx?&lt;ui=UI_LLCC&amp;&gt;&lt;rs=DC_LLCC&amp;&gt;" /><action name="view" ext="xlsm" default="true" urlsrc="https://webapps.lyncmeblog.local/x/_layouts/xlviewerinternal.aspx?&lt;ui=UI_LLCC&amp;&gt;&lt;rs=DC_LLCC&amp;&gt;" /><action name="view" ext="xlsx" default="true" urlsrc="https://webapps.lyncmeblog.local/x/_layouts/xlviewerinternal.aspx?&lt;ui=UI_LLCC&amp;&gt;&lt;rs=DC_LLCC&amp;&gt;" /><action name="edit" ext="ods" requires="update" urlsrc="https://webapps.lyncmeblog.local/x/_layouts/xlviewerinternal.aspx?edit=1&amp;&lt;ui=UI_LLCC&amp;&gt;&lt;rs=DC_LLCC&amp;&gt;" /><action name="edit" ext="xlsb" requires="update" etc.........>

Note:
If components of the .NET Framework 3.5 were installed and then removed, you might see “500 Web Service Exceptions” or “500.21 – Internal Server Error” messages when you run OfficeWebApps cmdlets. To fix this, run the following sample commands from an elevated command prompt to clean up settings that could prevent Office Web Apps Server from functioning correctly:

%systemroot%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -iru

iisreset /restart /noforce

Now your Office Web Apps Server is ready for Exchange 2013 or Lync 2013.

4 comments:

  1. This article is a copy-paste from the Office Web Apps deployment guide/notes. By the way, for Lync, no need to enable Editing.

    First part of this article copy-pasted from http://www.microsoft.com/en-us/download/details.aspx?id=30358

    Most interesting part is here:
    http://technet.microsoft.com/en-us/library/jj204792(OCS.15).aspx

    Benoit.

    ReplyDelete
    Replies
    1. Thank you for your comment. For Lync you do not need to enable editing but added it anyways as this is just a guide. Some of the text was copied from the technet article but never mentioned it was my own. . I posted this guide as an easier find from the original document for my readers. I will add links to the original document. Thank you

      Delete
  2. A lot helpful, firstly i found the solution here but then i saw the source.

    ReplyDelete
  3. It is really helpful post, Thanks for sharing. Apps Development Android

    ReplyDelete