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

前端 未结 3 981
栀梦
栀梦 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条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-30 06:08

    I had a similar issue when trying to access a service (old ASMX service). The call would work when accessing via an IP however when calling with an alias I would get the remote name could not be resolved.

    Added the following to the config and it resolved the issue:

    
        
        
    
    

提交回复
热议问题