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
1 answer

HttpWebRequest.GetRequestStream() Timeout

I have a service that builds an HttpWebRequest and sets its body with a JSON string to be sent to a system's API. At the point of calling for the request stream, I am ocassionaly getting a WebException timeout error. Why would it error at this…
James Anderbard
  • 374
  • 2
  • 6
  • 20
0
votes
1 answer

SoapHttpClientProtocol throws NameResolutionFailure, not ProxyNameResolutionFailure

SoapHttpClientProtocol throws a WebException with status NameResolutionFailure when the proxy name is invalid. How then can I tell if it's the proxy or the destination that is in err? I'd rather not perform a check if the proxy server exists when a…
Dlongnecker
  • 3,008
  • 3
  • 25
  • 40
0
votes
0 answers

Error calling webservice from Service

I am referenced a webservice and it works fine on my local machine. But when i promote my code to Test machine, i get below error: Nancy.RequestExecutionException: Oh noes! ---> System.Net.WebException: Unable to connect to the remote server…
Jay
  • 1,037
  • 5
  • 23
  • 41
0
votes
0 answers

Getting System.Net.WebException :The operation has timed out

I am working on a project in which i have to upload order from CSV file into database using batch process. Job is working prefect at back-end but suddenly a month ago it stop working, someone advice me to restart the server and it solves the issue…
0
votes
3 answers

How can i download data from server (ESP8266 WiFi module)?

I want to download string from local server. To be precise from an ESP8266 wifi module. I'm posting a pure string there like"TEST". I'm trying using (WebClient client = new WebClient()) { string s = client.DownloadString("http://192.168.0.13"); …
Damian Szewc
  • 305
  • 2
  • 10
0
votes
1 answer

Problem running web server through perl script

I am starting a web server(Cassini) on a remote machine through a perl script from my local machine. I am also specifying the virtual path, root directory settings, etc. However, I am not able to request files from the server as its giving me…
gofeddy
  • 579
  • 8
  • 20
0
votes
1 answer

404 Error Web Exception

the application is sending request to service but from httpGetresponse service url (https://prddb02:14448/service.svc) it returns 404 error. What can be the reason for the errors? When i run the https://prddb02:14448/service.svc(dev server) in web…
0
votes
1 answer

Error: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

I have the tool which consumes a web service. I have generated a self signed cert for the web service, exported it using certificate manager to a local path. I'm following the following msdn code to add the certificate into by webservice.…
Ekta
  • 338
  • 2
  • 9
  • 26
0
votes
1 answer

Avoid exception in WebRequestObject

I am reading data from a website as follows: webRequestObj = (HttpWebRequest)WebRequest.Create("http://localhost/503errorPage.php"); theResponse = webRequestObj.GetResponse(); theResponseStream = theResponse.GetResponseStream(); theStreamReader =…
user389753
  • 153
  • 1
  • 1
  • 4
0
votes
1 answer

System.Net.WebException: The operation has timed out

I have a complex code , in one section I send a rest webrequest to a web service and get its response for rest of job , the response have variant size , some times its heavy , on IIS Express on VS there isn't any problem but when going live on IIS…
0
votes
1 answer

How do I get to the response when I recieve a ServerProtocolViolation exception?

I am trying to make an HttpWebRequest to a remote sensor with an HTML server on it to pull back the data. I think the problem is that the web server has some issue with it. I can get the web page to render in a web browser and the data is visible.…
tnktnk
  • 512
  • 2
  • 7
  • 20
0
votes
3 answers

C# HttpWebResponse, WebException

So, I am fairly new to C#, but I have worked with other languages. Currently I am coding a custom MineCraft launcher. I am using the Yggdrasil Authentication Documentation to help me do this. It says: If a request was successful the server will…
0
votes
1 answer

Request canceled exception under HttpWebRequest.Abort

My application is querying my server every few seconds for updates. After leaving it running for about 3 days I observed that the app crashed with the following stack trace. As you may know, when getting an exception in a working thread, it can't be…
Mugen
  • 8,301
  • 10
  • 62
  • 140
0
votes
1 answer

Stream send create new blasts returns (422) unprocessable entity

I am trying to schedule a new blast to send emails. I am calling the below URL https://app.streamsend.com/audiences/1/blasts.xml posting the below xml to the service Customer Service
krisjans
  • 5
  • 8
0
votes
0 answers

Windows Phone Web Exception 404 not found but server gets requests

As the title says I am trying to run a Windows Phone App which is supposed to communicate with a Restful API(running on localhost). My server is actually getting my Http requests but Visual Studio keeps throwing this error: "The remote server…