System.Net.WebException: The remote name could not be resolved:

前端 未结 3 982
栀梦
栀梦 2020-11-30 05:24

I am testing an endpoint that I am experiencing some issues with.

I am simply using HttpClient in a loop that performs a request each hour.



        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 06:10

    Open the hosts file located at : **C:\windows\system32\drivers\etc**.

    Hosts file is for what?

    Add the following at end of this file :

    YourServerIP YourDNS

    Example:

    198.168.1.1 maps.google.com

提交回复
热议问题