Skip to content

Commit 44efc01

Browse files
Merge pull request #10416 from MicrosoftDocs/main
Auto Publish – main to live - 2025-12-20 02:00 UTC
2 parents 42be66b + d55ba82 commit 44efc01

3 files changed

Lines changed: 43 additions & 1 deletion

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: An Attempt was Made to Access a Socket in a Way Forbidden by its Access Permissions Message
3+
description: This article discusses possible causes and solutions for the message "An attempt was made to access a socket in a way forbidden by its access permissions" in Azure App Service.
4+
author: JarrettRenshaw
5+
manager: dcscontentpm
6+
ms.topic: troubleshooting-general
7+
ms.date: 12/19/2025
8+
ms.author: jarrettr
9+
ms.reviewer: v-ryanberg
10+
ms.service: azure-app-service
11+
ms.custom: sap:Availability, Performance, and Application Issues
12+
---
13+
# "An attempt was made to access a socket in a way forbidden by its access permissions" message
14+
15+
This article discusses possible causes and solutions for the message "An attempt was made to access a socket in a way forbidden by its access permissions" in Azure App Service.
16+
17+
## Symptom
18+
19+
You see the message "An attempt was made to access a socket in a way forbidden by its access permissions."
20+
21+
## Cause 1
22+
23+
This error typically occurs if the outbound TCP connections on the virtual machine (VM) instance are exhausted. In App Service, limits are enforced for the maximum number of outbound connections that can be made for each VM instance.
24+
25+
## Solution 1
26+
27+
For more information, see [Cross-VM numerical limits](https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#cross-vm-numerical-limits).
28+
29+
## Cause 2
30+
31+
This error might also occur if you try to access a local address from your application.
32+
33+
## Solution 2
34+
35+
For more information, see [Local address requests](https://github.com/projectkudu/kudu/wiki/Azure-Web-App-sandbox#local-address-requests).
36+
37+
## Resources
38+
39+
For more information about outbound connections in your web app, see the blog post about [outgoing connections to Azure websites](https://www.freekpaans.nl/2015/08/starving-outgoing-connections-on-windows-azure-web-sites/).
40+

support/azure/app-service/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ items:
1717
href: ./capture-memory-dumps-app-service.md
1818
- name: Availability, performance, and application FAQs
1919
href: web-apps-performance-faqs.md
20+
- name: An attempt was made to access a socket in a way forbidden by its access permissions message
21+
href: socket-forbidden-access-permissions-message.md
2022
- name: ASP.NET Core applications hosted in App Service stop responding
2123
href: asp-net-core-apps-stop-responding.md
2224
- name: Error 403 - This web app is stopped message

support/azure/virtual-machines/windows/windows-azure-guest-agent-tools-vmassist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ The following table lists the current checks and findings together with any pote
111111
| Check for binaries | Verifies that the guest agent .exe files (WindowsAzureGuestAgent.exe and WaAppAgent.exe) exist and is also used to help determine that the Guest Agent was installed.<br><br>If this check doesn't exist, it's likely that the guest agent has to be installed. |
112112
| Status of agent services | Verifies that the guest agent services (WindowsAzureGuestAgent and RdAgent) exist. Also used to help determine whether the guest agent was installed.<br><br>If this check doesn't exist, it's likely that the guest agent has to be installed. If it is installed, make sure that it's set to `Running` and that the StartType is `Automatic`. |
113113
| Status of `winmgmt` service | Verifies that the winmgmt service is running. |
114-
| Status of `KeyIso` service | Verifies that the `KeyIso (CNG Key Isolation)` service is running.<br><br> See [Needs to be Public](windows-azure-guest-agent#remote-procedure-call-rpc-issues---rdcrypt-initialization-failed). |
114+
| Status of `KeyIso` service | Verifies that the `KeyIso (CNG Key Isolation)` service is running.<br><br>See [Solution: Start the CNG Key Isolation service](windows-azure-guest-agent#solution-start-the-cng-key-isolation-service). |
115115
| Check if agent services/processes have crashed | This checks whether the Guest Agent services and processes have failed during the past day. If the incident is only a one-time event, it might not be important unless it occurs at the time when the issue is reported. However, if the services constantly fail, the incident must be investigated.<br><br>Start the investigation by looking in the WaAppAgent.log and system and application event logs. |
116116
| Checks if `stdregprov` is working | The VM agent MSI uses WMI StdRegProv to access the registry. If WMI isn't working correctly, the MSI can't set the RdAgent service path from the registry, and the MSI installation fails. <br><br> See [Guest Agent installation fails because of faulty WMI](windows-azure-guest-agent#guest-agent-installation-fails-because-of-faulty-wmi). |
117117
| Agent is installed | Returns True if the guest agent is installed. Otherwise, the guest agent has to be installed. |

0 commit comments

Comments
 (0)