Windows error 0x80070041, -2147024831

Detailed Error Information

NETWORK_ACCESS_DENIED[1]

MessageNetwork access is denied.
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 Code65 (0x0041)

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

Questions

3votes
3answers

Difference between "Network path not found" and "Access denied" in C#

In my C# .NET 2.0 application I'm accessing network paths, and I'd like to be able to tell the difference between paths that don't exist, and paths which do exist but for which I don't have access rights. I tried doing the following: try { string[] contents = Directory.GetFileSystemEntries( path [...] read more
c#
networking
path

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