Asp.net Windows Azure-网络信息异常(0x80004005):访问被拒绝-HttpWebRequest

Asp.net Windows Azure-网络信息异常(0x80004005):访问被拒绝-HttpWebRequest,asp.net,azure,permissions,Asp.net,Azure,Permissions,GetResponse在我的本地计算机上运行良好,但部署到Windows Azure时,我收到以下异常。我的ASP.NET网站运行我作为新进程创建的exe,正是exe中的代码遇到了下面列出的异常。有人能推荐我可以查看的可能的权限设置来解决此问题吗 HttpWebRequest request = WebRequest.Create(requestUrl) as HttpWebRequest; request.UserAgent = _userAgent; request.Timeout = 50

GetResponse在我的本地计算机上运行良好,但部署到Windows Azure时,我收到以下异常。我的ASP.NET网站运行我作为新进程创建的exe,正是exe中的代码遇到了下面列出的异常。有人能推荐我可以查看的可能的权限设置来解决此问题吗

HttpWebRequest request = WebRequest.Create(requestUrl) as HttpWebRequest;
request.UserAgent = _userAgent;
request.Timeout = 50000;
HttpWebResponse response = request.GetResponse() as HttpWebResponse;
System.Net.NetworkInformation.NetworkInformation异常(0x80004005):访问被拒绝 在System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo()中 在System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo()中 在System.Net.NetworkInformation.SystemIPGlobalProperties.get_HostName()中 在System.Net.NclUtilities.GuessWhetherHostIsLoopback(字符串主机)上 在System.Net.ServicePoint.get_ConnectionLimit()上 位于System.Net.ConnectionGroup..ctor(ServicePoint ServicePoint,字符串connName) 位于System.Net.ServicePoint.SubmitRequest(HttpWebRequest请求,字符串名称) 位于System.Net.HttpWebRequest.SubmitRequest(ServicePoint ServicePoint)
在System.Net.HttpWebRequest.GetResponse()需要更多信息,但我的第一个想法是:


  • 试图将套接字绑定到特权端口(端口DirectoryService COM)无法创建身份验证对象。 复习

    尝试使用特定凭据从asp.net启动进程。例如,使用本地用户凭据。azure可能正在阻止未经验证的进程访问internet。

    发生这种情况时,您能否在代码中发布
    完整的
    堆栈跟踪+相关行?