trouble with IPAddress class

Feb 25 2005 10:57 AM
I am ripping my hair out on this one. The constructor for this class accepts an argument of byte[]: public IPAddress(byte[]); It will not accept a byte array. Even if I do the following it throws an exception. //assume ipa is an instance of IPAddress byte[] a = ipa.GetAddressBytes(); ipa = new IPAddress(a); It throws an exception, i have tried manually creating a byte array with 1,2,3,4,and 5 elements. They all cause an exception. It compiles fine, no arguments until you reach this point at runtime and it throws an exception. Please help! -pfoh

Answers (5)