My provider-hosted (MVC) app for SharePoint 2013 is deployed to Azure website. However once it calls SharePoint CSOM it fails with unexpected error.
Any idea why?
Thanks!
My provider-hosted (MVC) app for SharePoint 2013 is deployed to Azure website. However once it calls SharePoint CSOM it fails with unexpected error.
Any idea why?
Thanks!
This occurs when you make a request directly to web site, using a url (e.g. "xxx.azurewebsites.net") because in your "Index" ActionMethod is marked with:
[SharePointContextFilter]
If you want access to your web site outside from Sharepoint, you can have in your Provider App, two controllers. One configured how ClientWebPart for access inside from Sharepoint and other for external access.