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:
  • CU21020029-1 Profile Picture
    2 on at
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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.

     
  • Dwiki Maxi Profile Picture
    6 on at
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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 ?
  • Sumit Mejan Profile Picture
    53 on at
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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 ?
  • Verified answer
    Sumit Mejan Profile Picture
    53 on at
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash

    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
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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
  • CU14020611-0 Profile Picture
    4 on at
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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
  • Wafaei Profile Picture
    9 on at
    Issue with D365FO On-Premise: Insufficient Permissions in LCS and BridgeService Crash
    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)
     
     
     
     

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans