This project is read-only.
6
Vote

API Problem

description

'There is an error in XML document (1, 2)' exception throw at calling the 'ListRootWebFolders' method.

comments

PjS wrote May 30, 2014 at 11:05 AM

I am also seeing similar issues. In my case, I am getting a (403) Forbidden.

wrote May 30, 2014 at 2:13 PM

douglas2 wrote May 30, 2014 at 2:14 PM

Looks like the same problem as issue 9336 calling client.GetWebAccountInfo(): https://skydriveapiclient.codeplex.com/workitem/9336

PjS wrote May 30, 2014 at 3:15 PM

I have sent message to ghollosy this morning to see if he can take a peek. Although I do see that he has been absent as of late. Have you investigated any further gouglas2?

maksymChe wrote Jun 4, 2014 at 9:40 PM

try to figure what problem is with this exception:
  1. in GetRootUri method changed address string from "http://cid-{0}.users.api.live.net/Users({1})/Files" to "https://cid-{0}.users.api.live.net/Users({1})/Files".
    after that another exception appears: 'There is an error in XML document (2,2);
  2. two above uri return not expected result, not an xml responce, but just html and XML deserializer crashes because trying to deserialize to FolderItemResponse type.
I've try to change uri to "https://onedrive.live.com/?cid={0}" but it not helped, responce different but still cannot be deserialized.

Seems internals of responces from api changed and now cannot be deserialied.

wrote Jun 4, 2014 at 9:41 PM

thinakaran wrote Jun 5, 2014 at 4:35 PM

Hi Friend,

I'm also getting the same error

"There is an error in XML document (1, 2)' exception throw at calling the 'ListRootWebFolders' method"
Please any one them help me to resolve the problem.

Logon working fine...
Please update the dll file and upload the latest on ASAP...!!!!

If any one resolved the problem send me the latest code to thinakaran.m@rubixsoftsolutions.com

Thanks.

PjS wrote Jun 5, 2014 at 10:27 PM

A bit more for debug:

WebResponse is showing:
StatusDescription = "Forbidden: header 'Content-Type' value denied"

The WebRquest has header type as:
application/atom+xml

So perhaps this header type is now the trouble or maybe what has changed recently....

wrote Jun 13, 2014 at 2:26 PM

ThumbGen wrote Jun 23, 2014 at 5:25 PM

Is there no other way to connect to OneDrive without using a webbrowser control?

wrote Sep 22, 2014 at 8:32 AM