Hopefully someone can help with this.
I'm using Sharepoint 2010. On the server I have manually created a folder in the "Shared Documents" folder called "bin" and uploaded a file into this folder
If I attempt to access the files in this folder using the Microsoft.SharePoint.Client.File.OpenBinaryDirect function, I receive the following error:
A first chance exception of type 'System.Net.WebException' occurred in System.dll:
System.Net.WebException: The remote server returned an error: (404) Not Found.
at Microsoft.SharePoint.Client.File.OpenBinaryDirect(ClientContext context, String serverRelativeUrl).
Any other files in any other folders under the shared documents folder are accessible.
Here is my example code:
ClientContext clientCTX = new ClientContext(SPURL);
//Pass the credentials to the client context
clientCTX.Credentials = credentials;
List DeployFilesList = clientCTX.Web.Lists.GetByTitle("Shared Documents");
View Complete Post