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