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.

References

http://support.microsoft.com/default.aspx?scid=kb;en-us;815209
BUG: You receive a "The operation has timed-out" error message when you access a Web service or when you use the IPAddress class

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.

http://download.microsoft.com/download/9/3/0/930e1ecb-a6c6-445f-bd79-82fc3e66f009/enum.exe
Link to enum.exe program to list installed protocols.

This can also be downloaded from our website at http://www.ndpcci.com/Downloads/Newtin/enum.zip

No comments: