but error occurred while setting the permissions and/or timestamp

Advertisement

matta25
Joined:
Posts:
3
Location:
Ohio

but error occurred while setting the permissions and/or timestamp

Hello,
I am getting the warning message "**Upload of file '...' was successful, but error occurred while setting the permissions and/or timestamp.**
If the problem persists, turn off setting permissions or preserving timestamp. Alternatively you can turn on 'Ignore permission errors' option.
Error code: 3
Error message from server: This server does not support operations to modify file attributes.")

I am trying to do this in my vb.net code Yet the third like it does not like the NULL. Any Ideas on how to correct this?
Dim transferOptions As New TransferOptions
transferOptions.TransferMode = TransferMode.Automatic
transferOptions.FilePermissions = Null
transferOptions.PreserveTimestamp = False

Thanks
Matt

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: but error occurred while setting the permissions and/or timestamp

matta25 wrote:

Yet the third like it does not like the NULL.
Do you mean "third line"?
What does it mean "does not like the NULL"?
And you do not have to set the FilePermissions to NULL, it's the default value anyway.

Reply with quote

matta25
Joined:
Posts:
3
Location:
Ohio

Re: but error occurred while setting the permissions and/or timestamp

martin wrote:

matta25 wrote:

Yet the third like it does not like the NULL.
Do you mean "third line"?
What does it mean "does not like the NULL"?
And you do not have to set the FilePermissions to NULL, it's the default value anyway.


I fond this in another post transferOptions.FilePermissions = Nothing I did not get an error in VB like I did for NULL and in my FTP log it shows:
put -nopermissions -nopreservetime -transfer="automatic" -- "C:\test\test.txt" "/"

No error.
Thanks
Matt

Reply with quote

martin
Site Admin
martin avatar

Re: but error occurred while setting the permissions and/or timestamp

Yes, indeed it's Nothing in VB.NET, not Null.

Though again, you do not have to set the FilePermissions to Nothing as that's the default value.

Reply with quote

Advertisement

You can post new topics in this forum