My Server Machine includes:
- IIS 7.
- Window server 2008.
- Network Drive mapped as Z drive which is of Linux machine.
- ASP.NET MVC 3 application hosted on server machine.
Problems:
I have built asp.net mvc 3 application that can upload the mulitiple file to local drive but is not able to upload to network drive (Z:/ in my case) of my server machine. It shows error:
Could not find a part of the path 'Z:\uploadfolder\sdlkfjsdl.wav'.
Then, I have checked the folder (uploadfoler) security option where the Network service user doesn't have permission for full control or write permission. The problem here is that I have no rights to add permission for NETWORK SERVICE User and network drive belongs to LINUX manchine.
While Searching for alternate solution, I found concept called impersonate. I am completely new to this concept. Is this able to solve my problem in my scenario? Or, Is there any other alternative solution?