Windows error 0x80070040, -2147024832

Detailed Error Information

NETNAME_DELETED[1]

MessageThe specified network name is no longer available.
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 Code64 (0x0040)

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

Questions

20votes
7answers

HttpContext throws HttpException

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
c#
asp.net
.net
iis-7
httpexception
18votes
18answers

Windows 10 Pro, RDP Server, "An internal error has occurred"

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
rdp
windows-10
rdc
14votes
6answers

Unable to load DLL 'sni.dll' - Entity Framework Core

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
c#
asp.net-core-mvc
visual-studio-2017
entity-framework-core
8votes
0answers

Windows WSL (Ubuntu) hangs/freezes randomly when listening to ports

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
windows-subsystem-for-linux
8votes
2answers

ManagedPipelineHandler for an AJAX POST crashes if an IE9 user navigates away from a page while that call was in progress

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
internet-explorer-9
asp.net-4.5
iis-8
3votes
2answers

Exception Error Codes in .NET

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
c#
.net
asp.net
2votes
0answers

How to handled (and supress) normal servicestack errors

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
servicestack
1vote
0answers

GPO's not applying to member servers only - Post thorough troubleshooting

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
group-policy
1vote
2answers

Win7 desktop can't access network share while updating Group Policy causing GP to fail

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
windows-7
group-policy
1vote
1answer

.NET Core 3.1 Websocket error: The specified network name is no longer available

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
.net-core
websocket
1vote
0answers

Azure web sites - 500 internal server error (The specified network name is no longer available)

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
azure
azure-web-app-service
1vote
1answer

The remote host closed the connection

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
http
iis-7.5
logging
combres
0votes
0answers

WSL ubuntu installation fails; Neworkname is unavailable

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
linux
ubuntu
windows-subsystem-for-linux
0votes
0answers

Uploading Excel files causes error connection rest

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
asp.net-core
iis-8
0votes
0answers

Getting Exception: The specified network name is no longer available. (0x80070040) when trying to read HttpRequest Body using ReadToEndAsync()

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
c#
asp.net-core
0votes
0answers

In Windows 10, how do you install old versions of Ubuntu, such as Ubuntu 8.04 (Hardy Heron) in WSL?

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
windows-subsystem-for-linux
0votes
2answers

SSRS issue : The specified network name is no longer available

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

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