Mono Project

Mar 21, 2013 at 4:10 AM
I there

I use this API on visual studio and mono for windows and works perfectly. The problem is when i use onde mono linux... with a simple code, he don't make a connect, give error

The code that i use is the same for both operating systems.

Sample code:

var srvSkyDrive = new SkyDriveServiceClient();
    try{
       srvSkyDrive.LogOn("email@domain.com", "password");
    }
    catch (Exception ex){
       Console.WriteLine(ex);
    }

Error:

HgCo.WindowsLive.SkyDrive.LogOnFailedException: The remote server returned an error: (500) Internal Server Error. ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at HgCo.WindowsLive.SkyDrive.SkyDriveServiceClient.LogOn (System.String userName, System.String userPassword) [0x0005e] in /home/User/ProjectSKY/SkyDriveServiceClient/SkyDriveServiceClient.cs:102
at HgCo.WindowsLive.SkyDrive.Sample.ConsoleApplication.MainClass.Main (System.String[] args) [0x00010] in /home/User/ProjectSKY/ProjectSKY/Main.cs:18

Thank You for your help
Best regards