Questions tagged [system.net]

System.Net is a namespace of the .NET framework. It provides a simple programming interface for many of the protocols used on networks today.

System.Net is a namespace of the .NET framework. It provides a simple programming interface for many of the protocols used on networks today.

References

297 questions
0
votes
1 answer

socket.connect throw exception

I want to learn socket programming in C#, and related settings. I've download a demo from a site. when i set Remote Host IP address to my local address it connect to server (my pc) and send receive works. however when i set Remote Host IP address…
r.zarei
  • 1,261
  • 15
  • 35
0
votes
2 answers

WebClient SSL Error: "System.Net.WebException: The SLL connection could not be established"

Hi, dear stranger! I made a console application for my telegram bot. On my laptop it works perfectly, but on my PC which i want to use as a server this code gets an error. I spent the whole day trying to fix it and went through a lot of similar…
0
votes
1 answer

No connection could be made because the target machine actively refused it - TCP

I need help with my situation. Erorr is "No connection could be made because the target machine actively refused it" when run client.Connect(). Thank you! private void btnSend_Click(object sender, EventArgs e) { IPAddress ipAddress =…
Punfake
  • 1
  • 1
0
votes
0 answers

I Can't Take Data From Net With HtmlAgilityPack throwing NullReferenceExeption Error

I can't do anything using XPath, I don't know why this isn't working? I tried many ways still I ended up with NullReferenceException error. I really need your help :/ You can look at the code full size here (https://notepad.pw/share/lyugaxmg) I…
0
votes
0 answers

System.TypeLoadException : Could not load type System.Net.HttpStatusCode, netstandard, while decoding custom attribute: (null)

The problem occurs between a Xamarin.IOS type project and a .NetStandard2.0 library. I have created a small solution (link here) demonstrating the problem. To achieve this, the Xamarin project uses the Newtonsoft nuget. Situation: In the…
0
votes
1 answer

C# Read all response from an HTTP response Windows System.Net.Http

This is my method, an async HTTP POST : using System; //main data types using System.Net.Http; //for HTTP client using System.Threading.Tasks; //for Async Request/Response using…
Nick
  • 483
  • 1
  • 6
  • 15
0
votes
0 answers

Twitter Search API returns null Object

I have been using the Tweetinvi library to search tweets(.NET 4.7.2) for my application. Till last week the application worked fine without issues. Recently I have noticed that the application would return an error for a few minutes and then go back…
s_om
  • 661
  • 2
  • 9
  • 24
0
votes
1 answer

How can I get "How many Network data(Mobile or WiFi) used when I call API in c# desktop application"

How can I get "How many Network data(Mobile or WiFi) used when I call API in c# desktop application" I want to know How can i get total used data when i call API service I have done following code: if (!NetworkInterface.GetIsNetworkAvailable()) …
0
votes
0 answers

Is it possible to get a list of IPEndPoints on a remote pc on my network using c#

As the title suggests, I'd like to know if it's possible to get a list of System.Net.IPEndPoint on a remote server. I know this can be done on a local machine using ipGlobalProperties.GetActiveTcpListeners as I've done it, but as far as I can tell,…
Karl
  • 912
  • 2
  • 16
  • 28
0
votes
0 answers

How to diagnose why async TCP System.Net.Socket send (Begin/End Send) not actually sending anything?

I have an HTTP server and client (they are my code both, C#, HttpListener on the server, HttpWebrequest on a client). Every client makes approx 6 HTTP requests to the server per minute (if all is OK). There can be up to 10000 clients per server. The…
0
votes
1 answer

How to monitor number of connections to a remote computer for ASP.NET application?

I am trying to solve non deterministic hangouts in AST.NET application. I have a sneaking suspicion that maxconnection limit is reached. So my question is how can I verify my suspicion? Is there any performance counter or any method like…
Jakub Šturc
  • 35,201
  • 25
  • 90
  • 110
0
votes
1 answer

Multi Threaded File Downloader Using Proxy c#

My goal is to create a class that gets a link and download it to local drive. The program should support downloading from http\https\ftp links and moreover in my work i have a dedicated proxy(with no authentication) for it. the main system is…
RonenIL
  • 273
  • 3
  • 8
  • 17
0
votes
1 answer

c# dns.GetHostEntry() not returning valid ip address

I inherited code that makes the call to Dns.GetHostEntry("10.1.12.180") (or by using the dns of the machine) and the IPHostEntry that is returned has a different ip address "10.100.160.18" If I run the code on the same subdomain (10.1.12) it works. …
0
votes
1 answer

The operation has timed out while reading xml file

I am getting the following error while I am reading an remote xml file to convert currency on HttpWebRequest.GetResponse() section. the method that I used TugberkUgurlu_CurConverter.ConverterClass.ConvertActionForTL() is reading an xml file and get…
tugberk
  • 57,477
  • 67
  • 243
  • 335
0
votes
0 answers

Fail to detect the language of content input, error 401

Fail to detect the language of the content input. I've double checked the API key and it's correct. When I try to detect the language, it appears error 401. // ***** DETECT LANGUAGE OF TEXT TO BE TRANSLATED private string…