Quote:
quote:Originally posted by @shish
When i execute the code locally, the folder is deleted and the app works perfectly. However, when i deploy the app(on another machine) and perform the same function, the path to the mapped directory is deleted.
|
What you've written here is a little confusing. Are you saying that when on the local machine, the delete action succeeds? And when you run on the remote machine that the delete action fails? Are you saying that on the remote machine the path to the mapped directory does not exist?
Mapped drives are tricky. Usually the drive mapping is specific to the logged on user. If you log on then map a drive, the operating system doesn't see the mapped drive outside of the user context. So if you have a site running in IIS, it won't see the drive letter. I have tried in the past to set up drive mappings on the system level and I didn't have any success. Can you access the network location with an UNC address (\\machineName\shareName\dir\dir...)?
-Peter
compiledthoughts.com