Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Hosting web application on Azure website having calls to AZURE ACTIVE DIRECTORY AUTHENTICATION LIBRARY fails

$
0
0

Hello All,

I have basically developed ASP.Net web application which access the Exchange 2013 calendar by using MANAGED API.

For authentication I am using the ADAL library and I have registered native client application in Azure Active Directory. Everything works perfectly so long as I run the application on localhost. the problem arises when I am hosting my ASP.Net web application to Azure by the means of publishing where in I import publishing profile website created on Azure.

Following is the stack trace of it:

Server Error in '/' Application.


Error HRESULT E_FAIL has been returned from a call to a COM component.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.]
   Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask(Task`1 task) +89
   WebApplication2.WebForm1.Page_Load(Object sender, EventArgs e) +169
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +92
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36213

Thanks in advance,

Pinal Rana



Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>