I want to access Network path with credential on Dotnet Core 2.0. I am able to access network locally in windows machine. I am following the solution in How to provide user name and password when connecting to a network share
But when i hosted application in docker in linux container, it throws error Application startup exception:
System.DllNotFoundException: Unable to load DLL 'mpr.dll': The specified module or one of its dependencies could not be found. (Exception from HRESULT: 0x8007007E)
The error is because 'mpr.dll' is not in linux. mpr.dll is found at C:\Windows\System32\mpr.dll. I tried to refer dll but it is not supported in dotnet core.
Is there any alternative solution?