none
Error creating an instance of AuthenticationContext class in Azure hosted website

    Question

  • Hi

    I have a simple code like this

    AuthenticationContext
    authContext = new AuthenticationContext(authority);

    This is the line that it fails and the authority value is : https://login.windows-ppe.net/common/

    When I run this code locally it works fine.

    when i deploy it in an Azure Hosted website fails with TypeInitializationException and no inner exception in it.

    Any ideas?



    • Edited by Aram KoukiaMVP Tuesday, March 31, 2015 12:45 AM
    • Moved by Caillen Wednesday, April 1, 2015 5:59 AM
    Tuesday, March 31, 2015 12:45 AM

Answers