I have noticed that on one of our citrix server Dns.GetHostEntry(string.Empty).HostName failing with the below error message
Length cannot be less than zero.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
We have deployed our application to 1000s machines including some of citrix servers and they dont have any problems with this. I dont know why this error is occuring only one citrix server. Could you please tell me what could be wrong.
Please dont suggest anything else except solution to this problem because our application is already in production to 1000s machine and we can not change the application. There must be a some problem with machine but we dont know. If we figured out how Dns.GetHostEntry(string.Empty).HostName works then probably we can nail down the problem.
This problem's solution definately deserves 500 points.