I am trying to develop UWP with gRPC. I got channel ArgumentNullException
on release build, but debug build is fine and gRPC also works fine. It seems to related to UWP limitation (loopback). I also use checknetisolation
command to add exception for my package. But it's still fail. Is there any advice?
Updated more information, I already enabled debug trace on release build but callstack is still empty:
ChannelCredentials.Insecure
is null.new Channel()
will get ArgumentNullException
.Anyway, ArgumentNullException
happens on new Channel()
.
var cert = ChannelCredentials.Insecure;
var channel = new Channel("127.0.0.1:55168", cert);
System.ArgumentNullException: 'Value cannot be null.'
System.ArgumentNullException
HResult=0x80004003
Message=Value cannot be null.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
Exception thrown: 'System.ArgumentNullException' in
System.Private.CoreLib.dll
Value cannot be null.
Google.Protobuf version: 3.15.8
Grpc version: 2.37.0
User contributions licensed under CC BY-SA 3.0