Building an Office Web Apps (OWA) WOPI Host

This solution gives you a simple WOPI Host that provides viewing, and editing through Office Web Apps via a custom WOPI Server. Illustrates the implementation of WOPI for a Server in a working example.

C# (2.7 MB)
4.8 Star
9,702 times
Add to favorites
E-mail Twitter Digg Facebook
Sign in to ask a question

  • workbook cannot be opened
    2 Posts | Last post June 12, 2019
      when i click on this link i get the error workbook cannot be opened.
      I tried on  powerpoint also it is also not working
      please help
    • Same issue i am having did you resolve it ? 
  • can't insert image by office online
    1 Posts | Last post November 12, 2018
    • I have successfully able to view the document and edit it but the button of image couldn't click so i can't insert image.
      Does anyone knows the problem?
  • Issue while uploading the add-in
    1 Posts | Last post June 05, 2018
    • I have installed the Office Online server version - en_office_online_server_last_updated_march_2017_x64
      After installing I have enabled the Add-ins using below command,
      Set-OfficeWebAppsFarm -OfficeAddinEnabled:$true
      But when I try to add/upload the add-in through menu option "Insert >> Office Add-ins"  I am getting "Microsoft Word Online" error as given below,
      Sorry, we ran into a problem
      Session ID: 6686a10d-fabd-42c8-8d6a-d73d28579d53  
      This error is appearing immediately after clicking on the "Office Add-ins" button on toolbar.
      Does anyone knows the problem, do I need to do any changes in the codebase?
  • Sorry, your session expired. Please refresh the page to continue.
    1 Posts | Last post April 16, 2018
    • I have installed office online server version 16.7.7901.6800 on windows server 2012 and published WOPI on another system with Windows server 2016 OS. I can view and edit word files in browser but after save any word document I got this message: "Sorry, your session expired. Please refresh the page to continue."
      I don't use SharePoint and any online file management like OneDrive and so on. I just use WOPI, IIS, Office online server. I have already checked system time zone and location for two server (IIS and Office online).
      So, What's wrong?
      Thank you very much
  • Editing online
    1 Posts | Last post November 08, 2017
    • I have successfully able to view the document but after edit it will not hit the Route("files/{name}/contents") post method. anything that missed? 
  • Can't load this document
    1 Posts | Last post October 30, 2017
    • In vs2017, I open "http://localhost:32876/ ". then I click the button("Get Link"). I got Result URL.
      After I clicked this URL,something went wrong.
      Microsoft Word Online
      Something went wrong and we couldn't load this content. Refreshing the browser may fix the problem
      I checked that test.docx is in "App_Data" document. I can open it in Microsoft Word.but it didn't work well in Microsoft Word Online.
      Please help me.
  • Is it work for AWS s3 as a file source
    2 Posts | Last post October 19, 2017
    • Hi Shawn. This is a very useful example.thanks for making this.
      Is this work if the file source is AWS s3?
    • you need coding for get/store file for AWS
  • Editing Issues
    1 Posts | Last post October 18, 2017
    • 1.Excel/PPT can open with editing mode, save funtion will throw error but file save successful actually.
      2.Word can not open with editing mode.
      could help to check for me
  • about .xls file and .doc file can't preview
    3 Posts | Last post March 09, 2017
    • hi,
      how can I preview the .doc,.xls.. file ?
      when I was in URL ( Name=1.docx&access_token=undefined) in the test.xlsx into test.xls will be wrong .
      could you tell me how to change it? 
      think you  
    • sorry,URL ( Name=test.xlsx&access_token=undefined) 
      this is the url ,but it   returned application error 
  • Need help in writing WOPI host
    1 Posts | Last post December 07, 2016
    • hi,
      I am doing a POC for viewing documents which are stored on azure blob. So in my poc:
      1. WOPI host is the piece I am writing that will download files from blob and call WOPI client.
      2. WOPI client would be Office Online server (successor to Office Web Apps Server).
      For POC purpose I am referring as WopiDiscovery url. But it's not calling my checkFileInfo implementation. Any idea why happening so ?
1 - 10 of 53 Items