I am trying to create a directory and then write to it via an asmx web service. It works fine on my dev pc, but when I publish the service to the server, I keep getting access denied errors. I have gone in to IIS and made sure the service has write privileges. I also gave write access to all users, but am still getting the same error. Any suggestions?
Additional info Well, I solved the problem. When I called
Directory.CreateDirectory(directoryName);
it worked fine on my development box but blew up on the server. I needed to use
Directory.CreateDirectory(Server.MapPath(directoryName));
which worked fine on both.