Windows error 0x800704CD, -2147023667

Detailed Error Information

CONNECTION_INVALID[1]

MessageAn operation was attempted on a nonexistent network connection.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code1229 (0x04cd)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x000004cd.

Questions

82votes
6answers

The remote host closed the connection. The error code is 0x800704CD

I receive error emails from my website whenever an exception occurs. I am getting this error: > The remote host closed the connection. The error code is 0x800704CD and don't know why. I get about 30 a day. I can't reproduce the error either so can't track down the issue. [...] read more
asp.net
iis-7
26votes
1answer

MSDeploy "Hangs" on MSDeployPublish

Trying to get MSDeploy working and it "hangs" on the MSDeployPublish task. It says > "Start Web Deploy Publish the Application/package to > https://myserver:8172/msdeloy.axd?site=mysite ... Starting Web deployment task > from source: archiveDir(path to archive) to Destination: auto()." And it just stops. It will sit like this for 30 minutes, [...] read more
iis-7
msdeploy
12votes
3answers

ASP.Net when trying to read xml file, "An operation was attempted on a nonexistent network connection"

string url = "http://www.example.com/feed.xml"; var settings = new XmlReaderSettings(); settings.IgnoreComments = true; settings.IgnoreProcessingInstructions = true; settings.IgnoreWhitespace = true; settings.XmlResolver = null; settings.DtdProcessing = DtdProcessing.Parse; settings.CheckCharacters = false; var request = (HttpWebRequest)WebRequest.Create(url); request.Timeout = 900000; request.KeepAlive = true; request.IfModifiedSince = lastModified; var response = (HttpWebResponse)request.GetResponse(); Stream stream; stream = response.GetResponseStream(); stream.ReadTimeout [...] read more
c#
asp.net
xml
azure
10votes
4answers

IIS ASP.Net Website - ManagedPipelineHandler Error ( An operation was attempted on a nonexistent network connection)

I am experiencing a strange issue. I have an ASP.Net web application that uses Forms Authentication. If I open the log-in page and there is a couple of minutes of inactivity, the log-in attempt times out or IE / FireFox display "Cannot display this page". If there is no pause [...] read more
asp.net
iis-7
windows-server-2008
6votes
1answer

Stream.WriteAsync throws The remote host closed the connection exception

I have an asp.net webforms application and to retrieve video from database that saved in varbinary format and show it as html5 video tag. after a googled it, i found a way that i should play it asynchronously using ASP.Net WebApi, it works fine First problem When video played first [...] read more
asp.net
asp.net-web-api
webforms
video-streaming
html5-video
6votes
1answer

WebAPI PushStreamContent The remote host closed the connection

