产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » The remote name could not be resolved
officing - 2011/7/20 15:35:00
The remote name could not be resolved
officing - 2011/7/20 15:37:00
网站可以访问 但后台进不去 一登陆就显示The remote name could not be resolved 求帮忙
officing - 2011/7/20 17:50:00
貌似是服务器方面的问题 先咨询咨询空间商
officing - 2011/7/20 17:53:00
http://bbs.pageadmin.net/showtopic-6645.aspx
officing - 2011/7/20 17:56:00
突然又登上了 www.zghnqyw.org
officing - 2011/7/20 18:04:00
网络不稳定造成的
officing - 2011/7/20 18:08:00
解决The remote name could not be resolved


在C#中,或ASP.NET中使用

string html = "";
CrawledResult cr = new CrawledResult();
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.Accept = "*/*";
request.Timeout = m_Timeout;
HttpWebResponse response = null;
Stream stream = null;
StreamReader reader = null;
Console.WriteLine("Request " + url);
try
{
     response = (HttpWebResponse)request.GetResponse();
     stream = response.GetResponseStream();

…………

这段函数时,如果response出现The remote name could not be resolved问题,则说明很有可能是因为你所在的网络有代理服务器,需要有web.config中添加这样一段:

<system.net>
    <defaultProxy>
      <proxy      
        proxyaddress=http://your proxy address
       />
    </defaultProxy>
</system.net>

再试试,是不是问题解决了
officing - 2011/7/26 10:03:00
情况 IE cookie 历史记录 更换dns
sz_tom - 2011/11/3 23:35:00
我用过一个方法,把空间上的,install.lock文件删除,重新安装设置网站。
1
查看完整版本: The remote name could not be resolved