Access of SharePoint Online Document Library webpart in Provider Hosted Application hosted in Azure

Copper Contributor



Currently, I have two solutions in my organization.


  1. Provider Hosted App developed in .Net MVC with C# languange and hosted in Azure as an App service. Also, we have deployed this app in the SharePoint app catalog. So, ultimately our users are accessing the Dot Net application through the SharePoint Online platform.
  2. An Enterprise Content Management System on SharePoint Online where we have multiple document libraries in different subsites to store pdf files.

I hope the above information is enough to give you an idea of my current environment and the solutions that we are using.
My Requirement:
I am trying to open/embed SharePoint online document library webpart in a popup window in Dot Net application but when I do this, it gives me this error "Refused to display 'https // in a frame because it set 'X-Frame-Options' to 'deny'."

I follow this link


but the error is same. Is there a proper way to open the SharePoint Library in the MVC application?


I know we can communicate with SharePoint using CSOM, JSOM, Ajax calls, etc but I want to open the SharePoint library inside popup window.


0 Replies