Open bananamufu opened 6 months ago
Any help on this?
While "A specified logon session does not exist" is appearing in your logs, that is not the issue. Those exceptions are logged and caught, but not cancelling the task.
The actual issue occurring is from this section of the logs:
2024-02-12 16:00:40.3563 | FTL | bolt.Session :: Method not found: 'System.String Microsoft.Xrm.Sdk.Organization.OrganizationDetail.get_SchemaType()'.|EXCEPTION: System.MissingMethodException: Method not found: 'System.String Microsoft.Xrm.Sdk.Organization.OrganizationDetail.get_SchemaType()'.
at Microsoft.PowerPlatform.Dataverse.Client.ConnectionService.<RefreshInstanceDetails>d__187.MoveNext()
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine)
at Microsoft.PowerPlatform.Dataverse.Client.ConnectionService.RefreshInstanceDetails(IOrganizationService dvService, Uri uriOfInstance)
at Microsoft.PowerPlatform.Dataverse.Client.ConnectionService.get_ConnectedOrganizationDetail()
at bolt.dataverse.client.CdsServiceClient.get_ConnectedOrgFriendlyName()
System.MissingMethodException
typically indicates a version mismatch between .dll files.
Historically, this issue has happened most often when either old versions of CRM or other tooling would register assemblies in the machine's GAC (Global Assembly Cache), so you may want to check if your self-hosted agent has Microsoft.Xrm.Sdk.dll
registered there.
Since the beginning of February all tasks that connect to an environment fail on my self-hosted agents. It's working fine on Azure hosted agents. I tried reinstalling the agent, updating pac cli, renewing the pat and tried a different machine altogether, to no avail.
pac-log.txt: