产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

The remote name could not be resolved [复制链接]

1#
The remote name could not be resolved
分享 转发
TOP
2#

网站可以访问 但后台进不去 一登陆就显示The remote name could not be resolved 求帮忙
TOP
3#

貌似是服务器方面的问题 先咨询咨询空间商
TOP
4#
TOP
5#

突然又登上了 www.zghnqyw.org
TOP
6#

网络不稳定造成的
TOP
7#

解决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>

再试试,是不是问题解决了
TOP
8#

情况 IE cookie 历史记录 更换dns
TOP
9#

我用过一个方法,把空间上的,install.lock文件删除,重新安装设置网站。
TOP
发新话题 回复该主题