Questions tagged [system.net.webexception]

system.net.webexception is a .NET exception is thrown when an error occurs while accessing the network through a pluggable protocol.

system.net.webexception is a .NET exception is thrown when an error occurs while accessing the network through a pluggable protocol.

174 questions
0
votes
2 answers

Exception while reading HTML page using c#

I am using below code to read HTML code: string urlAddress = "http://google.com"; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(urlAddress); HttpWebResponse response =…
0
votes
1 answer

FTP stream request stream issue

The error I am getting is web exception. The requested URI is invalid for this FTP command. I am unsure as how to fix it. Anyone got any idea's? Thanks private void SendFile(FileInfo file) { Console.WriteLine("ftp://" +…
user3774466
  • 23
  • 1
  • 4
0
votes
0 answers

httpwebrequest fails to load rss feed

I am attempting to load a page I've received from an RSS feed and I receive the following WebException: Cannot handle redirect from HTTP/HTTPS protocols to other dissimilar ones. with an inner exception: Invalid URI: The hostname could not be…
shadonar
  • 1,114
  • 3
  • 16
  • 40
0
votes
1 answer

C# Web Service "Remote name could not be resolved"

I'm using a web reference in a c# Windows Forms application. I have two servers that I'm connecting to using a SOAP web service. Each server has its own domain name (e.g. one is abcd.co.uk, the other abcd.tv). I can set up both web services in the…
Greg
  • 3
  • 1
  • 2
0
votes
1 answer

How to make a function return after a specific amount of time

I have a Proxy testing function. Inside it I have a catch block and after a specified amount of time (TIMEOUT) if the proxy is not good I return a false flag. The problem is that once every 10 times the function hangs even though there's no…
kawa
  • 422
  • 4
  • 16
0
votes
2 answers

Sending Image as a byte[] as a web service method arguments

i m facing a problem in which when i send a small size byte array byte[] s = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; then it will received and inserted in database successfully but when it comes to a bytes array of image converted to a bytes[] then i…
Assassino
  • 31
  • 1
  • 3
  • 11
0
votes
1 answer

How do I receive a file sent from WebClient.UploadFile()?

Since this simplistic test worked (passing a string in the body): Server code: public string PostArgsAndFile([FromBody] string value, string serialNum, string siteNum) { string s = string.Format("{0}-{1}-{2}", value, serialNum, siteNum); …
0
votes
0 answers

How to check if a HTTP address is responding without throwing exceptions?

WebClient and HttpWebRequest throw WebException when connecting to an unavailable address. I've seen some techniques that use BeginGetResponse that avoid throwing exceptions in this case. But they rely heavily on the Async keyword. Is there any way…
0
votes
0 answers

Active Directory calls getting System.net.webexception

I have an asp .net program that talks to Active Directory server through an end point. I am performing three operation. GetAllActiveDirectoryUsers(), GetAllActiveDirectoryGroups(), SaveUserToGroupMapping() In GetAllActiveDirectoryUsers() am pulling…
SARAVAN
  • 14,571
  • 16
  • 49
  • 70
0
votes
1 answer

WebException error from HttpWebRequest

I am getting an error like this Can any one tell me the possible reason for these type of exception unhandled exception of type 'System.Net.WebException' occurred in system.dll Additional information: The underlying connection was closed: Unable to…
peter
  • 8,158
  • 21
  • 66
  • 119
0
votes
0 answers

This method is not supported by this class error @ client.DownloadFile

I get this strange error suddenly saying System.Net.WebException : The request was abborted: The Request was canceled. ---> System.NotSupportedException : This method is not supported by this class . I dont know why is occurring cause it used to …
0
votes
3 answers

WebException thrown in WinRT app that cannot be caught

This issue is really bizarre and has eluded my attempts at debugging. It only occurs when running the app on a Surface tablet. It does not occur on an Asus tablet or while running in Visual Studio. In a particular scenario where Airplane mode has…
jokeefe
  • 1,836
  • 4
  • 22
  • 27
0
votes
1 answer

SignalR WebRequest is being aborted

I have a function in a WCF web service that is in charge of sending a notification through SignalR every time a Evento entry is made, also it checks if the Cluster related to the Evento entry had three or more entries in the last hour, if so, then…
Uriel Arvizu
  • 1,876
  • 6
  • 37
  • 97
0
votes
0 answers

Remote server returns error 503 Server Unavailable

I have a client server application written in C# .Net 2.0. I have had the client/server response/request code running for 4 years(!). Recently, on a specific machine, the client can not connect to server: on the code line: HttpWebResponse response…
0
votes
2 answers

System.Net.WebException: The request failed with HTTP status 401: Unauthorized

Ok, so I have this .NET 1.1 application (written by someone way back) which is like a document repository and it worked fine in the past. I suddenly get this error when trying to search for items/documents: Page: /CPDEPforIT/SearchResults.aspx…
1 2 3
11
12