try the sample, but error when login

Oct 16, 2011 at 4:42 PM

I try the sample,SkyDrive.Sample.ConsoleApplication.

build pass.

but error when run it.

public static void Main(string[] args)
        {
            // Instantiate SkyDrive API client
            var srvSkyDrive = new SkyDriveServiceClient();
            WebFolderInfo testWebFolder = null;

            try
            {
                // Log on to a user account
                srvSkyDrive.LogOn(
                    //ConfigurationSettings.AppSettings["UserName"],
                    //ConfigurationSettings.AppSettings["Password"]);

                    ConfigurationSettings.AppSettings["myusername@msn.com"],
                    ConfigurationSettings.AppSettings["mypassword"]);

             I enter my corrent username and password.

            but catch error 401.

            why?

            How to solve it?

 

           Thank you.

 

 

 

 

 

Feb 2, 2012 at 9:35 AM

http://skydriveapiclient.codeplex.com/discussions/281417