We have deployed similar code for our ADX Studio Portal from pre-production environment to production environment last Wednesday. From Thursday to Friday, everything was working as expected. Come weekend, Microsoft had a Service Maintenance which caused the site to be down. At Sunday night, portal was back without any code changes. But after some testing this week, there appeared numerous bugs on our production site which was not encountered before and on other environments.
CRM Version: Microsoft Dynamics Online 2016 Update (8.1)
ADX Studio: Version 7.0.22.0
We had tried isolating the issue by copying the code on PROD IIS to our local IIS but we still encountering the issue. Kindly see below stack trace for details on the issue.
03-16-2017 04:51:16 An exception occured : One or more errors occurred.
03-16-2017 04:51:16 Exception stack trace : at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner`1 source, ParallelOptions parallelOptions, Action`1 simpleBody, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable`1 source, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Action`3 bodyWithStateAndIndex, Func`4 bodyWithStateAndLocal, Func`5 bodyWithEverything, Func`1 localInit, Action`1 localFinally)
at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable`1 source, Action`1 body)
at Adxstudio.Xrm.Services.RemoteEndpointOrganizationServiceCache.SendRequest(IEnumerable`1 roles, String internalEndpointName, IEnumerable`1 sites, Object message, String virtualPath, IPAddress localAddress)
at Adxstudio.Xrm.Services.RemoteEndpointOrganizationServiceCache.RemoteRemove(OrganizationServiceCachePluginMessage message)
at Adxstudio.Xrm.Services.RemoteOrganizationServiceCache.Remove(OrganizationServiceCachePluginMessage message)
at Adxstudio.Xrm.Services.RemoteOrganizationServiceCache.Execute[T](OrganizationRequest request, Func`2 execute, Func`2 selector, String selectorCacheKey)
at Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute[T](OrganizationRequest request, Func`2 selector, String selectorCacheKey)
at Microsoft.Xrm.Client.Services.CachedOrganizationService.Execute[T](OrganizationRequest request)
at Adxstudio.Xrm.Services.CrmOnlineOrganizationService.<>n__4(OrganizationRequest request)
at Adxstudio.Xrm.Services.CrmOnlineOrganizationService.<>c__DisplayClass20_0.<Execute>b__0()
at Microsoft.Practices.TransientFaultHandling.RetryPolicy.ExecuteAction[TResult](Func`1 func)
at Adxstudio.Xrm.Services.CrmOnlineOrganizationService.Execute(OrganizationRequest request)
at Adxstudio.Xrm.AspNet.CrmEntityStore`2.Execute(IEnumerable`1 requests)
at Adxstudio.Xrm.AspNet.CrmEntityStore`2.<UpdateAsync>d__18.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.AspNet.Identity.TaskExtensions.CultureAwaiter.GetResult()
at Microsoft.AspNet.Identity.UserManager`2.<UpdateAsync>d__5.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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Adxstudio.Xrm.AspNet.Identity.CrmUserManager`2.<InitializeUserAsync>d__9.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Site.Areas.Take2.Pages.IndividualCompletion.btnSubmit_Click(Object sender, EventArgs e)
03-16-2017 04:51:16 Inner exception is : Unable to connect to the remote server
03-16-2017 04:51:16 Inner exception stack trace : Unable to connect to the remote server
Any help would be greatly appreciated.
*This post is locked for comments