27
Views
3
Comments
[FileSystem] Issue with Directory Creation Using FileSystem Extension
filesystem
Service icon
Forge asset by João Portela
Application Type
Service
Service Studio Version
11.54.83 (Build 63759)

Hello,

I am currently facing an issue with the FileSystem component while trying to create a directory. Here's the situation:

  1. I am using the FileSystem Demo App provided with the component, and I encounter an error while uploading a file. I have attached a screenshot of the error for reference.
  2. I also tried using the Directory_Create action in my own application, and I am getting the same error.
  3. The issue persists in both my personal environment and licensed environment, so it doesn’t seem to be environment-specific.

Could anyone provide guidance on what might be causing this or suggest steps to resolve it?

Thank you in advance!


filesystem-create-directory-error.png
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Shaikh,

What path are you specifying in the call to File_WriteBinary?

2024-11-25 13-11-44
Shaikh Md Vazahat Samad

Hi @Kilian,

While creating file in path value I'm sending this: Path_GetApplicationDirectory.ApplicationDirectory + "/Data/" + Upload1.Filename

BTW I'm also trying to create directory (folder) but still facing same issue, for Directory_Create action I'm sending Path_GetApplicationDirectory.ApplicationDirectory  + "\Data\" + DirectoryName in Path

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Yeah, you cannot just create directories/folders in the IIS directory, as far as I know. Hence the access denied error. If you run an on-premise infrastructure, you need to write to a path that IIS has access too (or use the Run As user).

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.