Thursday, June 16, 2011

The type initializer for ‘System.Net.DNS’ threw an exception.

This error has come up and may be related to a known issue with Microsoft .NET 1.1. If there are more than 50 bound protocols across all network adapters, this and other socket-related exceptions appear.

On the above page is a link to a program called enum.exe that will list the bound protocols. If the list is more than 50 long, you can either try to reduce the number of bound protocols or install a hotfix from Microsoft. Unfortunately, this hotfix must be requested from Microsoft Support Services; there is no public download link.