West Wind WebSurge
possible error in file StressTester?
Gravatar is a globally recognized avatar based on your email address. possible error in file StressTester?
  gmc
  All
  Feb 10, 2021 @ 02:51am

Hi , I'm trying the code downloaded from the zip file, if I run the project in debug I get the following error:

"System.NullReferenceException
HResult = 0x80004003
Message = Reference to an object not set on an object instance.
Origin = Westwind.Utilities
Stack Trace:
at Westwind.Utilities.InternetTools.HttpClient.DownloadResponse (String url) in C: \ projects \ Westwind.Utilities \ Westwind.Utilities \ InternetTools \ HttpClient.cs: line 772
at Westwind.Utilities.InternetTools.HttpClient.DownloadBytes (String url, Int64 bufferSize) in C: \ projects \ Westwind.Utilities \ Westwind.Utilities \ InternetTools \ HttpClient.cs: line 1180
at Westwind.Utilities.InternetTools.HttpClient.DownloadString (String url, Int64 bufferSize, Encoding encoding) in C: \ projects \ Westwind.Utilities \ Westwind.Utilities \ InternetTools \ HttpClient.cs: line 1046
at WebSurge.StressTester.CheckSite (HttpRequestData reqData, CookieContainer cookieContainer, Int32 threadNumber) in F: \ WestWindWebSurge-master-bis \ WestWindWebSurge-master \ WebSurge.Core \ StressTester.cs: line 434 "

I checked the following code on line 434 :

string httpOutput = client.DownloadString (result.Url);

but neither client nor result are null, when I try to call the same localhost using the downloadable version from here https://websurge.west-wind.com/download.aspx everything works fine, if is possible I demand for a suggestion Thank you Regards

Gravatar is a globally recognized avatar based on your email address. re: possible error in file StressTester?
  Tore Bleken
  gmc
  Feb 10, 2021 @ 03:00am

Please format your message, it's practically unreadable. Read below the editing area when you write a message.
To add a line break to a normal line of text, add two spaces, Enter is not enough.

Gravatar is a globally recognized avatar based on your email address. re: possible error in file StressTester?
  gmc
  Tore Bleken
  Feb 10, 2021 @ 04:59am

Thanks Tore for your notice regarding my message,
sorry for my ignorance, another doubt, because in the call stack a source file is looked for on disk c: when the WebSource project references the utilities dll on
F: \ WestWindWebSurge-master-bis \ WestWindWebSurge-master \ packages \ Westwind .Utilities.3.0.49.6 \ lib \ net46 \ Westwind.Utilities.dll?
Thank you

© 1996-2021