Title: Error with microsoft viewer
Last modified: January 6, 2020

---

# Error with microsoft viewer

 *  Resolved [sergio](https://wordpress.org/support/users/sergioarabuko/)
 * (@sergioarabuko)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/)
 * Hello, i’m having a problem with the microsoft viewer when i try to embed a excel
   spreadsheet, i get this message:
 * _502 – Web server received an invalid response while acting as a gateway or proxy
   server.
    There is a problem with the page you are looking for, and it cannot 
   be displayed. When the Web server (while acting as a gateway or proxy) contacted
   the upstream content server, it received an invalid response from the content
   server.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [vidyakv](https://wordpress.org/support/users/vidyakv/)
 * (@vidyakv)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/#post-12299019)
 * Hi [@sergioarabuko](https://wordpress.org/support/users/sergioarabuko/),
 * Thanks for reaching out to us.
 * Could you please share with us the URL having the issue?
 * Regards,
    Vidya K V
 *  Thread Starter [sergio](https://wordpress.org/support/users/sergioarabuko/)
 * (@sergioarabuko)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/#post-12301020)
 * Hi, this is an example: [http://www.gruposacsa.com.mx/la-importancia-de-contar-con-seguro-de-transporte-de-mercancias/](http://www.gruposacsa.com.mx/la-importancia-de-contar-con-seguro-de-transporte-de-mercancias/)
 * and i was searching through the web page of the plug-in and the error appear 
   in the excel example too: [http://embedanydocument.com/plugin/](http://embedanydocument.com/plugin/)
 *  [jimmybarraza](https://wordpress.org/support/users/jimmybarraza/)
 * (@jimmybarraza)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/#post-12305378)
 * I have the same problem, you can check it here:
 * [https://transparencia.ceaipsinaloa.org.mx/fraccion-i/](https://transparencia.ceaipsinaloa.org.mx/fraccion-i/)
   
   [http://transparencia.congresosinaloa.gob.mx/fraccion-iii/](http://transparencia.congresosinaloa.gob.mx/fraccion-iii/)
 * we are using excel files…
 *  [jimmybarraza](https://wordpress.org/support/users/jimmybarraza/)
 * (@jimmybarraza)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/#post-12306198)
 * I have solved the problem, it has to do with the region where the documents are
   displayed, what I did was change a line of code from the awsm-embed.php file 
   which is in the path: / wp-content / plugins / embed-any- document /
 * Line 252
    replace: $ embedsrc = ‘//view.officeapps.live.com/op/embed.aspx?src
   =%1$s’;
 * to:
    $ embedsrc = ‘//excel.officeapps.live.com/op/embed.aspx?src=%1$s’;
 *  Thread Starter [sergio](https://wordpress.org/support/users/sergioarabuko/)
 * (@sergioarabuko)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/#post-12309212)
 * Thank you [@jimmybarraza](https://wordpress.org/support/users/jimmybarraza/)
   
   That solved the problem aswell. Regards

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Error with microsoft viewer’ is closed to new replies.

 * ![](https://ps.w.org/embed-any-document/assets/icon.svg?rev=2576642)
 * [Embed Any Document - Embed PDF, Word, PowerPoint and Excel Files](https://wordpress.org/plugins/embed-any-document/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/embed-any-document/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/embed-any-document/)
 * [Active Topics](https://wordpress.org/support/plugin/embed-any-document/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/embed-any-document/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/embed-any-document/reviews/)

## Tags

 * [Excel](https://wordpress.org/support/topic-tag/excel/)

 * 5 replies
 * 3 participants
 * Last reply from: [sergio](https://wordpress.org/support/users/sergioarabuko/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/error-with-microsoft-viewer/#post-12309212)
 * Status: resolved