Closed slothbag closed 8 years ago
So I created my own simple testbed app using RpcClient and it seems to work fine.. but when its called from the external library (https://github.com/Nethereum/Nethereum) it throws the error.
Not sure how Nethereum is calling it different to me and triggering the error?
This is really bizarre. So the line HttpResponseMessage httpResponseMessage = httpClient.PostAsync(route, httpContent).Result;
in RpcClient.SendAsync()
is the failure point.
But if I create a really simple project with just the Nethereum specific call then the RpcClient works, but when its within a larger project it throws the error.
The only thing I can think of that is different is in the larger project it is running in a background thread, i'll test that now.
Looks like the culprit was Mono.Security.dll
If its in the folder with the exe then it causes the error. If you remove the dll everything works fine.
Sorry I dont have any mono/linux experience so I would not be the person to ask
On Mon, Oct 17, 2016 at 12:44 PM rquackenbush notifications@github.com wrote:
Interesting. I experienced the same problem, and the Mono.Security.dll workaround worked fine for me. However, if I compile the same source in Visual Studio and copy it over to my linux / machine, I get the same exception, but there is no Mono.Security.dll present.
Here are all of the dlls (except for the ones I build):
Autofac.dll DotNetty.Buffers.dll DotNetty.Buffers.xml DotNetty.Codecs.Mqtt.dll DotNetty.Codecs.dll DotNetty.Codecs.xml DotNetty.Common.dll DotNetty.Handlers.dll DotNetty.Handlers.xml DotNetty.Transport.dll Microsoft.Azure.Amqp.dll Microsoft.Azure.Devices.Client.dll Microsoft.Azure.KeyVault.Core.dll Microsoft.Data.Edm.dll Microsoft.Data.OData.dll Microsoft.Data.Services.Client.dll Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.dll Microsoft.Practices.EnterpriseLibrary.TransientFaultHandling.xml Microsoft.WindowsAzure.Storage.dll Microsoft.WindowsAzure.Storage.pdb MiscUtil.dll MiscUtil.pdb Mono.Posix.dll Mono.Security.dll NModbus4.dll Newtonsoft.Json.dll PCLCrypto.dll PInvoke.BCrypt.dll PInvoke.Kernel32.dll PInvoke.Kernel32.xml PInvoke.NCrypt.dll PInvoke.Windows.Core.dll Serilog.Sinks.ColoredConsole.dll Serilog.Sinks.Console.dll Serilog.Sinks.File.dll Serilog.Sinks.PeriodicBatching.dll Serilog.Sinks.RollingFile.dll Serilog.dll System.Spatial.dll Validation.dll
Any ideas on how to determine which assembly is causing the issue?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/edjCase/JsonRpc/issues/28#issuecomment-254312201, or mute the thread https://github.com/notifications/unsubscribe-auth/AB2GadFYZCtwBvovCsVCPeaAnOHdhEB4ks5q09AWgaJpZM4JeoL0 .
I also had this issue (though not using this project), removing Mono.Security.dll was the solution as well. This issue is literally the only result when searching for this error. Hopefully the Googlebot will pick it up.
@jdluzen Thank you! This helped me too! It's very strange. I had this issue when I upgraded to latest Xamarin/VS 2017 version.
@owlstack please could you explain how did you remove Mono.Security.dll, only from references, or you did something else?
@kgalic Are you also having this issue with latest Xamarin or another thing? Thanks!
I had been using an older Mono 3.2.8 with EdjCase.JsonRpc.Client and it was working well, however I just had to update to the latest Mono 4.4.2 because of incompatibilities with another library, and now the JsonRpc.Client is throwing an exception.
Edit: I tried using the netstarndard, net451, and portable dlls and it made no difference.
Just found this commit, the description says "Not support by Public HttpWebRequest, but HttpClient runs in this mode"
https://github.com/mono/mono/commit/ca2f879ce11ec034a17494316d64406c8a06a615