Questions tagged [webexception]
81 questions
1
vote
2 answers
Handling HttpPostedFile in C#
I have a C#.net web application that can send (by POST method) files to another application. In the second application I have the below code to retrieve the posted file.
HttpPostedFile hpf = Request.Files[0];
Now I can save the file by the…

Sudha
- 2,078
- 6
- 28
- 53
1
vote
0 answers
System.Net.WebException thrown by HttpWebRequest.GetRequestStream not caught
I'm creating a simple (console) application to remote control a video device (encoder) using HTTP requests with C#. I need to send XML data to the device, and the device responds by sending XML data.
The code I'm using to do this request is the…

killuminiiiou
- 11
- 2
1
vote
1 answer
How to receive HTTP using C# when the responding server does not send back any HTTP headers?
I am trying to receive HTTP content from a small embedded Chinese device. The device's inbuilt web server accepts headers but does not return any on the response.
ie
Raw Response: (2 lines, 1 is the XML the second is blank \n)

Jeremy
- 3,880
- 3
- 35
- 42
1
vote
1 answer
recieving error The file you are attempting to save or retrieve has been blocked from this Web site by the server administrators.0x800401e6
After building and deploying, checked the solution management from Central administration and it's up, a simple web service method that only created a Document Library list with a few columns when trying to retrieve the wsdl or even just by calling…

iris
- 103
- 3
- 11
0
votes
2 answers
Cannot download image using WebClient in ASP.NET
In one of the mobile site, i created a webpage, wherein i am using webclient to the download the image from the main site(main site of mobile) and resize using bitmap, and get the image to the mobile site, the image path for the main site works…

Abbas
- 4,948
- 31
- 95
- 161
0
votes
1 answer
How to set MaxBufferSize/MaxReceivedMessageSize in Windows Phone 7?
I've been having trouble querying a web server for information from my Windows Phone 7 app, and from my research, I've traced it back to MaxBufferSize/MaxReceivedMessageSize being too low. The problem is, I can't figure out how to change it. Every…

404 Not Found
- 3,635
- 2
- 28
- 34
0
votes
0 answers
Problems with ftp
I have a website on ASP.NET Framework 4.8. It downloads images from the ftp server. During the test run of the project from a working computer, everything works as it should, i.e. everything is downloaded normally. But when I publish a project with…

poireau
- 9
- 2
0
votes
0 answers
WebException The operation has timed out after 100 seconds C#
I am having an issue in calling specific WS's when the response takes longer than 100 seconds to be generated.
Following my code:
try {
XmlDocument soapEnvelopeXml = CreateSoapEnvelope(request);
HttpWebRequest webRequest =…

Roberto
- 1
- 2
0
votes
0 answers
WebClient DownloadStringAsync Method returns null
I am using this C# code in LINQPad 6 (Free Edition) to download data from a webpage
void Main()
{
string a = "https://www1.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp";
WebClient w = new…

Romeo
- 57
- 8
0
votes
0 answers
How to count HTTP responses per web page using WebExtension
Using WebExtensions, I am trying to write a content script which would count the number of HTTP responses per web page.
I just started looking into WebExtensions, so I may be completely off the track, but so far my approach has been to modify the…

Peter Jankuliak
- 3,464
- 1
- 29
- 40
0
votes
0 answers
WCF service timeout over internet
When consuming WCF in a local environment, everything is working just fine.
But when consuming WCF hosted on some external location (Azure etc.), for request process that lasts longer than 1 minute, I get the error:
System.TimeoutException: 'The…

user3239349
- 877
- 1
- 12
- 33
0
votes
0 answers
Can no longer get response from web request when 400 returned
I am having trouble making web service calls in an iOS application built with Xamarin. This EXACT same code, that builds a request and uses HTTPWebRequest GetResponse() to get the response, used to work but now it is crashing when trying to get the…

iPaul
- 75
- 1
- 6
0
votes
1 answer
How to catch ODataErrorException when I am making an OData call through HttpWebRequest in C#?
I am trying to call an OData service from my .Net console application using c#.
I am using HttpWebRequest to make the call.
Now if there is an OData specific error, for example, an invalid JSON payload, then an ODataErrorException is thrown from…

Sagnik Majumder
- 71
- 5
0
votes
1 answer
What causes "Unable to connect to the remote server"
I've got a downloader app. It works fine for me, but one user send me bug report saying that System.Net.WebException is throwed with 'Unable to connect to the remote server', while it works for the link good on my pc. It works with other links but…

blez
- 4,939
- 5
- 50
- 82
0
votes
1 answer
WebException: The underlying connection was closed: An unexpected error occurred on a send
We are developing a .Net application (compiled for .net 4.0) that communicates to a soap web service.
The application has been working fine on several machines when retreiving the http web response content. However on one of the machines (Windows…

Javier Galindo
- 1
- 1
- 2