Error creating an instance of AuthenticationContext class in Azure hosted website RRS feed

  • Question

  • Hi

    I have a simple code like this

    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