Workflow and ServiceDesk Community

 View Only
  • 1.  Delete File Component causes System.UnauthorizedAccessException

    Posted May 24, 2018 01:46 AM

    Hello,

     

    We are using a workflow form to import computers into our environment (yes, still 7.5, we're working on that).

    We create a predefinedcomputers.csv as it can be found in \\server\nscap\bin\Win32\X86\Deployment\Sample\PreDefinedComputers\, and to be correct, we create a copy of that file in that specific location.

    Everything works fine when I try it in the debugger, but after publishing and when using the published workflow, I get a System.UnauthorizedAccessException for the path.

    Any ideas?



  • 2.  RE: Delete File Component causes System.UnauthorizedAccessException
    Best Answer

    Posted May 24, 2018 02:42 AM

    The published WF, which AppPool is it running under? Which user is set to the identity?

    When running in debug it runs as the currently logged in user and they prob have more permissions than the Identity account.



  • 3.  RE: Delete File Component causes System.UnauthorizedAccessException

    Posted May 24, 2018 05:20 AM

    Thank you! I edited the file's permissions, now it works.