How do I connect to my friend via Nintendo Wifi when I have error code 51099?

So, I have a Nintendo DS lite and IM trying to trade with my friend in pokemon pearl, but the thing is when I connect it says I have error code 51099. Please Help.
1 answer 1