I am trying to use WebAPI within an MVC site to stream video with a PushStreamContent object. I have read several how tos on this (including this frequently cited post @ strathweb.com and still can't seem to get this working. Currently, the video does not play in the browser. As [...] read more
c#
asp.net
asp.net-web-api
video-streaming
pushstreamcontent
5votes
1answer

Howto upload big files 2GB+ to .NET Core API controller from a form?

While uploading a big file via Postman (from a frontend with form written in php I have the same issue) I am getting a 502 bad gateway error message back from the Azure Web App: > 502 - Web server received an invalid response while acting as a gateway or [...] read more
c#
.net
azure
azure-storage-blobs
core
3votes
2answers

HTML5 video - ashx handler - seek

I'm trying to use an ashx handler as an HTML5 video source. I can achieve this, but I can not move forward further on the video that what has already buffered. I can see on the network tab using a standard MP4 source that seeking forward creates another request, but [...] read more
html
video
video-streaming
html5-video
ashx
3votes
0answers

Server Sent Events with ASP.Net is not communicating properly

Im trying to get SSE working. I have a simple web with two buttons. Each one send a POST request to the server that adds a message to a list. When the eventsource is listening, the server checks the list once each second and sends all the available messages to [...] read more
javascript
c#
asp.net
server-sent-events
3votes
1answer

Nancy application error being swallowed by OWIN?

I have a Nancy app which i've recently updated to use OWIN/Katana. For some reason, my "real" errors are now being hidden. This is the only generic error i receive: > A Task's exception(s) were not observed either by Waiting on the Task or > accessing its Exception property. As [...] read more
.net
.net-4.5
owin
nancy
2votes
2answers

Visual Studio 2010 - web deploy times out - what to do?

My MVC2 web project is deployed using the VS 2010 "web deploy" feature. It used to run fine but now it is timing out more often than not with this error message: Web deployment task failed.((10/11/2010 1:01:59 a.m.) An error occurred when the request was processed on the remote computer.) [...] read more
c#
visual-studio-2010
asp.net-mvc-2
web-deployment-project
2votes
0answers

Sql Server Reporting Services Export fails due to custom http module within website hosted in IIS

I am experiencing some problems while trying to export reports to PDF (or any format). I have an asp.net MVC 3 website hosted on IIS 7.5 on a windows server 2008 R2 box. The website allows reports to be viewed via SQL Server Reporting Services. This all works fine until [...] read more
asp.net-mvc
iis
reporting-services
2votes
1answer

How to catch this SignalR exception

I have an ASP.NET Web Api that uses SignalR to communicate real-time data to mobile clients. Everything is working well, but I see an exception in my trace logs and I can't seem to catch or handle this exception: Application: 2014-05-20T03:24:57 PID[2088] Warning SignalR exception thrown by Task: System.AggregateException: One [...] read more
c#
asp.net
signalr
async-await
2votes
2answers

ASP.NET How to get HttpException ErrorCode

I'm trying to catch and handle a specific HttpException, namely "The remote host closed the connection. The error code is 0x800704CD." My intention is to add a Catch for the HttpException to the relevant Try block and test for the error code that is generated. Sample code: Try // Do [...] read more
asp.net
httpexception
2votes
1answer

web api TaskScheduler.UnobservedTaskException

I have recently published an asp.net web api to a production web site. On production about once a day the an unhandled exception causes the web site process to recycle: > An unhandled exception occurred and the process was terminated. Application > ID: /LM/W3SVC/2/ROOT/oasis Process ID: 9236 Exception: > System.AggregateException [...] read more
asp.net
.net
asp.net-web-api
task-parallel-library
2votes
1answer

IIS stopped Working using ASP WEB API

I am developing web application using (C#) and (ASP.NET Web API) and MS SQL 2008 R2 and hosting on IIS7 in Windows Server 2008, All APIs return data in JSON When i call any API from any web browser and refresh the page to call again before the first call [...] read more
asp.net
asp.net-mvc-3
c#-4.0
iis-7
1vote
0answers

ASP MVC Applicaiton hangs suddenly in IIS 8.5

We have 3 Servers One is for infrastructure like domain server and 2 servers with an ASP MVC and a webapi site. A maanged load balancer balances the load to server 2 and 3 For many monthes everything works fine, but since the last weeks we notice ocassionally hangs of [...] read more
iis
windows-server-2012
iis-8.5
1vote
0answers

POSTing files >~6MB to IIS7 site results in aborted I/O operation and dropped network connection

I don't even know where to begin with this, mostly because I can't even determine the root of the problem -- I can only find symptoms. I'm just going to describe what it occurring, details of diagnostics, and what I've already done to try to fix it in the hopes [...] read more
iis
iis-7
1vote
0answers

Server-side Blazor loses authentication state occassionally

I'm working on an server-side Blazor application which supports the "normal" build-in Identity login as well as AzureAD authentication (where the authenticated user is then mapped to a local one). The authentication and authorization themselves work fine. Logged in via build-in Identity I get an authentication cookie. Logged in via [...] read more
blazor-server-side
1vote
0answers

ServiceStack SSE shut down IIS application pool

My company has chat application built on ServiceStack SSE (v.4.5.14). Recently, we keep getting following exceptions which sometimes can make IIS application pool shut down. System.Web.HttpException: The remote host closed the connection. The error code is 0x800704CD. at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush (System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a) at [...] read more
servicestack
1vote
1answer

Interrupted downloads when downloading a file from Web Api (remote host closed error 0x800704CD)

I have read near 20 other posts about this particular error, but most seem to be issues with the code calling Response.Close or similar, which is not our case. I understand that this particular error means that typically a user browsed away from the web page or cancelled the request [...] read more
exception
asp.net-web-api
download
1vote
1answer

Signalr not sending data on Azure host

I am developing a web app where I use two hubs on a specific page to push notifications from server to clients and handle messages between clients. However I've come across a scenario oon my Azure production app service where the notifications hub won't transmit data back to the client [...] read more
c#
azure
signalr
1vote
1answer

ServiceStack SSE connections while IIS application pool recycles

When IIS application pool recycles, all the ServiceStack SSE connections will be rebuilt. If there are a lot of connections, say 2000 or even more, a lot of exceptions are thrown on the server side. It says the connection is closed by the remote host(the client). I am wondering why [...] read more
servicestack
1vote
0answers

Stucked request on IIS 10 when we require or accept client certificate for authentication

We have issues with stucked requests on IIS 10 only when client certificate is Requireed or Accepted on a specific site (SSL Settings). All requests are stucked in »BeginRequest« state for about a minute. While those requests are on hold, process "IIS worker" uses high percentage of processor (more requests [...] read more
iis
client-certificates
1vote
0answers

The remote host closed the connection. The error code is 0x800704CD. Firefox creates issue

using (Stream stream = _client.GetDownloadStream(filePath)) { long toRead = length; stream.Seek(startIndex, SeekOrigin.Begin); using (Stream outStream = context.Response.OutputStream) { // The reported bytes are off, we have to manually keep count // of read bytes while (toRead > 0 && stream.Read(buffer, 0, chunk) > 0) { long readSize = toRead < [...] read more
c#
.net
firefox
audio
audio-streaming
1vote
1answer

Export solution in Microsoft Dynamics CRM 2011 fails

Exporting a solution in Microsoft Dynamics CRM 2011 used to work fine. However, since this week there is something odd happening with exporting a solution. Where I used to get a pop-up window that showed Dynamics was busy creating a ZIP-file for my solution, this window now does not pop-up [...] read more
export
dynamics-crm-2011
dynamics-crm
microsoft-dynamics
1vote
1answer

Client disconnect hangs IIS application pool

I have several .NET 3.5 sites running the same code base on a Windows 2008 R2 64 bit IIS 7.5 web server. We are having trouble with a process that allows the user to manage their own files on the server (upload, download, delete). Before we moved the sites from [...] read more
c#
web-applications
iis-7.5
windows-server-2008-r2
1vote
0answers

I can't receive a file which is over 268435456 bytes from HttpWebResponse Stream

In my project, a silverlight client send a "POST" request to a http handler using HttpWebRequest and get the response, which is a zip file, from the http handler using HttpWebResponse stream. The zip file is dynamically being created during response so that the http handler can't know the file [...] read more
c#
asp.net
silverlight
1vote
2answers

Why is Web Deploy giving me an error code 0x800704CD

I'm trying to get Web Deploy to work from Web Matrix and I've searched through through all the logs and events and can't seem to find the source of the following error in the event viewer: Log Name: Microsoft Web Deploy Source: Web Deploy Date: 9/4/2013 1:48:16 PM Event ID: [...] read more
iis-7
webmatrix
webdeploy
0votes
1answer

Uploading to Azure WebApp throws `ConnectionResetException: The client has disconnected`

I'm working on a .NET Core 3.1 webapp using C#. I use Blazor ServerSide as my front-end. The app is hosted by Azure. On my page I have an upload component. When I upload 1 file it works fine. When I upload 2-3 files it is still working but when [...] read more
c#
azure
file-upload
asp.net-core-3.1
blazor-server-side
0votes
0answers

How do I prevent this IIS error that required a manual restart of the app pool from occurring again?

My website hosted in IIS became inaccessible. In the event log on the server, I saw this error: Event code: 3005 Event message: An unhandled exception has occurred. Event time: 01/01/2018 00:00:00 AM Event time (UTC): 01/02/2018 6:00:00 AM Event ID: 64b4d6533abd4e71b3ba30b9008d7d86 Event sequence: 1921230 Event occurrence: 1 Event detail [...] read more
iis
0votes
0answers

System.Web.HttpException: The remote host closed the connection. The error code is 0x800704CD

I looked over all possible answers and I got nothing that could lead me to a solution about that volatile problem. In the MVC5 web application I work, some users can download an Excel file that is generated when they press a download button. At the moment of writing, the [...] read more
c#
sql
asp.net-mvc
azure
connection-timeout
0votes
1answer

"The remote host closed the connection" error for HttpResponse.Write

I've inherited an old website that has a feature for downloading an excel document of user records. The following code is causing a "The remote host closed the connection. The error code is 0x800704CD. " error: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; namespace MySite.ApplicationServices { public [...] read more
.net
httpresponse
0votes
0answers

CloudFront closes connection

We have a ASP.Net MVC 3 legacy CMS application. This application serves resized images to CloudFront as a Custom Origin. Most requests are fine and either the cache is hit or the image can be retrieved from the CMS application. It has come to our attention that on some of [...] read more
asp.net-mvc
amazon-cloudfront
0votes
2answers

Upload Large File In MVC Encountered an Error

I have a .txt file that the size up to 2GB, i want to upload that file from client to a folder in a server, while uploading that file, there is an error, this is what the page says: An operation was attempted on a nonexistent network connection. (Exception from [...] read more
c#
asp.net-mvc
file-upload
flat-file
0votes
1answer

Live broadcast of the video site with Asp.Net WebForms + WebApi + HTML5

The problem is this: 1. on the server have a video file; 2. The administrator runs it on the play (video broadcast begins); 3. user is connected to the server - must be given to the video stream that is currently playing. A live webcast in real time. To implement [...] read more
asp.net
html
video
asp.net-web-api
broadcast
0votes
1answer

JMeter stress testing - server error is "The remote host closed the connection. The error code is 0x800704CD"

When I try to stress load my ASP MVC Web API 2 by JMeter - an error occurred in the server side. Here the server error: 2015-07-20 16:11:02.2636 ERROR 81 System.Web.HttpException (0x800704CD): The remote host closed the connection. The error code is 0x800704CD. at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect) at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush() [...] read more
jmeter
asp.net-web-api2
0votes
0answers

Asp.Net website hangs occasionally under IIS 7.5

I am fighting a faddish problem. After several days of running Asp.Net 4.5 site becomes not responsible. My configuration: Windows 7, IIS 7.5, 64 bit, 16Gb. Memory consumption of application is small and should not be an issue (w3wp.exe takes around 500Mb of memory during its lifetime). I've checked the [...] read more
c#
asp.net
.net
iis
garbage-collection
0votes
0answers

Issue with video stream when header contains accept-ranges

I am trying to stream video from server with accept-ranges to allow users to change position on client-side video player (in my case jwplayer) When accept-ranges code is included client (jwplayer or opened only in chrome directly from url) plays about 15s normally and after it is every chunk asked [...] read more
c#
asp.net-mvc
video-streaming
0votes
1answer

ASP.NET 4.5 page and occasional err_ssl_protocol_error

WinServer 2012 IIS 8 ASP.NET 4.5 I noticed, while using IE11 that a particular page intermittently fails to load. It just says "This page can’t be displayed". If I use the F12 dev tools, the network trace shows the request with a 200 response, but the response body just ends [...] read more
asp.net
ssl
iis-8
0votes
0answers

Streaming large files breaks unexpectidely

In my application, I allow user to download large files approx (100MB's) which gets created dynamically and streams directly to the user without storing on the file system. Although it won't breaks all the time, it happens very rarely and very hard to replicate. In order to test it properly, [...] read more
c#
asp.net-mvc
iis
.net-4.0
0votes
0answers

ReportViewer - Failed to export data

I use ReportViewer control (ReportViewer version: 2010 SP1) with LocalReport option (using .rdlc files) to display reports in my project. When export data in ReportViewer control to Excel file, I got the "The remote host closed the connection. The error code is 0x800704CD" error message. The data contained in the [...] read more
.net
timeout
export
reportviewer
0votes
1answer

The remote host closed the connection - asp.net MVC3

and I keep getting this error message when my website builds a PDF and opens the dialog to allow the user to Save it or Open it. This is the full error in Elmah: The remote host closed the connection. The error code is 0x800704CD Now, I'm fairly sure the [...] read more
c#
asp.net-mvc-3
0votes
0answers

Review required. Client disconnected exception during online zip archive generation

I created a custom action result to send zipped archive of multiple files downloaded from another server. Sorry for a ton of code, but there it is. using ICSharpCode.SharpZipLib.Zip; /// <summary> /// Downloads the files using specified URLs and continuously streams zipped result to the client /// </summary> public class [...] read more
c#
asp.net
.net
asp.net-mvc-3
0votes
1answer

IIS stopped Working

I am developing web application using (C#) and (ASP.NET Web API) and MS SQL 2008 R2 and hosting on IIS7 in Windows Server 2008, All APIs return data in JSON When i call any API from any web browser and refresh the page to call again before the first call [...] read more
asp.net
asp.net-mvc-3
c#-4.0
iis-7
0votes
1answer

Connection being closed when trying to send large zip file

What I'm trying to accomplish is to allow users to download multiple files from silverlight application. To do this I've decided to use DotNetZip library and ASP.NET handler that will take care of getting all files from database and sending them to client. It seemed like good idea and easy [...] read more
asp.net
ashx
dotnetzip

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0