At work i created a web service to be consumed by other groups within the company. My web service accepts custom data object to be passed in by the consumer and it writes this object to an xml file using XmlSerializer and StreamWriter classes and then deposit
it in a shared folder on a different server. The web service worked locally but when it is hosted on IIS 7 server it failed to write the file to the shared folder with the "Access denied" error mesage. Apparently the web service can't access to the share folder.How do
i fix the problem?
Here are my observations:
1. By using the "net session" command, i noticed that the account used to write to the folder was
ANONYMOUS LOGON,
which is some unknown/random account and that is why the write process is failed. My web service used window authentication. So where does the
Go to the complete details ...