Last post Jan 27, 2014 02:30 AM by ankit007_shah
Jan 24, 2014 08:29 AM|ankit007_shah|LINK
I have created a web service and it is hosted on IIS 6.2 on windows server 2012 R2. There is a web method that validates the windows explorer folder path using System.IO.Directory.Exists.
When I run the web service from visual studio (source code) it is running well and validates the path accurately. But when I run the same using hosted web service URL, it always returns false although the folder is already there. I think there are some directory
permission problems with application pool identity. Can anybody tell me what needs to be done to validate the folder existence via webserver?
Any help would be much apprecieated.
Jan 24, 2014 09:05 AM|Perkinsville|LINK
Check and see if you get any access denied message using Process Monitor from the W3WP process.
You can add the User Name of the credentials used to make access to the columns.
Then make sure that UID has the correct access.
Jan 27, 2014 01:52 AM|ankit007_shah|LINK
Thank you for the quick response.
Let me check it and come back to you with my feedback.
Jan 27, 2014 02:30 AM|ankit007_shah|LINK
I have used the Process Monitor and validated the process.
The user who is running the process is currently having full control on the specified folder, although he is unable to validate wether the particular folder exists or not.
I have also seen PATH NOT FOUND errors in the Process motnitor tool. Can you please advise what could be the cause?