baruchiro / NetworkConnection

Represents a network connection along with authentication to a network share
MIT License
8 stars 5 forks source link

Unable to load shared library 'mpr.dll' or one of its dependencies #3

Open Kalyan7829 opened 1 year ago

Kalyan7829 commented 1 year ago

Hello,

I am using this nuget package to access a shared location in jenkins run which is a linux environment. However i am getting the following error while executing the code.

--logs 'System.DllNotFoundException : Unable to load shared library 'mpr.dll' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libmpr.dll: cannot open shared object file: No such file or directory|r|n at NetworkConnection.WNetAddConnection2(NetResource netResource, String password, String username, Int32 flags)`

Could you pls help me on resolving the above issue

DevLocus commented 10 months ago

"The mpr.dll file, also known as the Multiple Provider Router DLL, is a dynamic link library file that is an integral part of the Windows operating system. It plays a crucial role in managing network connections and providing network-related services to applications and processes running on the system." - Stelian Pilici @ MalwareTips

Basically this is a Windows Only library. You will need to either find another library or switch to a Windows instance for a test environment on your pipeline (e.g. AWS EC2 instance).