managed prog managed prog - 2 months ago 17x
ASP.NET (C#) Question

Web app using Azure active directory for Authentication

I am using the below sample code to create a simple web app (I have not incorporated web API yet)

I was able to debug the application without any errors. But when I deployed the app to Azure, I followed the steps to change the
1) Sign-On URL
2) Reply URL
to the web site address.
Now when I try to access my website it tries to authenticate me and then it just gives me back status code 500.
Any idea what I might be missing here?


That sample should not require ANY DB. The cache used there is the NaiveTokenCache (see, which uses the Http session. Either you modified the sample to switch the cache, or you are talking about something else (in which case, I recommend specifying the exact bits you are dealing with).