nooby nooby - 1 year ago 220
C# Question

C# System.NullReferenceException NSoup

for (int x = 0; x < 50; x++)
NSoupClient.Connect("" + x).UserAgent("Firefox").Timeout(10000).Get();

This piece of code will throw me this error (and it always stops when the int is 5)

[![An unhandled exception of type 'System.NullReferenceException' occurred in NSoup.dll][1]][1]

enter image description here

Answer Source

Seems You are not the only having the issue -

Seems as an issue with library itself.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download