This project has moved and is read-only. For the latest updates, please go here.

Intermittent timeout when augmenting claim with groups

Jun 1, 2015 at 7:02 PM
I'm having a problem using Azure AD groups for security. When the user logs in, the claim is normally augmented with groups, but sometimes there is a timeout and the groups are not added. The same user may log out and log in again and get access. I have tested after hours to check if it is a network problem, but still get errors. I'm not sure if this is an environment problem or an Azure CP problem. Can you recommend next steps? Here is a sample from the ULS logs:

05/28/2015 14:10:08.95 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetRequestStreamSyncOrAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetResponseSyncOrAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpHelper.<SendPostRequestAndDeserializeJsonResponseAsync>d__01.MoveNext() 85d00a9d-f1f7-d0d8-c8a4-e7acac9535b5
05/28/2015 14:10:08.95 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21019ms and found no result for 'macdonju@Corp.onmicrosoft.com' 85d00a9d-f1f7-d0d8-c8a4-e7acac9535b5
05/28/2015 14:39:51.86 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetRequestStreamSyncOrAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetResponseSyncOrAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpHelper.<SendPostRequestAndDeserializeJsonResponseAsync>d__0
1.MoveNext() 39d20a9d-0139-d0d8-c8a4-e93560b5a6f8
05/28/2015 14:39:51.86 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21023ms and found no result for 'pruittb@Corp.com' 39d20a9d-0139-d0d8-c8a4-e93560b5a6f8 05/28/2015 15:35:38.72 w3wp.exe (0x1700) 0x1780 AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetRequestStreamSyncOrAsync>d__8.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.<GetResponseSyncOrAsync>d__2.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpHelper.<SendPostRequestAndDeserializeJsonResponseAsync>d__0`1.MoveNext() 6ad50a9d-9138-d0d8-c8a4-eb1cbeaa16a8
05/28/2015 15:35:38.72 w3wp.exe (0x1700) 0x1780 AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21047ms and found no result for 'kelly.ell@Corp.onmicrosoft.com' 6ad50a9d-9138-d0d8-c8a4-eb1cbeaa16a8 05/28/2015 16:05:17.25 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 584ms and found 1 result(s) for 'kelly.ell@Corp.onmicrosoft.com' 21d70a9d-918e-d0d8-c8a4-e9f37379809b 05/28/2015 16:08:48.12 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 104ms and found 1 result(s) for 'kelly.ell@Corp.onmicrosoft.com' 55d70a9d-f121-d0d8-c8a4-e0a743201fde 05/28/2015 16:38:53.26 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at System.Data.Services.Client.BaseAsyncResult.AsyncEndGetRequestStream(IAsyncResult asyncResult) 08d90a9d-c1c0-d0d8-c8a4-e4c811268ad9
05/28/2015 16:38:53.26 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21039ms and found no result for 'kelly.ell@Corp.onmicrosoft.com' 08d90a9d-c1c0-d0d8-c8a4-e4c811268ad9 05/28/2015 19:14:22.31 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 218ms and found 1 result(s) for 'test_hourlyunion@Corp.onmicrosoft.com' f3e10a9d-d16b-d0d8-c8a4-e1cc1559d728 05/28/2015 19:17:50.78 w3wp.exe (0x1700) 0x1774 AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at System.Data.Services.Client.BaseAsyncResult.AsyncEndGetRequestStream(IAsyncResult asyncResult) 21e20a9d-a13a-d0d8-c8a4-ebdf76029609
05/28/2015 19:17:50.78 w3wp.exe (0x1700) 0x1774 AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21032ms and found no result for 'kelly.ell@Corp.onmicrosoft.com' 21e20a9d-a13a-d0d8-c8a4-ebdf76029609 05/28/2015 19:17:56.36 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at System.Data.Services.Client.BaseAsyncResult.AsyncEndGetRequestStream(IAsyncResult asyncResult) 22e20a9d-219d-d0d8-c8a4-e95f023744c7
05/28/2015 19:17:56.36 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21016ms and found no result for 'kelly.ell@Corp.onmicrosoft.com' 22e20a9d-219d-d0d8-c8a4-e95f023744c7 05/28/2015 20:09:17.12 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected error while querying tenant Corp.onMicrosoft.com: System.Net.WebException: Unable to connect to the remote server, Callstack: at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context) at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult) at System.Data.Services.Client.BaseAsyncResult.AsyncEndGetRequestStream(IAsyncResult asyncResult) 12e50a9d-f1bc-d0d8-c8a4-e8d58e73c2ff
05/28/2015 20:09:17.12 w3wp.exe (0x1700) 0x179C AzureCP Lookup 1337 Medium [AzureCP] Search on "Corp.onMicrosoft.com" took 21031ms and found no result for 'test_hourlyunion@Corp.onmicrosoft.com' 12e50a9d-f1bc-d0d8-c8a4-e8d58e73c2ff 05/28/2015 20:40:12.66 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 309ms and found 1 result(s) for 'kelly.ell@Corp.onmicrosoft.com' dce60a9d-d1d2-d0d8-c8a4-e588f09454f8 05/28/2015 20:40:15.84 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 77ms and found 1 result(s) for 'kelly.ell@Corp.onmicrosoft.com' dde60a9d-e1a2-d0d8-c8a4-e7cd6ec5cae2 05/29/2015 00:40:17.45 w3wp.exe (0x1700) 0x1774 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 453ms and found 1 result(s) for 'test_ca_salaried@Corp.onmicrosoft.com' 99f40a9d-5196-d0d8-c8a4-e2944e745cc1 05/29/2015 00:45:39.72 w3wp.exe (0x1700) 0x1780 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 210ms and found 1 result(s) for 'test_ca_salaried@Corp.onmicrosoft.com' e8f40a9d-8149-d0d8-c8a4-ebfbbc5f1518 05/29/2015 01:11:03.88 w3wp.exe (0x1700) 0x1778 AzureCP Lookup 1337 Medium [AzureCP] Search on Corp.onMicrosoft.com took 260ms and found 1 result(s) for 'test_ca_salaried@Corp.onmicrosoft.com' 5cf60a9d-3167-d0d8-c8a4-e981be0ea803 05/28/2015 12:32:11.21 w3wp.exe (0x1700) 0x1780 AzureCP Lookup 1337 Unexpected [AzureCP] Unexpected erro