web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash

(3) ShareShare
ReportReport
Posted on by 53

We are experiencing an issue with our Dynamics 365 Finance and Operations (D365FO) On-Premise environment. The BridgeService.exe crashes with the following error message:

 

Application: BridgeService.exe  Framework Version: v4.0.30319Description: The application requested process termination through System.Environment.FailFast(string message).  Message: RunAsync failed due to an unhandled exception causing the host process to crash:  Microsoft.Dynamics.AX.LifecycleManager.Proxy.LcsServerException: You do not have sufficient permissions to access the requested resource

 
An error occured in
your request: You do not have sufficient permissions to access the requested
resource.
 

Issue Details

  • The error occurs during the Local Agent installation and setup when attempting to connect to Lifecycle Services (LCS).
  • The Local Agent cannot communicate with LCS, resulting in a permission-related failure.
Categories:
I have the same question (2)
  • Wafaei Profile Picture
    9 on at
    We are facing same issue from yesterday...

    fabric:/LocalAgent/BridgeService

    Microsoft-Dynamics-AX-LocalAgent/Operational

    AX-LocalAgent

    Event ID: 65002

    An error occured in your request: You do not have sufficient permissions to access the requested resource
    at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Microsoft.Dynamics.Operations.Local.LocalAgentEvents.LocalAgentEventHelpers.ErrorPrettify(LocalAgentEventSource source, Exception ex, Int32 errorCode, String format, Object[] values) at LocalAgentCommon.HealthReporter.ReportHealthAndLogEvent(HealthState state, String healthReportSourceId, String healthReportPropertyId, String description, TimeSpan timeToLive) at LocalAgentCommon.HealthReporter.ReportHealthAndLogEvent(HealthState state, String healthReportSourceId, String healthReportPropertyId, String description) at LocalAgentCommon.LCSServerExceptionHandler.HandleLCSServerException(LcsServerException ex, IHealthReporter healthReporter) at Microsoft.Dynamics.LocalAgent.BridgeService.LcsChannelProvider.<FetchChannelQueue>d__5.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task.Finish(Boolean bUserDelegateExecuted) at System.Threading.Tasks.Task`1.TrySetException(Object exceptionObject) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception) at Lcs.DeploymentAgent.Proxy.DeploymentAgentClient.<GetConnectorInfo>d__4.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result) at System.Net.Http.HttpClient.SetTaskCompleted(HttpRequestMessage request, CancellationTokenSource cancellationTokenSource, TaskCompletionSource`1 tcs, HttpResponseMessage response) at System.Net.Http.HttpClient.<>c__DisplayClass59_0.<StartContentBuffering>b__0(Task contentTask) at System.Threading.Tasks.Task.Execute() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution) at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued) at System.Threading.Tasks.TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued) at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(Task task, Boolean needsProtection) at System.Threading.Tasks.Task.ContinueWithCore(Task continuationTask, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions options) at System.Threading.Tasks.Task.ContinueWith(Action`1 continuationAction, TaskScheduler scheduler, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, StackCrawlMark& stackMark) at System.Threading.Tasks.Task.ContinueWith(Action`1 continuationAction, CancellationToken cancellationToken, TaskContinuationOptions continuationOptions, TaskScheduler scheduler) at System.Net.Http.HttpUtilities.ContinueWithStandard(Task task, Action`1 continuation) at System.Net.Http.HttpClient.<>c__DisplayClass55_0.<SendAsync>b__0(Task`1 task) at System.Threading.Tasks.Task.Execute() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution) at System.Threading.Tasks.ThreadPoolTaskScheduler.TryExecuteTaskInline(Task task, Boolean taskWasPreviouslyQueued) at System.Threading.Tasks.TaskScheduler.TryRunInline(Task task, Boolean taskWasPreviouslyQueued) at System.Threading.Tasks.TaskContinuation.InlineIfPossibleOrElseQueue(Task task, Boolean needsProtection) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetResult(TResult result) at Microsoft.Dynamics.AX.LifecycleManager.Proxy.BaseOAuthDelegatingHandler.<SendAsync>d__6.MoveNext() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Threading.Tasks.AwaitTaskContinuation.RunOrScheduleAction(Action action, Boolean allowInlining, Task& currentTask) at System.Threading.Tasks.Task.FinishContinuations() at System.Threading.Tasks.Task`1.TrySetResult(TResult result) at System.Threading.Tasks.TaskCompletionSource`1.TrySetResult(TResult result) at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar) at System.Net.LazyAsyncResult.Complete(IntPtr userToken) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.ContextAwareResult.Complete(IntPtr userToken) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken) at System.Net.HttpWebRequest.ProcessResponse() at System.Net.HttpWebRequest.SetResponse(CoreResponseData coreResponseData) at System.Net.ConnectionReturnResult.SetResponses(ConnectionReturnResult returnResult) at System.Net.Connection.ReadComplete(Int32 bytesRead, WebExceptionStatus errorStatus) at System.Net.LazyAsyncResult.Complete(IntPtr userToken) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken) at System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security._SslStream.ReadFrameCallback(AsyncProtocolRequest asyncRequest) at System.Net.AsyncProtocolRequest.CompleteRequest(Int32 result) at System.Net.FixedSizeReader.CheckCompletionBeforeNextRead(Int32 bytes) at System.Net.FixedSizeReader.ReadCallback(IAsyncResult transportResult) at System.Net.LazyAsyncResult.Complete(IntPtr userToken) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.ContextAwareResult.Complete(IntPtr userToken) at System.Net.LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr userToken) at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped) at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
     
     
     
     
  • CU14020611-0 Profile Picture
    4 on at
    Hi,
     
    We are also facing the same issue.
     
    In our case we have ready staging environnement but BridgeService.exe is failling and we are unable to deploy and stuck with this error.
     
    Microsoft D365 Microsoft.Dynamics.AX.Lifecycle Manager.Proxy.LcsServerException: You do not have sufficient permissions to access the requested resource
      
    If any resolution or findings please do share.
     
    Regards,
    Gaurav
  • Dwiki Maxi Profile Picture
    6 on at
    My D365FO On premises also faced this issue, BridgeService Error. 
     
    Microsoft D365 Microsoft.Dynamics.AX.Lifecycle Manager.Proxy.LcsServerException: You do not have sufficient permissions to access the requested resource.                                                  
     
     
    Have urgent custom to deploy. Please share the resolution.
     
    Thank you,
     
    Dwiki Maxi
  • Verified answer
    Sumit Mejan Profile Picture
    53 on at

    I finally fixed it! 

    If you're facing the same issue, follow these steps:

    1️⃣ Set it up as described here:
    🔗 Microsoft Documentation

    2️⃣ Reconfigure the local agent.

    Hope this helps!

  • Dwiki Maxi Profile Picture
    6 on at
    I already update the Connector and Reconfigure local agent but still got the error.
     
    An error occured in your request: You do not have sufficient permissions to
    access the requested resource.
    any advice ?
  • Sumit Mejan Profile Picture
    53 on at
    Hi Dwiki Maxi
     
    Can you share your Connector settings page and the Microsoft Entra details? Or perhaps you might have entered the ObjectId incorrectly.
  • Dwiki Maxi Profile Picture
    6 on at
    I setting both with same value. 
     
     
     
     
     
    I have my environment stucked on Downloading state with those errors. Maybe its because my env stucked so its load the old config ?
  • CU21020029-1 Profile Picture
    2 on at
    Hi Dwiki Maxi
     
    After setting you need to reinstall the agent
    .\LocalAgentCLI.exe cleanup <path of config.json>
    .\LocalAgentCLI.exe install <path of config.json>
    If installed, the Downloading state will be cleared.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans