Exception := GETLASTERROROBJECT; WebException := Exception.InnerException; Response := WebException.Response; Response.GetResponseStream; //error here StreamReader := StreamReader.StreamReader(Response.GetResponseStream); ReqString := StreamReader.ReadToEnd;
Name DataType Subtype Length Exception DotNet System.Exception.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' WebException DotNet System.Net.WebException.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' Response DotNet System.Net.WebResponse.'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' StreamReader DotNet System.IO.StreamReader.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' ReqString DotNet System.String.'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
Answers
Refer below .net example to understand:
https://docs.microsoft.com/en-us/dotnet/api/system.net.webresponse.getresponsestream?view=net-5.0
something like the below declaration in C#:
// Obtain a 'Stream' object associated with the response object.
Stream ReceiveStream = myWebResponse.GetResponseStream();
First of all, thanks for taking the time to look into my post.
I actually tried this just after I posted the question to see if it made any difference, unfortunately I am still getting the same error:
metapackConstructor:=metapackConstructor.MetaPackProgram();