MG,
What is the exception that is thrown? Also, what are the contents of
the byte array that you are passing in? You should have a 16-element byte
array. The reason for this is to account for the fact that IP addresses are
being widened at some point in time.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"MG" <mg*****@elka.p w.edu.pl> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Hello,
I try to create IPAddress object from array of bytes and it always throws
exception,
even when array of bytes is taken from proper IPAddress object:
IPAddress lAddress=IPAddr ess.Parse("1.2. 3.4");
byte[] lBytes=lAddress .GetAddressByte s();
IPAddress lNewAddress=new IPAddress(lByte s);
Has anyone encountered the problem?
Am I doing something wrong ??
(Im usingFramework 1.1)