Skip to content

Commit a2f0cfc

Browse files
authored
Add instructions for dealing with antivirus related access denied errors (#5247)
1 parent a40f558 commit a2f0cfc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/testing/application-specific-api-error-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Error handling with the application-specific JavaScript APIs
33
description: Learn about Excel, Word, PowerPoint, and other application-specific JavaScript API error handling logic to account for runtime errors.
44
ms.topic: error-reference
5-
ms.date: 05/15/2025
5+
ms.date: 06/23/2025
66
ms.localizationpriority: medium
77
---
88

@@ -62,7 +62,7 @@ The following tables list the errors that application-specific APIs may return.
6262
6363
|Error code | Error message | Notes |
6464
|:----------|:--------------|:------|
65-
|`AccessDenied` |You cannot perform the requested operation.|*None* |
65+
|`AccessDenied` |You cannot perform the requested operation.| This may be caused by a user's antivirus software blocking parts of Office. See the [Common errors and troubleshooting steps](../testing/testing-and-troubleshooting.md#common-errors-and-troubleshooting-steps) for "Error: Access denied" for more guidance. |
6666
|`ActivityLimitReached`|Activity limit has been reached.|*None* |
6767
|`ApiNotAvailable`|The requested API is not available.|*None* |
6868
|`ApiNotFound`|The API you are trying to use could not be found. It may be available in a newer version of the Office application. See [Office client application and platform availability for Office Add-ins](/javascript/api/requirement-sets) for more information.|*None* |

docs/testing/testing-and-troubleshooting.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Troubleshoot user errors with Office Add-ins
33
description: Learn how to troubleshoot user errors in Office Add-ins.
44
ms.topic: troubleshooting-problem-resolution
5-
ms.date: 07/08/2024
5+
ms.date: 06/23/2025
66
ms.localizationpriority: medium
77
---
88

@@ -20,6 +20,7 @@ The following table lists common error messages that users might encounter and s
2020
|:-----|:-----|
2121
|App error: Catalog could not be reached|Verify firewall settings."Catalog" refers to AppSource. This message indicates that the user cannot access AppSource.|
2222
|APP ERROR: This app could not be started. Close this dialog to ignore the problem or click "Restart" to try again.|Verify that the latest Office updates are installed, or update with the [Windows Installer](/officeupdates/office-updates-msi).|
23+
|Error: Access denied. `E_ACCESSDENIED (0x80070005)` | The antivirus software installed on the machine might prevent the host app from creating a WebView2 process. To resolve this issue, add an exemption or exclusion to the antivirus for the `.exe` files in the Office root folder (`C:\Program Files\Microsoft Office\root\Office16`) or for the entire Office root folder. If this does not fix the issue, add an exemption or exclusion for the WebView2 process (`C:\Program Files (x86)\Microsoft\EdgeWebView\Application[latest installed version]\msedgewebview2.exe`). |
2324
|Error: Object doesn't support property or method 'defineProperty'|Confirm that Internet Explorer is not running in Compatibility Mode. Go to **Tools** > **Compatibility View Settings**.|
2425
|Sorry, we couldn't load the app because your browser version is not supported. Click here for a list of supported browser versions.|Make sure that the browser supports HTML5 local storage, or reset your Internet Explorer settings. For information about supported browsers, see [Requirements for running Office Add-ins](../concepts/requirements-for-running-office-add-ins.md).|
2526

0 commit comments

Comments
 (0)