简体   繁体   English

Skydrive操作已超时

[英]Skydrive the operation has timed out

I am trying to connect to skydrive with this code, it is console C# application: 我正在尝试使用此代码连接到skydrive,这是控制台C#应用程序:

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? 有人知道该问题的解决方案吗?

Ok, download the latest version (Changset 68942) from this location. 好了,从下载最新版本(Changset 68942) 这个位置。 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: 下载后,在Visual Studio中打开项目(位于主干/src/SkyDriveServiceClient.sln文件夹中),并将类SkyDocsServiceClient中的变量SkyDocsServiceUri更改为以下内容:

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. 然后,您需要引用项目中的程序集,然后尝试再次执行代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM