Why does name resolution fail from one app but not another?Why does C# forbid generic attribute types?What does the @ symbol before a variable name mean in C#?How do I update the GUI from another thread?Retrieving Property name from lambda expressionThe name 'ConfigurationManager' does not exist in the current contextCall one constructor from anotherIf strings are immutable in .NET, then why does Substring take O(n) time?Does anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?Why not inherit from List<T>?gRPC compression in C#
Difference between -| and |- in TikZ
Open a doc from terminal, but not by its name
Diode in opposite direction?
Customize circled numbers
How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?
Freedom of speech and where it applies
How do I implement a file system driver driver in Linux?
What is the grammatical term for “‑ed” words like these?
Is it improper etiquette to ask your opponent what his/her rating is before the game?
Why is Arduino resetting while driving motors?
Greco-Roman egalitarianism
Drawing a topological "handle" with Tikz
What's the difference between 違法 and 不法?
How do ground effect vehicles perform turns?
Could the E-bike drivetrain wear down till needing replacement after 400 km?
Folder comparison
Varistor? Purpose and principle
Should I stop contributing to retirement accounts?
Two-sided logarithm inequality
How to align and center standalone amsmath equations?
Can the Supreme Court overturn an impeachment?
Is possible to search in vim history?
Flux received by a negative charge
Does the Mind Blank spell prevent the target from being frightened?
Why does name resolution fail from one app but not another?
Why does C# forbid generic attribute types?What does the @ symbol before a variable name mean in C#?How do I update the GUI from another thread?Retrieving Property name from lambda expressionThe name 'ConfigurationManager' does not exist in the current contextCall one constructor from anotherIf strings are immutable in .NET, then why does Substring take O(n) time?Does anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?Why not inherit from List<T>?gRPC compression in C#
I am starting a gRPC server on my local machine using the machine's name as the host name:
new ServerPort("MyMachine", 9017, ServerCredentials.Insecure),
I am running this server code via Visual Studio. I can then connect to that gRPC endpoint just fine by running a client app, also from VS:
var channel = new Channel("MyMachine: 9017", ChannelCredentials.Insecure);
I can successfully call a simple "ping" API. I can also telnet MyMachine 9017 without error.
However, when I then try and connect from another app (LINQPad), I get an error:
RpcException: Status(StatusCode=Unavailable, Detail="Name resolution failure")
The gRPC trace for "channel,api,handshaker,op_failure" is as follows:
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfaceinit.cc:155: grpc_init(void)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccoreexttransportchttp2clientinsecurechannel_create.cc:91: grpc_insecure_channel_create(target=MyMachine:9017, args=00000208CD5C3D60, reserved=0000000000000000)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacechannel.cc:285: grpc_channel_get_target(channel=00000208CD6D47C0)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1905: grpc_call_start_batch(call=00000208CD6F6020, ops=0000003041F7C790, nops=6, tag=00000208CD6BC440, reserved=0000000000000000)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[0]: SEND_INITIAL_METADATA(nil)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[1]: SEND_MESSAGE ptr=00000208CD541EC0
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[2]: SEND_CLOSE_FROM_CLIENT
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[3]: RECV_INITIAL_METADATA ptr=00000208CD6BC478
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[4]: RECV_MESSAGE ptr=00000208CD6BC490
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[5]: RECV_STATUS_ON_CLIENT metadata=00000208CD6BC498 status=00000208CD6BC4B0 details=00000208CD6BC4B8
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:699: cq_end_op_for_next(cq=00000208CD5815A0, tag=00000208CD6BC440, error="No Error", done=00007FF849B55C60, done_arg=00000208CD6F6F20, storage=00000208CD6F6F70)
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:1059: RETURN_EVENT[00000208CD5815A0]: OP_COMPLETE: tag:00000208CD6BC440 OK
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:959: grpc_completion_queue_next(cq=00000208CD5815A0, deadline=gpr_timespec tv_sec: 9223372036854775807, tv_nsec: 0, clock_type: 1 , reserved=0000000000000000)
I0308 16:34:58.618583 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:562: grpc_call_unref(c=00000208CD6F6020)
It literally says "no error", so I'm very confused as to what's going on here. Can anyone tell me why I can connect when running from VS, but not from outside it?
c# networking
add a comment |
I am starting a gRPC server on my local machine using the machine's name as the host name:
new ServerPort("MyMachine", 9017, ServerCredentials.Insecure),
I am running this server code via Visual Studio. I can then connect to that gRPC endpoint just fine by running a client app, also from VS:
var channel = new Channel("MyMachine: 9017", ChannelCredentials.Insecure);
I can successfully call a simple "ping" API. I can also telnet MyMachine 9017 without error.
However, when I then try and connect from another app (LINQPad), I get an error:
RpcException: Status(StatusCode=Unavailable, Detail="Name resolution failure")
The gRPC trace for "channel,api,handshaker,op_failure" is as follows:
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfaceinit.cc:155: grpc_init(void)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccoreexttransportchttp2clientinsecurechannel_create.cc:91: grpc_insecure_channel_create(target=MyMachine:9017, args=00000208CD5C3D60, reserved=0000000000000000)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacechannel.cc:285: grpc_channel_get_target(channel=00000208CD6D47C0)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1905: grpc_call_start_batch(call=00000208CD6F6020, ops=0000003041F7C790, nops=6, tag=00000208CD6BC440, reserved=0000000000000000)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[0]: SEND_INITIAL_METADATA(nil)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[1]: SEND_MESSAGE ptr=00000208CD541EC0
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[2]: SEND_CLOSE_FROM_CLIENT
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[3]: RECV_INITIAL_METADATA ptr=00000208CD6BC478
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[4]: RECV_MESSAGE ptr=00000208CD6BC490
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[5]: RECV_STATUS_ON_CLIENT metadata=00000208CD6BC498 status=00000208CD6BC4B0 details=00000208CD6BC4B8
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:699: cq_end_op_for_next(cq=00000208CD5815A0, tag=00000208CD6BC440, error="No Error", done=00007FF849B55C60, done_arg=00000208CD6F6F20, storage=00000208CD6F6F70)
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:1059: RETURN_EVENT[00000208CD5815A0]: OP_COMPLETE: tag:00000208CD6BC440 OK
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:959: grpc_completion_queue_next(cq=00000208CD5815A0, deadline=gpr_timespec tv_sec: 9223372036854775807, tv_nsec: 0, clock_type: 1 , reserved=0000000000000000)
I0308 16:34:58.618583 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:562: grpc_call_unref(c=00000208CD6F6020)
It literally says "no error", so I'm very confused as to what's going on here. Can anyone tell me why I can connect when running from VS, but not from outside it?
c# networking
I'd try other tracers, such as client_channel, client_channel_routing, cares_resolver etc. The "No error" message is an internal thing and has nothing to do with whether the call as a whole has succeeded. You should also specify which platform and grpc version you're using.
– Jan Tattermusch
Mar 18 at 12:35
add a comment |
I am starting a gRPC server on my local machine using the machine's name as the host name:
new ServerPort("MyMachine", 9017, ServerCredentials.Insecure),
I am running this server code via Visual Studio. I can then connect to that gRPC endpoint just fine by running a client app, also from VS:
var channel = new Channel("MyMachine: 9017", ChannelCredentials.Insecure);
I can successfully call a simple "ping" API. I can also telnet MyMachine 9017 without error.
However, when I then try and connect from another app (LINQPad), I get an error:
RpcException: Status(StatusCode=Unavailable, Detail="Name resolution failure")
The gRPC trace for "channel,api,handshaker,op_failure" is as follows:
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfaceinit.cc:155: grpc_init(void)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccoreexttransportchttp2clientinsecurechannel_create.cc:91: grpc_insecure_channel_create(target=MyMachine:9017, args=00000208CD5C3D60, reserved=0000000000000000)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacechannel.cc:285: grpc_channel_get_target(channel=00000208CD6D47C0)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1905: grpc_call_start_batch(call=00000208CD6F6020, ops=0000003041F7C790, nops=6, tag=00000208CD6BC440, reserved=0000000000000000)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[0]: SEND_INITIAL_METADATA(nil)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[1]: SEND_MESSAGE ptr=00000208CD541EC0
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[2]: SEND_CLOSE_FROM_CLIENT
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[3]: RECV_INITIAL_METADATA ptr=00000208CD6BC478
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[4]: RECV_MESSAGE ptr=00000208CD6BC490
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[5]: RECV_STATUS_ON_CLIENT metadata=00000208CD6BC498 status=00000208CD6BC4B0 details=00000208CD6BC4B8
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:699: cq_end_op_for_next(cq=00000208CD5815A0, tag=00000208CD6BC440, error="No Error", done=00007FF849B55C60, done_arg=00000208CD6F6F20, storage=00000208CD6F6F70)
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:1059: RETURN_EVENT[00000208CD5815A0]: OP_COMPLETE: tag:00000208CD6BC440 OK
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:959: grpc_completion_queue_next(cq=00000208CD5815A0, deadline=gpr_timespec tv_sec: 9223372036854775807, tv_nsec: 0, clock_type: 1 , reserved=0000000000000000)
I0308 16:34:58.618583 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:562: grpc_call_unref(c=00000208CD6F6020)
It literally says "no error", so I'm very confused as to what's going on here. Can anyone tell me why I can connect when running from VS, but not from outside it?
c# networking
I am starting a gRPC server on my local machine using the machine's name as the host name:
new ServerPort("MyMachine", 9017, ServerCredentials.Insecure),
I am running this server code via Visual Studio. I can then connect to that gRPC endpoint just fine by running a client app, also from VS:
var channel = new Channel("MyMachine: 9017", ChannelCredentials.Insecure);
I can successfully call a simple "ping" API. I can also telnet MyMachine 9017 without error.
However, when I then try and connect from another app (LINQPad), I get an error:
RpcException: Status(StatusCode=Unavailable, Detail="Name resolution failure")
The gRPC trace for "channel,api,handshaker,op_failure" is as follows:
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfaceinit.cc:155: grpc_init(void)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccoreexttransportchttp2clientinsecurechannel_create.cc:91: grpc_insecure_channel_create(target=MyMachine:9017, args=00000208CD5C3D60, reserved=0000000000000000)
I0308 16:34:56.919349 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacechannel.cc:285: grpc_channel_get_target(channel=00000208CD6D47C0)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1905: grpc_call_start_batch(call=00000208CD6F6020, ops=0000003041F7C790, nops=6, tag=00000208CD6BC440, reserved=0000000000000000)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[0]: SEND_INITIAL_METADATA(nil)
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[1]: SEND_MESSAGE ptr=00000208CD541EC0
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[2]: SEND_CLOSE_FROM_CLIENT
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[3]: RECV_INITIAL_METADATA ptr=00000208CD6BC478
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[4]: RECV_MESSAGE ptr=00000208CD6BC490
I0308 16:34:58.578574 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:1511: ops[5]: RECV_STATUS_ON_CLIENT metadata=00000208CD6BC498 status=00000208CD6BC4B0 details=00000208CD6BC4B8
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:699: cq_end_op_for_next(cq=00000208CD5815A0, tag=00000208CD6BC440, error="No Error", done=00007FF849B55C60, done_arg=00000208CD6F6F20, storage=00000208CD6F6F70)
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:1059: RETURN_EVENT[00000208CD5815A0]: OP_COMPLETE: tag:00000208CD6BC440 OK
I0308 16:34:58.588581 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecompletion_queue.cc:959: grpc_completion_queue_next(cq=00000208CD5815A0, deadline=gpr_timespec tv_sec: 9223372036854775807, tv_nsec: 0, clock_type: 1 , reserved=0000000000000000)
I0308 16:34:58.618583 0 T:srcgithubgrpcworkspace_csharp_ext_windows_x64srccorelibsurfacecall.cc:562: grpc_call_unref(c=00000208CD6F6020)
It literally says "no error", so I'm very confused as to what's going on here. Can anyone tell me why I can connect when running from VS, but not from outside it?
c# networking
c# networking
asked Mar 8 at 6:37
me--me--
202420
202420
I'd try other tracers, such as client_channel, client_channel_routing, cares_resolver etc. The "No error" message is an internal thing and has nothing to do with whether the call as a whole has succeeded. You should also specify which platform and grpc version you're using.
– Jan Tattermusch
Mar 18 at 12:35
add a comment |
I'd try other tracers, such as client_channel, client_channel_routing, cares_resolver etc. The "No error" message is an internal thing and has nothing to do with whether the call as a whole has succeeded. You should also specify which platform and grpc version you're using.
– Jan Tattermusch
Mar 18 at 12:35
I'd try other tracers, such as client_channel, client_channel_routing, cares_resolver etc. The "No error" message is an internal thing and has nothing to do with whether the call as a whole has succeeded. You should also specify which platform and grpc version you're using.
– Jan Tattermusch
Mar 18 at 12:35
I'd try other tracers, such as client_channel, client_channel_routing, cares_resolver etc. The "No error" message is an internal thing and has nothing to do with whether the call as a whole has succeeded. You should also specify which platform and grpc version you're using.
– Jan Tattermusch
Mar 18 at 12:35
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55057942%2fwhy-does-name-resolution-fail-from-one-app-but-not-another%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55057942%2fwhy-does-name-resolution-fail-from-one-app-but-not-another%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I'd try other tracers, such as client_channel, client_channel_routing, cares_resolver etc. The "No error" message is an internal thing and has nothing to do with whether the call as a whole has succeeded. You should also specify which platform and grpc version you're using.
– Jan Tattermusch
Mar 18 at 12:35