Hi All,
I am trying to call the REST API to Add a document to a folder, when I use following URI
I get this error.
System.Net.WebException: The remote server returned an unexpected response: (400) Bad Request.
<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="<m:code>-2147024809">http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-2147024809,
System.ArgumentException</m:code><m:message xml:lang="en-US">Value does not fall within the expected range.</m:message></m:error>
so I looked up online and someone pointed that remove the slash (/) from in front of Documents and that'll resolve the issue, I did that
which changed the error to this.
<m:error xmlns:m="<m:code>-2147024893">http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>-2147024893, System.IO.DirectoryNotFoundException</m:code><m:message xml:lang="en-US">File Not Found.</m:message></m:error>
Not sure, what's wrong, any help greatly appreciated!
Thanks