Microsoft Configuration Manager
Troubleshooting

How to Handle Configuration Manager Synchronous Errors by Using Managed Code

In brief

The page’s `ms.service` metadata changed from `microsoft-endpoint-configuration-manager` to `configuration-manager`.

What Intune admins need to know

Use the `configuration-manager` service label when filtering or categorizing this documentation.

This summary was assembled from the tracked documentation change. Verify important details in the full Microsoft Learn article.

Documentation change

The comparison below shows only the changed extract. Use the full-page view for complete context.

How to Handle Configuration Manager Synchronous Errors by Using Managed Code

To handle a Configuration Manager error that is raised in a synchronous query, you catch the SmsQueryException exception. Because this exception is also caught by SMS_Exception], you can catch it and the SmsConnectionException exception in the same catch block.

Daily Intune.Admin.News

Get daily email updates

Get a concise summary of the latest Microsoft Intune updates delivered straight to your inbox.

Loading the secure signup form…