I have written a c# program which uploads rdl files into report folder. I am using CreateCatalog class and CreateCatalogItem method to upload rdl file. This is done in a loop. I am reading os files and using CreateCatalogItem the files are uploaded.
This is one of the attributes
Important thing to note is that this issue doesn't popup on the first upload. Some 40 or so out of 120 rdl files are uploaded successfully before hitting error underlying connection closed.
I looked at the ssrs log, but didn't see any errors. It listed all the files uploaded successfully.
This code worked successfully on 5 different machine/environments.
I have googled this but the answers seem to suggest the issue was from outset. In other words, it seems that if I would have hit that issue, I wouldn't be able to upload even one file. But this is not my case.
If somebody could point me to how to troubleshoot this.
Any help is appreciated.