Running in azure web app, we encountered weird issue when trying to create the httpClient, this happens all the time to a specific server only.
Error: The system cannot find the file specified | NetworkInformationException | at System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo()
↵ at System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo()
↵ at System.Net.NetworkInformation.SystemIPGlobalProperties.get_DomainName()
↵ at System.Net.CookieContainer..ctor()
↵ at System.Net.Http.HttpClientHandler..ctor()
↵ at HttpClientFactoryLite.DefaultHttpMessageHandlerBuilder..ctor()
↵ at HttpClientFactoryLite.HttpClientFactory.CreateHandlerEntry(String name)
↵ at HttpClientFactoryLite.HttpClientFactory.<>c__DisplayClass10_0.<.ctor>b__1()
↵ at System.Lazy1.CreateValue() ↵--- End of stack trace from previous location where exception was thrown --- ↵ at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ↵ at System.Lazy1.get_Value()
↵ at HttpClientFactoryLite.HttpClientFactory.CreateHandler(String name)
↵ at HttpClientFactoryLite.HttpClientFactory.CreateClient(String name)
This is our code in creating the http client factory:
Hi @uhaciogullari, we need your help please.
Running in azure web app, we encountered weird issue when trying to create the httpClient, this happens all the time to a specific server only.
Error: The system cannot find the file specified | NetworkInformationException | at System.Net.NetworkInformation.SystemIPGlobalProperties.GetFixedInfo() ↵ at System.Net.NetworkInformation.SystemIPGlobalProperties.get_FixedInfo() ↵ at System.Net.NetworkInformation.SystemIPGlobalProperties.get_DomainName() ↵ at System.Net.CookieContainer..ctor() ↵ at System.Net.Http.HttpClientHandler..ctor() ↵ at HttpClientFactoryLite.DefaultHttpMessageHandlerBuilder..ctor() ↵ at HttpClientFactoryLite.HttpClientFactory.CreateHandlerEntry(String name) ↵ at HttpClientFactoryLite.HttpClientFactory.<>c__DisplayClass10_0.<.ctor>b__1() ↵ at System.Lazy
1.CreateValue() ↵--- End of stack trace from previous location where exception was thrown --- ↵ at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() ↵ at System.Lazy
1.get_Value() ↵ at HttpClientFactoryLite.HttpClientFactory.CreateHandler(String name) ↵ at HttpClientFactoryLite.HttpClientFactory.CreateClient(String name)This is our code in creating the http client factory:
private const string HTTP_CLIENT_FACTORY_NAME = "test";