pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc/lang/mono and network access



Hi,

I have installed lang/mono-6.12.0.122 and compiled simple network access
program written in C#.

It is based on:
https://gist.github.com/bryanbarnard/8102915/

However compiled SimpleHttpClient.exe cannot resolve FQDN
with DNS.
If IP address is used, HTTP GET cannot get any date.

Anyone has the same problem? Or lang/mono can access network for you?

The error message is as follows:
GET: + http://deuterium.ryoon.net/~ryoon/dell-xps-13-9300/ihidev/linux-lspci.txt

Unhandled Exception:
System.Net.Http.HttpRequestException: No such host is known ---> System.Net.Sockets.SocketException: No such host is known
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00110] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at HTTP_Test.program.HTTP_GET () [0x000fe] in <5e9075a90b74471c948079002d42dc38>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_1 (System.Object state) [0x00000] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Http.HttpRequestException: No such host is known ---> System.Net.Sockets.SocketException: No such host is known
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x00110] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
   --- End of inner exception stack trace ---
  at System.Net.Http.ConnectHelper.ConnectAsync (System.String host, System.Int32 port, System.Threading.CancellationToken cancellationToken) [0x001ac] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpConnectionPool.CreateConnectionAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x00134] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpConnectionPool.WaitForCreatedConnectionAsync (System.Threading.Tasks.ValueTask`1[TResult] creationTask) [0x000a2] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpConnectionPool.SendWithRetryAsync (System.Net.Http.HttpRequestMessage request, System.Boolean doRequestAuth, System.Threading.CancellationToken cancellationToken) [0x00089] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.RedirectHandler.SendAsync (System.Net.Http.HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) [0x000ba] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at System.Net.Http.HttpClient.FinishSendAsyncBuffered (System.Threading.Tasks.Task`1[TResult] sendTask, System.Net.Http.HttpRequestMessage request, System.Threading.CancellationTokenSource cts, System.Boolean disposeCts) [0x0017e] in <3e7c6d4eca7342a8b3481d0a097b3f4b>:0 
  at HTTP_Test.program.HTTP_GET () [0x000fe] in <5e9075a90b74471c948079002d42dc38>:0 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_1 (System.Object state) [0x00000] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <6749e374ac5f4d7e9e29a1b5dde1fba3>:0 

Thank you.

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index