Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Shiva Wahi
6
Views
6
Comments
Access to the path is denied error while using File_Move function
Question
Dear Community,
I'm getting "Access to the path is denied" error while using File_Move function. I have given all rights to OSRuntime user. I want to move file from C:\Files\
Test.xls
to C:\Files\MoreFiles\
Test.xls
.
Please pour in suggestions.
Regards,
Shiva
Pedro Coelho
MVP
First suggestion is to have the "C:\Files" with permissions to every user in the machine (sub folders should automaticly propagate).
I may be wrong, but isn't OSRuntime a database user? If so it has nothing to do with the problem since this is a filesystem error.
Best regards,
PC
Miguel Seabra Melo
Hi Shiva,
You'll need to give full access to the ASPNET user to c:\Files, if you're calling the File_Move from an OutSystems Web App. The actual name of the user changes depending on your Operating System, so please check that on the Web,
Hope this helps,
Miguel
Shiva Wahi
Dear Pedro,
Many thanks for yopur response. OSRuntime is not only a DB user and C;\Files has proper rights to this role. Please suggest.
Regards,
Shiva
Diogo Cordeiro
Hi Shiva,
the usual service name, from where I stand, is NETWORK SERVICE .
Have you tried to give access to this user to folder Files (where subfolders have the inheritance property set on) ?
To check if this is a permissions problem, you can also try (if the upper solution doesn't work) giving "Everyone" full control just for enough time to make sure this is the root of your situation.
Best Regards,
Diogo Cordovil S. Cordeiro
Pedro Coelho
MVP
Again, I might be mistaken, but the OS Platform does not create any users in the machine it's installed, OSRuntime shouldn't exist at all in the users of that machine, unless specificaly created to be used in the ASP.Net, but that is not the normal configuration.
But as Miguel and Diogo pointed out, you need to give permissions to the ASPNET user. Do try to give permissions to everyone just to ensure the error is about permissions, then try to figure out which user is being used.
Best regards,
PC
Miguel Seabra Melo
Pedro is correct, the Agile Platform does not create any users on the machine it's installed. Only DB users using the Configuration Tool.
Miguel
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...