Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

ADX Studio 7 could not connect to PROD CRM

Posted on by

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

  • RE: ADX Studio 7 could not connect to PROD CRM

    It looks like your portal could not connect to your CRM server.  You did not provide any details on your CRM deployment.  Is it on-premise or online?  If online, which geo is it in?  Did you check your Office 365 service dashboard to see if there were connectivity issues with CRM at the time?  This could also be related to a password expiry issue - check the credentials that the portal is using to connect to CRM and ensure that you can connect to CRM using those credentials.

    There should be no change in the portal behavior with an intermittent issue in CRM online.  Even if your CRM is upgraded, it will not change the portal behavior.  If you have bugs in the portal, check that they are not due to your own code (by using the out-of-box master portal with no modifications to see if they repro).  If they repro, open a support ticket on the bugs that affect you.  If they do not repro, check your code changes in the master portal.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans