I've deployed a provider hosted app (hosted on Azure) in SharePoint Online.
In my solution I have an aspx page (with a button) and a Client Web Part to add the page in SP as an App Part.
All works fine but when I click on my button, doing a postback, I receive this error:
An error occurred while processing your request.
Debugging the solution, I see that on Page_PreInit
, the function SharePointContextProvider.CheckRedirectionStatus(Context, out redirectUrl)
returns RedirectionStatus.CanNotRedirect
But I don't understand why...