none
delete directory on web server RRS feed

  • Question

  • respected community members,

     i have a WCF service that hosted on remote server and i wants to delete directory frim on same server..but out side from WCF service physical location.I tried System.io.directory.delete command..but it is giving an error "denied".

    Any idea whether i can do this and what could be wrong??

    Thursday, February 28, 2013 8:22 PM

Answers

  • If your WCF service is hosted inside a windows service then it is possible. The account under which the service is running should have permission on the folder to delete. But in case it is hosted inside IIS then you will need proper permission. Also it depends upon what type of user you are logged in.

    ViBi

    Saturday, March 2, 2013 2:38 AM

All replies

  • I didn't get your question. Do you want to delete the folder on the same machine where your WCF service is installed or on a different machine?

    ViBi

    Friday, March 1, 2013 10:44 AM
  • Yes..i have directory located on Server where WCF service is hosted.
    Friday, March 1, 2013 2:59 PM
  • If your WCF service is hosted inside a windows service then it is possible. The account under which the service is running should have permission on the folder to delete. But in case it is hosted inside IIS then you will need proper permission. Also it depends upon what type of user you are logged in.

    ViBi

    Saturday, March 2, 2013 2:38 AM