I have written a custom http handler. I have done this by writing a class which implements the IHttphandler. Inside that class I have code like this, context.Response.Clear(); context.Response.ClearHeaders(); context.Response.AddHeader("Content-Disposition", "attachment;filename=" + attachmentFileName); context.Response.AddHeader("Content-Length", new FileInfo(downloadFile).Length.ToString()); context.Response.ContentType = GetMimeType(attachmentFileName); context.Response.TransmitFile(downloadFile); context.Response.Flush(); context.Response.Close(); Occasionally I receive an error like this, Exception [...] read more
I have a Windows 10 Pro machine that is functioning as a RDP terminal for a single user. This machine was configured more than 2 years ago and has had no major changes made to its configuration, except of course for the obligatory Windows 10 automatic updates. Everything has been [...] read more
When using Entity Framework Core in an ASP.Net Core application on Visual Studio 2017 I intermittently get the error "Unable to load 'sni.dll'. Strangely though I have found a temporary fix: restarting my PC. I don't know why the error keeps happening, I don't know what the variable could be. [...] read more
I am running Windows 10 with the Ubuntu WSL subsystem. I am a Javascript developer. I have used this setup for a while now and I am very happy with it. However, I needed to set up a new computer yesterday and on that machine the bash keeps freezing after [...] read more
Scenario: * User is using IE9 (IE8/10 not affected). * User has an active session. * Page starts an AJAX POST (GET not affected) request to a controller with the SessionState(SessionStateBehavior.Required) attribute (ReadOnly not affected). Something keeps this request from being immediately processed (such as another request in progress that [...] read more
Is there a list of .NET Exception error codes around? I get these error codes with a couple of HttpExceptions, 0x80070040 0x800703E3 And require to know the difference between the two errors. read more
I have servicestack class with a method that may take a while to return. Most of the time it returns within 60 seconds, but sometimes it does not. The JsonServiceClient that calls this service has a 60 second timeout. Since the client times out, it aborts the request. Everything is [...] read more
The ol' GPO not applying issue that's been seen many times before..... Since the 29th April, none of my member servers are processing any GPO's. I've had a lot of experience with managing AD and GPO's so am posting here after performing many obvious checks. This issue just seems a [...] read more
I've got a bunch of desktops that are members of a domain. There's a couple of group policy items set on these, and some of these involve copying files from a network share locally (things like config files etc.) All of my desktops work perfectly, except for one, which was [...] read more
Microsoft.AspNetCore.Connections.ConnectionResetException: The client has disconnected ---> System.Runtime.InteropServices.COMException (0x80070040): The specified network name is no longer available. (0x80070040) --- End of inner exception stack trace --- at Microsoft.AspNetCore.Server.IIS.Core.IO.AsyncIOOperation.GetResult(Int16 token) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ReadBody() at System.IO.Pipelines.PipeCompletion.ThrowLatchedException() at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result) at System.IO.Pipelines.Pipe.ReadAsync(CancellationToken token) at System.IO.Pipelines.Pipe.DefaultPipeReader.ReadAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.IISHttpContext.ReadAsync(Memory`1 memory, CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.IIS.Core.HttpRequestStream.ReadAsyncInternal(Memory`1 buffer, CancellationToken [...] read more
I am running a service on Azure web sites using PHP. From times to times, the server completely stops responding with a 500 HTTP message. So far, I could get these relevant details on the error: ModuleName: FastCgiModule Notification: EXECUTE_REQUEST_HANDLER HttpStatus: 500 HttpReason: Internal Server Error HttpSubStatus: 0 ErrorCode: The [...] read more
We saw "The remote host closed the connection" in our error logs with: The error code is 0x80070040 The error code is 0x800703E3.(most of) We are using combres for Javascript-Css minification, compression and cache. Size of minified and compressed javascript file is 82.2 KB. So is there any bug in [...] read more
After upgrading Windows to 19042 and WSL1 to WSL2, I stuck with the installation of the Ubuntu20.04 distribution. From my perspective, it should be a completely fresh installation. But it always shows Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x80070040 Error: 0x80070040 Der angegebene Netzwerkname ist [...] read more
There is an asp.net core API endpoint that accept a dto containing file as base 64 string ImportDTO { public string File{get;set;} // base 64 encoded file } when the request is send it take long time even if the file is very small (10 k bytes or less), request [...] read more
I have an API post web method that tries to get the request body out using StreamReader ReadToEndAsync(). The majority of the time it works fine, however for very random request I am getting the following exception: > The client has disconnected. with inner exception > The specified network name [...] read more
WSL can install a root tarball (tar.gz), however old versions of Ubuntu, such as Hardy (8.04.3), do not have the -root.tar.gz file available: http://old-releases.ubuntu.com/releases/8.04.3/HEADER.html For C++ development, i.e. compilation of legacy code without errors, is it possible to install Ubuntu 8.04 (Hardy Heron) in WSL? Ideally, there is some approach [...] read more
I'm experiencing an error with SSRS reports executed that take over 1 minute to return data. This is a sporadic error i.e. sometimes the reports fail but sometimes they run. This is only for manually executed reports, subscriptions work fine. System.Runtime.InteropServices.COMException: The specified network name is no longer available. (Exception [...] read more