Windows error 0x80072746, -2147014842

Detailed Error Information

HRESULT analysis[1]

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

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

Questions

24votes
4answers

"The remote host closed the connection" in Response.OutputStream.Write

This code streams large files to our users: // Open the file. iStream = new System.IO.FileStream(filepath, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read); // Total bytes to read: dataToRead = iStream.Length; // Read the bytes. while (dataToRead > 0) { // Verify that the client is connected. if (Response.IsClientConnected) { // Read the data [...] read more
c#
asp.net
streaming
9votes
3answers

Accepted way to prevent "The remote host closed the connection" exception

I'm constantly getting the following exception which is caused by a user initiating a download and it consequently failing (or being cancelled): > Error Message : The remote host closed the connection. The error code is > 0x80072746. Stack Trace : at > System.Web.Hosting.ISAPIWorkerRequestInProcForIIS6.FlushCore(Byte[] status, > Byte[] header, Int32 keepConnected, [...] read more
c#
.net
asp.net
exception
exception-handling
4votes
0answers

Error: 0x80072746 The connection to sandbox was lost

Please visit to my original post here. I updated laptop to Windows 10 Home Edition 1903. Using this tutorial: Enable Windows Sandbox Feature in Windows 10 Home Edition I enabled Windows Sandbox on my Windows 10 Home, but it's failing to start. I got this error: error [https://i.stack.imgur.com/Q7UA4.png] read more
windows-10
sandbox
3votes
3answers

Remote connection to Windows 10 sometimes freezes

I remotely connect using RDP from a Windows 8.1 computer to a Windows 10 Pro computer (version 2004, 19041.572) and am able to work just fine. However, it occasionally freezes for a minute. This happens 1 to 5 times a day. When looking in the Windows Event Viewer on the [...] read more
windows-10
remote-desktop
3votes
1answer

Request with size over 64KB fails to complete (Asp.Net Core Web API)

I'm developing a REST web service using Asp.Net Core 2.0 Web API technology (full .Net Framework 4.6.1) within Visual Studio 2017 (15.6.5). MY ISSUE Whenever I send a post request that exceeds 64 KB, it hangs and never completes. For example, a post request with size of 68'259 bytes fails [...] read more
c#
rest
image-uploading
asp.net-core-webapi
.net-4.6.1
3votes
2answers

Downloading a file raises exception

I have a webform with a GridView which has filename as a column. If you click on filename, an Open/Save dialog box is presented to the user. Most of time, this raises an exception with the error message - The remote host closed the connection. The error code is 0x80072746. [...] read more
c#
asp.net
exception
3votes
3answers

