This error to be due?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

I’m not a .NET developer but from the error message it seems that the content of the string being evaluated in your if statement is expected to be a resolvable domain/subdomain name but the string provided to this function is not a domain/hostname that can be resolved by DNS or is malformed.