I am working on web application where we have some mapped drives. I want to get the UNC path from Mapped drive.
I am using WNetGetConnection to get UNC path. It works perfectly when i run it from visual studio but it doesn't work when i check the same application by deploying to IIS. I get below when i run it from IIS.
Error 2250 The network connection could not be found.
Can somebody help me resolve this? Why it doesn't work from IIS?
Thanks!