When creating a website, the App_Data folder is never set to be writeable.
Also, web deploy SetAcl never works to adjust App_Data to writable either. User assigned to WebDeploy is unable to change permissions of files/folders
You can change permissions by using the web based file manager.
However i would question how you created the App_Data folder? as it’s not a default folder created by SolidCP it would then depend on how it’s pushed onto the server.
If for example pushed with FTP it should obtain default permissions (which is normally Readable only)
You can change this by using the web based file manager (ftp permissions for example generally don’t work on Windows only Linux machines)
Using Web Deployment should allow to overwrite the permissions but i do know if using Visual Studio this can mess up things pretty quick unless some custom settings been set on client side (there’s alot of information about this on the Microsoft forums)
App_Data created by the WebDeploy process itself, so yeah its read-only basically initially.
WebDeploy package includes a step that uses a SetAcl action that then makes App_Data writable. I’ll have to discover how it matches up the correct user to do that.
For all interested, you can workaround the SetAcl action failing by adding
within a <PropertyGroup> element either in your CSPROJ file, or in the [DeploymentName].pubxml file.
- Views938 times
- Answers2 answers