GetResponse在我的本地机器上正常工作,但部署到Windows Azure时,我收到以下异常。我的ASP.NET网站运行一个我创建的exe文件作为新进程,它是exe中遇到下面列出的异常的代码。任何人都可以建议我可以看看解决这个问题的可能的权限设置?Windows Azure - NetworkInformationException(0x80004005):访问被拒绝 - HttpWebRequest
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.GetFixedInfo() 在System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo() 在系统拒绝 .Net.NetworkInformation.SystemIPGlobalProperties.get_HostName() at System.Net.NclUtilities.GuessWhetherHostIsLoopback(String host) at System.Net.ServicePoint.get_ConnectionLimit() at System.Net.ConnectionGroup..ctor(ServicePoint servicePoint,String connName ) at System.Net.ServicePoint.SubmitRequest(HttpWebRequest请求字符串CONNNAME) 在System.Net.HttpWebRequest.SubmitRequest(的ServicePoint服务点) 在System.Net.HttpWebRequest.GetResponse()
您可以在发生这种情况时在代码中发布'完整'堆栈跟踪+相关行吗? – astaykov 2013-04-02 11:22:03