1

I am trying to connect to skydrive with this code, it is console C# application:

var client = new SkyDriveServiceClient();

client.LogOn("username", "password");

and I got this exception: The operation has timed out.

Anyone know what is solution for this problem?

5
  • Are you able to connect to the SkyDrive server outside of your application?
    – Shai
    Feb 20, 2012 at 13:54
  • where does the timeout happen.. the code you posted doesn't give much in regards to lending any viable solution.. post the full method where you are using this
    – MethodMan
    Feb 20, 2012 at 13:59
  • Application is breaking at line where I try to LogOn.
    – tanasi
    Feb 20, 2012 at 14:02
  • Are you using the SkyDrive.NET API Client?
    – Jehof
    Feb 20, 2012 at 14:15
  • Yes I am using SkyDrive .Net API Client. There is on codeplex this information: LogOn timeout workaround: Change the Uri in the source code by : docs.live.net/SkyDocsService.svc See skydriveapiclient.codeplex.com/discussions/281417. But I am not sure what is solution.
    – tanasi
    Feb 20, 2012 at 14:24

1 Answer 1

1

Ok, download the latest version (Changset 68942) from this location. After download open the project (located in folder trunk/src/SkyDriveServiceClient.sln) in Visual Studio and change the variable SkyDocsServiceUri in the class SkyDocsServiceClient to the following:

public static readonly Uri SkyDocsServiceUri = new Uri("https://docs.live.net/SkyDocsService.svc");

After the change compile the project to build the assembly file. Then you need to reference the assembly from your project and try to execute your code again.

4
  • How can I get source code for SkyDocsServiceClient, is it in dll?
    – tanasi
    Feb 20, 2012 at 14:52
  • Theres a button on the right site to download the latest version of source code.
    – Jehof
    Feb 20, 2012 at 14:54
  • I know that I downloaded dll, but I am not sure did you mean that code from above just put in my class in C# and that's it?
    – tanasi
    Feb 20, 2012 at 14:56
  • No, you must download the source code of the SkyDrive.NET API Client and you need to modify and compile it.
    – Jehof
    Feb 20, 2012 at 14:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.