How to catch a specific HttpException (#0x80072746) in an IHttpHandler

It appears that this HttpException (0x80072746 - The remote host closed the connection) can be thrown if, for example, the user closes the window whilst we are transmitting a file. Even if we send the files in smaller blocks and check the client is still connected, the exception can still [...] read more
c#
ihttphandler
httpexception
2votes
1answer

Visual Studio Breaks on Exceptions for Async Calls Instead of Being Caught in Catch()

I have the following code that is trying to catch the exception caused by a disconnect: try { DataReaderLoadOperation op = dataReader.LoadAsync((uint)readBuffer.MaxLength()); await op; // <-- Debugger show COMException here ReceiveCallback(op, op.Status); } catch (COMException e) { Logger.Info("{0} disconnected. (Waiting)", this); Logger.Debug("{0} exception = {1}", this, e); OnDisconnected(); } Why [...] read more
c#
exception
asynchronous
windows-8
windows-runtime
2votes
1answer

WindowsRT StreamSocket exception when closing connection

So I've been getting this exception for about a week now, and I've finally managed to corner it into a code snippet that can be easily read. As a background, I am programming an app for Windows RT and I am trying to use basic sockets. For the sake of [...] read more
c#
sockets
async-await
2votes
1answer

HttpHandler causing in "The remote host closed the connection" error

I have implemented an HttpHandler for js files. The work of this HttpHandler is to localize the contents of js files. So the handler picks the contents of js files, localize them and writes to the response object. But the problem is that the handler is resulting in "The remote [...] read more
c#
1vote
1answer

Any way to get more info from unhandled exceptions caught by Application_Error in Global.asax?

In production, I have the Application_Error event handled in Global.asax to log (and email me) details of any uncaught exceptions that sneak through: void Application_Error(object sender, EventArgs e) // code simplified a bit for SO { Exception ex = Server.GetLastError(); MyTools.LogError("Global.asax::Application_Error", "An unhandled exception occurred", ex); } The error messages [...] read more
asp.net
global-asax
unhandled-exception
application-error
1vote
0answers

"The remote host closed the connection. The error code is 0x80072746." On cancelling a big report export

I get the following exception when i try to cancel the download of SSRS report export. It is generated by Reserved.ReportViewerWebControl.axd file. Is there anything i can do to prevent this exception? I did google before posting here but really didn't find anything useful. System.Web.HttpException: The remote host closed the [...] read more
ssrs-2008
reporting-services
0votes
1answer

Running Sandbox on Window 10 Home - Error: 0x80072746 The connection to sandbox was lost

I had Win 10 Home 1809. I read that Sandbox can run only on build 1903, So I upgraded to 1908, and installed sandbox with this guide It didn't work, and I kept getting 0x80072746 error. It seems like it's been a year and no solution to this issue. I [...] read more
windows-10
sandbox
windows-10-v1903
windows-10-v1809
windows-sandbox
0votes
2answers

c# Doesn't read all content from socket in local http server

I'm using a local server in a Windows Store App (http://blog.jsolutions.co.uk/?p=492) for serve html files. The program reads the input from socket: StringBuilder inputRequestBuilder = new StringBuilder(); // Read all the request data. // (This is assuming it is all text data of course) using (var input = socket.InputStream) { [...] read more
c#
sockets
visual-studio-2012
windows-8
windows-store-apps
0votes
1answer

Windows Store Datagram not sending telnet data

I'm currently trying to port my app over from .NET to Windows Store, but I'm not able to get my UDP telnet communication to work. I've enabled Internet (Client), Internet (Client and Server), and Private Networks in the App Manifest and I've tested other UDP communications and they have succeeded, [...] read more
c#
udp
windows-store-apps
telnet
datagram
0votes
1answer

Elmah ignore System.Web.HttpException (0x80072746)

I try to ignore the System.Web.HttpException (0x80072746) in Elmah. I tried the following, but they don't work: <errorFilter> <test> <equal binding="HttpStatusCode" value="0x80072746" type="UInt32" /> </test> </errorFilter> and <errorFilter> <test> <equal binding="HttpStatusCode" value="0x80072746" type="Int32" /> </test> </errorFilter> and <errorFilter> <test> <equal binding="HttpStatusCode" value="0x80072746" type="String" /> </test> </errorFilter> I've found this thread, [...] read more
elmah
0votes
2answers

How do you test error handling involving "remote host" errors with ASP.NET development server?

We have an ASP.NET website in production that generates a report and sends it to the user's browser as a PDF file. Our error reporting is showing that we are getting a lot of this exception: System.Web.HttpException: The remote host closed the connection. The error code is 0x80072746. These appear [...] read more
asp.net
visual-studio-2008
httpexception
0votes
3answers

Errors from a .NET 3.5 project show up as .NET 2.x

While my ASP.NET project uses version 3.5 of the framework, the event log registers errors as coming from version 2.X of the framework such as this: Event Type: Error Event Source: ASP.NET 2.0.50727.0 Event Category: None Event ID: 1334 Date: 2009-05-19 Time: 17:04:29 User: N/A Computer: XXXXXXXXXX Description: An unhandled [...] read more
.net
asp.net
clr
error-logging
-1votes
1answer

After disabling TLS1.2 cipher suit TLS_RSA_WITH_3DES_EDE_CBC_SHA, session state server is not working

Unable to make the session state request to the session state server. Please ensure that the ASP.NET State service is started and that the client and server ports are the same. If the server is on a remote machine, please ensure that it accepts remote requests by checking the value [...] read more
ssl
iis
tls1.2
session-state-server

Comments

Leave a comment

(plain text only)

Sources

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

User contributions licensed under CC BY-SA 3.0