I wrote a small web service (asmx) to write stuff to a file on the server. It works fine when run in the VS2008 test container. But when I run it under IIS on a remote machine, I get:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'y:\graham\misc\props.txt'.
'y' is a mounted drive on both the test and remote machines. The path really does exist. It works on the test machine; not remotely. So:
Is it the fact that 'y' is a mounted drive causing it to fail remotely? or
Is it the fact the the path lies outside of the web application directory structure? Is there something I should put in web.config??; or
Is something else the problem?
I would have thought that the service running on the server could do anything it wanted! It's not denying me access to the file; it's saying it can't find it??!!
View Complete Post