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
0 answers

VB.NET WinForm Web Connection stopped working when project was upgraded from .NET 3.5 to 4.0

I've got a strange issue that's left me scouring Google for the past couple of hours, but I haven't found anything even close to this. I have a VB.NET Winforms project containing a class that dynamically generates an image URL for a remotely hosted…
0
votes
1 answer

C# SOAP Web Service The server committed a protocol violation. Section=ResponseStatusLine

I have an application that calls a web service... I get an error that I am just pulling the few hairs I have left on my head out maybe someone can help. Here is the code: Service_RetrieveIntervalDataserviceagent srv = new…
kevin c
  • 795
  • 1
  • 14
  • 29
0
votes
0 answers

HTMLWorker.parse() incorrect html code

The program I make is supposed to convert Html to pdf with iTextsharp. but everytime i run the program, there is a error with the HTMLWorker.parse(stringreader reader);. The exception says that it cannot find the network path. public string…
Emon
  • 63
  • 1
  • 2
  • 5
0
votes
0 answers

Request for the permission of type 'System.Net.WebPermission, Failed

Edit FIXED!: I feel silly; So after days of investigation and debugging and what not, the answer is/was that the websites were setup the same except for one place I never thought to look; the directories on the live site were inadvertently created…
PCPete
  • 1
  • 3
0
votes
1 answer

System.Net.WebException is not being caught

I have a strange issue happening. I have some code which must do an http post to a client's server. Their post returns content to me, which I need to show to my user. If thee is a problem, I want to trap the error and inject my own content to let…
Josh
  • 16,286
  • 25
  • 113
  • 158
0
votes
1 answer

VB.NET server Protocol Violation "Section=ResponseStatusLine" using XML

I'm trying to send an XML snippet to my localhost server. I've been able to successfully connect and (I think) successfully send the snippet. However, when I run my program, I get an unhandled WebException. The full text of the exception detail is…
Matt
  • 2,576
  • 6
  • 34
  • 52
-1
votes
1 answer

Suppression of WebException

Is there a way to suppress the occurrence of WebException when the http status code is 500 in C # WebClient? WebException is created by StackTrace, which slows down the system. This is especially serious if WebExceptions occur frequently.
kyouno
  • 49
  • 1
  • 7
-1
votes
1 answer

What's causing this exception?

What's wrong with this? I get the exception An unhandled exception of type 'System.Net.WebException' occurred in System.dll Additional information: An exception occurred during a WebClient request." Here's the part of the code with the…
-1
votes
1 answer

System.Net.Sockets.SocketException

I have an application that makes a sync request on an external resource via http(s). Every few weeks I get the following exception Exception: System.Net.WebException - Message: Unable to connect to the remote server Inner Exception:…
David
1 2 3
11
12