Error opening Office files in browser OOS.

Rui Pinto Ferreira 20 Reputation points
2024-12-16T14:50:27.3533333+00:00

I have a SharePoint farm with one application server, two frontend servers, a database server and an Office Online server and I have had problems opening Office files in the Browser for some time. Always gives the following error:

Sorry, we're having a problem showing this workbook.

Something is preventing us from opening the workbook. It might be blocked for security reasons.

OR

You do not have permissions to open this file in the browser.

Could it be related to an expired certificate(AppServerGeneratedSBCA)?

Microsoft Office Online Server
Microsoft Office Online Server
Microsoft on-premises server product that runs Office Online. Previously known as Office Web Apps Server.
663 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,973 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yanli Jiang - MSFT 28,121 Reputation points Microsoft Vendor
    2024-12-17T08:57:47.62+00:00

    Hi @Rui Pinto Ferreira ,

    Welcome to Q&A forum!

    There are many reasons for this, and certificate expiration is one of them. It is recommended that you follow the steps below for troubleshooting:

    1. Check the Certificate Status on your servers

    • Open the Microsoft Management Console (MMC) by typing mmc in the Run dialog (Windows key + R).
    • Go to File > Add/Remove Snap-in.
    • Select "Certificates" and click Add.
    • Choose "Computer account" and click Next.
    • Select "Local computer" and click Finish.
    • Expand the Certificates node under "Personal" and look for the AppServerGeneratedSBCA certificate.
    • Check its expiration date and validity.

    2. Restart Relevant Services

    Restart IIS Services on All SharePoint Servers and Office Online Server.

    Restart SharePoint Services on All SharePoint Servers:**

    • Open the Services console (services.msc).
    • Restart relevant SharePoint services, such as "Microsoft SharePoint Foundation Web Application".

    3. Check Permissions

    Verify User Permissions in SharePoint:

    • Go to the document library where the files are stored.
    • Check the permissions for users who are experiencing issues.
    • Ensure they have "View" permissions at a minimum for opening files in the browser.

    4. Review Logs

    1. On SharePoint Servers:
    • Locate the ULS logs, typically found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\LOGS.
    • Open the logs using a tool like ULS Viewer to filter and search for specific error messages related to the issue.
    1. On Office Online Server:
    • Review the event logs and any Office Online Server-specific logs for error messages that may provide more context.

    5.Review Recent Changes

    Identify any recent updates or changes made to the environment that could have impacted functionality.

    Hope this can help.


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Yanli Jiang - MSFT 28,121 Reputation points Microsoft Vendor
    2024-12-18T09:56:13.2666667+00:00

    Hi @Rui Pinto Ferreira ,

    Please try follow these general steps:

    Request SSL Certificates using IIS:

    On the first server in the Office Online Server farm, generate the certificate request. This step does not apply to other servers. It is recommended to use an actual SSL certificate issued either by a corporate domain certificate authority or a third-party authority.

    https://www.sharepointdiary.com/2012/03/configuring-ssl-certificates-in-sharepoint-2010.html

    non-official, just for reference.

    Complete the Certificate Request using IIS:

    When a response is returned by the CA, perform the necessary steps on the same machine used to create the certificate request sent to the Certificate Authority. This task is performed only once on the first Office Online Server.

    Export SSL Certificate using IIS:

    Once you have a complete SSL certificate, export the certificate to distribute to all OOS servers in the farm. This task is performed only once on the server where the certificate request was made and completed.

    Import SSL Certificate using IIS:

    After exporting the SSL certificate, import the certificate to install it on all other OOS server nodes. Copy the certificate to all OOS servers before continuing.


    If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.