Hi,
I have created a web service that reads a file from a network folder. The web service works fine when I consume it locally, however when I deploy the web service to a server I get the following error:
Server was unable to process request. ---> Could not find file '\\server\D$\test1.pdf'.
I believe it has something to do with permissions, however the network credentials that are running the web service have full access to the network folder.
The piece of code that fails is:
Dim fileContents As Byte() = File.ReadAllBytes(fileLocation)
Am I doing something wrong?
Any help would greatly be appreciated.
Thanks,
I have created a web service that reads a file from a network folder. The web service works fine when I consume it locally, however when I deploy the web service to a server I get the following error:
Server was unable to process request. ---> Could not find file '\\server\D$\test1.pdf'.
I believe it has something to do with permissions, however the network credentials that are running the web service have full access to the network folder.
The piece of code that fails is:
Dim fileContents As Byte() = File.ReadAllBytes(fileLocation)
Am I doing something wrong?
Any help would greatly be appreciated.
Thanks,