Hi, I've written a C# .NET4.0 web service that uploads files to a SharePoint document library. I use the copy service to upload the file and the list service to check it in, both using the same credentials.
It all works fine in the test and pre-production servers, but after installing on production, the files no longer check in properly. Of the close to hundred files that have been uploaded so far, only 2 have successfully checked in.
The files will get created or deleted properly, it's just the check in that doesn't appear to be working.
The code I've used is:
listService.CheckInFileAsync(fileName, "Initial", "0");
All the required fields have been filled in before attempting to check in. I can confirm that they're there when I look at the list.
The versioning settings do not require a check out.
I can check in the file manually in SharePoint. And if I add a file directly through SharePoint it is uploaded already checked in.
The SharePoint server is replicated over 2 servers, as it is in the pre-production environment, but not in the test environment.
At the moment I'm having to check in the files manually so they can be viewed by the users. Obviously this is not an ideal situation, so any suggestions would be appreciated.