I followed the approache to map a network drive programmatically in the following link: Mapping Network Drive using C#
The drive seems to be connected correctly beca
Mapped drives can be very confusing. The issue is that they only appear for the "user" that created them. This was hinted at in the question in the comments about UAC and Run as Administrator.
IF you "Run As" whoever, then the drives will only appear for that whoever.
If you are only worried about User vs Elevated user access, there is a registry key to enable this: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
EnableLinkedConnections
Please see this for more details: https://docs.microsoft.com/en-us/troubleshoot/windows-client/networking/mapped-drives-not-available-from-elevated-command