I am using VS 2013 and created a simple Provider-Hosted app (used MVC). I have generate Client Secret and Client Id from
_layouts/15/appregnew.aspx, updated web.config file and appmanifest.xml file. I have now two problems.
When it does not contain any AppEventHandler, I scceeded to install the app on my online tenant and the mvc project to an Azure web site, but it throws an exception when it executes SharePointContextFilter and says
Invalid issuer or signature
I comment the code and add an AppEventHandler, package the app and add it to the app catalog (my online tenant), However when I try to add the app, it says something like
It could not add the app. I remove the AppEventHandler by going to the project file properties and changing
Handle app installedto false then I can add the app agian.