Let's say I have deployed my mvc4.5 web app to Server1 in my network
Is there a way to access/read data from FileA.zzz that sits on Server2 in my Network from my mvc4.5 web application?
For example, in my Model, I want to read a file, by pointing to "x:\folder1\folder2\FileA.zzz"
x is a mapped drive that points to Server2
Currently I'm getting an error saying the file is not accessible
Thanks in Advance
Your web application uses application pool to run. Application pool has identity (user account that is used to run application.) You need to change identity of your application pool to user that has required permissions. By default your app will use default app pool. Use IIS Manager to update that.