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

Established Member

Hi,

 

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 //login.microsoftonline.com in a frame because it set 'X-Frame-Options' to 'deny'."

I follow this link 

https://www.c-sharpcorner.com/blogs/how-to-open-sharepoint-application-page-in-modal-dialog-popup-us...

 

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