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

Occasional Exception Unhandled thrown although Break option is deactivated

I've set up my exceptions so that an error in the code Try Using Client As New WebClient Client.DownloadFile(sExtract, sDownloadTo) End Using Catch ex As Exception …
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
0 answers

.NET Screensaver Doesn't work with .DEFAULT User

I've created a custom screensaver that works fine when users are logged in and have no activity for x amount of time. I would like this screensaver to be utilized when no one is logged in as well such as instances when there is a reboot. I applied…
0
votes
1 answer

Trying to identify unkown code we have to work on?

This question may seem a bit dumb, but I am learning new code everyday like most of us. I have a brief pseudo code a company provided with little to no support we are working on a citation program. what language utilizes "xmlResult" …
Technupe
  • 4,831
  • 14
  • 34
  • 37
0
votes
0 answers

How to trace a specific endpoint on source System.Net

I'm trying to setup tracing for a specific endpoint in my WCF application. I've tried with Filters on the "messageLogging" element in servicemodel, but it doesn't seem to apply on the sources System.Net and System.Net.Sockets. I can't run tracing on…
0
votes
1 answer

System.Net.WebClient Class in .Net CompactFramework 3.5?

I need to comunicate with a Server that give me async answers (streamer connection). I find this: http://msdn.microsoft.com/en-en/library/ms144211%28v=VS.80%29.aspx that generate this…
Leen15
  • 113
  • 1
  • 14
0
votes
0 answers

DNS.GetHostEntry not working after updating .net framework version

I am connecting to FTP and uploading files , when creating endpoint I am using dns.getHostentry method. This is working fine in .net framework 3.5 but when updated the version to 4 or later it is not working properly. For some of the sites it is…
0
votes
0 answers

WebClient DownloadString method stops downloading string after few hours of running

I have an EXE which downloads string from an API hosted on cloud. this exe serves well upto one or two hours, it downloads all the string from requested URI but after certain requests/ one to two hours,, it does not download any string. I also tried…
0
votes
1 answer

HTTPListerner not responding to while statement

I am creating an HTTPListener that will execute some code with data that is POST to the URI the script is listening to: $timeout = New-Timespan -Minutes 10 $sw = [Diagnostics.Stopwatch]::StartNew() $listener = New-Object…
Montel Edwards
  • 400
  • 5
  • 14
0
votes
2 answers

Check if file exist on server to read and write

I'm trying to use System.Web; to read and write into text document located on server from winform desktop application. First of all need to check if file exist. Not sure why, but System.Web does not works it is added for References as…
nikorio
  • 671
  • 4
  • 16
  • 28
0
votes
1 answer

Unable to complete download using DownloadFileAsync

I am trying to download a file using simple basic webclient instructions, however the file is not downloading completing. If I am trying to download a 10mb/100mb file, it either downloads a 7kb file or an empty file. I am just using a ProgressBar to…
Arun Kumar
  • 235
  • 3
  • 18
0
votes
1 answer

Cannot construct a WebException

I have a method where I call DownloadData on a WebClient. This method throws an exception since the URL returns 404. This is all expected by specifications since the resource does not exist. Web client will throw a WebException and I have to read…
Robert
  • 2,407
  • 1
  • 24
  • 35
0
votes
1 answer

exception in xamarin.forms in System.Net.Http

I have this exception that i printed in my log that cause the app to crash in android, motorola device xt1058. The problem is that I don't have the device and I got the log from the client who sent me the log file. I have no idea where the logs…
asaf
  • 958
  • 1
  • 16
  • 38
0
votes
0 answers

Intermittent "Authentication failed because the remote party has closed the transport stream." - Mongo C#

Since switching to Mongo SSL connection, using the C# Driver (v1.11.0), we have been getting intermittent errors in production with this error message: Authentication failed because the remote party has closed the transport stream. Our connection…
Paul Grimshaw
  • 19,894
  • 6
  • 40
  • 59
0
votes
0 answers

Download a file behind login wall C#

Been stuck here for a while now. Found few links on SO for this but didn't work for me... In the answer the code is given without comments and since I'm doing this first time I didn't get it... And couldn't get it to work, gives me 403 forbiden…
Kula
  • 1
  • 1
  • 2
0
votes
2 answers

completion port thread is leaking when client terminates the connection

I have a ASP.NET WebApi self-hosted application. HttpSelfHostConfiguration is configured as below HttpSelfHostConfiguration config = new HttpSelfHostConfiguration("http://0.0.0.0:54781") { TransferMode = TransferMode.StreamedResponse, …