Accessing Network Path In Web Services
-
Hi I have created a web service .I want to check either a directory exists or not on any other system.for this i have used Directory.Exists("\\ComputerName\SharedFolder").But it always return false.I have given everyone full control on this folder.Similarly on windows application and in web application it returns true but in web service it returns false.ANy body have idea to access network shared path in web services ASP.net2.0 Thanks
-
Hi I have created a web service .I want to check either a directory exists or not on any other system.for this i have used Directory.Exists("\\ComputerName\SharedFolder").But it always return false.I have given everyone full control on this folder.Similarly on windows application and in web application it returns true but in web service it returns false.ANy body have idea to access network shared path in web services ASP.net2.0 Thanks
Try to use impersonate or create a different application pool for your web service with
Identity of Local System
.Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Visit My Latest Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET