【发布时间】:2013-03-13 08:08:52
【问题描述】:
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.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 服务点,字符串 connName) 在 System.Net.ServicePoint.SubmitRequest(HttpWebRequest 请求,字符串 connName) 在 System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint) 在 System.Net.HttpWebRequest.GetResponse()
【问题讨论】:
-
发生这种情况时,您能否在代码中发布
full堆栈跟踪+相关行?
标签: asp.net azure permissions