Reasons for a 409/Conflict HTTP error when uploading a file to sharepoint using a .NET WebRequest? -


i've got method uses webrequest upload file sharepoint 2010 list/folder, using put request, overwrite header set t (overwrite).

when several files uploaded (method called several times), requests fail 409 conflict http error.

i've googled, , seems common reason trying affect/update file not exist (like setting request url path without file name). however, not case. in case conflict had file existing, added code physically delete file before uploading it, , i'm still getting 409's.

has received type of error, , if so, can tell me how fixed , root cause? appreciated. thanks

since no answers posted, found following here:

the web server (running web site) thinks request submitted client (e.g. web browser or our checkupdown robot) can not completed because conflicts rule established. example, may 409 error if try upload file web server older 1 there - resulting in version control conflict.

someone on similar question right here on stackoverflow, said answer was:

i've had issue when referencing url of document library , not destination file itself.

i.e. try http://server name/document library name/new file name.doc

however 100% sure not case, since checked webrequest's uri property several times , uri complete filename, , folders in path existed on sharepoint site.

anyways, hope helps someone.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -