nooby nooby - 8 months ago 88
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


Seems You are not the only having the issue -

Seems as an issue with library itself.