0

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.

http://social.msdn.microsoft.com/Forums/vstudio/en-US/6f79f2b3-d092-431f-bc28-d15d93cf5d09/c-how-to-convert-a-mapped-directory-into-a-full-directory-name?forum=csharpgeneral

Can somebody help me resolve this? Why it doesn't work from IIS?

Thanks!

user3733735
  • 71
  • 1
  • 6
  • Mapped drives are a per-user concept. *you* may have a drive mapped from the machine where IIS is running, but does the user account that the application pool is running under also have that same drive mapped? – Damien_The_Unbeliever Jul 24 '14 at 06:30
  • Do you mean the App pool identity user should have access to mapped drive? How to check if user account that the application pool is running under also have that same drive mapped? – user3733735 Jul 24 '14 at 06:50
  • Anybody who can help? – user3733735 Jul 25 '14 at 06:19

0 Answers0