"ping端时,Endpoint Mapper中没有更多端点可用"异常

Sam*_*Sam 5 c# ping azure

我在共享主机配置中在Azure上运行了一个非常小的网站.我有一堆网络代码,涉及打开套接字,所有这些都能成功运行.

我已经编写了一些发送ping的代码,并且我得到了一个PingException抛出,内部异常Win32Exception与描述有关

There are no more endpoints available from the endpoint mapper
Run Code Online (Sandbox Code Playgroud)

我猜这是因为我正在尝试发送ICMP请求,但任何指导都会受到赞赏,尤其是解决方法.

Jam*_*e F 1

我看到同样的错误。我相信发生这种情况是因为许多 Azure 服务(包括 Web 应用程序)不允许出站 ICMP:https: //social.msdn.microsoft.com/Forums/en-US/71c85bea-572a-4232-87f8-3e45e674f08a/there- azure 网站上不再有可用端点吗?forum=windowsazurewebsitespreview