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.NetworkInformationException (0x80004005):在 System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo() 在 System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo() 的访问被拒绝 System.Net.NetworkInformation.SystemIPGlobalProperties.get_HostName()在 System.Net.NclUtilities.GuessWhetherHostIsLoopback(String host) 在 System.Net.ServicePoint.get_ConnectionLimit() 在 System.Net.ConnectionGroup..ctor(ServicePoint servicePoint, String connName) 在 System.Net.ServicePoint.SubmitRequest(HttpWebRequest 请求,字符串 connName) 在 System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint) 在 System.Net.HttpWebRequest.GetResponse()