<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>sharpbox Discussions Rss Feed</title><link>http://sharpbox.codeplex.com/Thread/List.aspx</link><description>sharpbox Discussions Rss Description</description><item><title>New Post: Cant obtain Access Token. Unauthorized exception.</title><link>http://sharpbox.codeplex.com/discussions/442871</link><description>&lt;div style="line-height: normal;"&gt;It seems that Dropbox wont let me obtain access token. Any suggestions?&lt;br /&gt;
Steps 0-3 work fine but it stops on step 4 and gives and 'unauthorized exception' warning. I have entered the correct&lt;br /&gt;
consumer key and secret and it seems to accept those fine and wants to connect the users account to the application.&lt;br /&gt;
However it hangs on step 4.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;
Imports AppLimit.CloudComputing.SharpBox
Imports AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox
Imports System.IO


Public Class Form1

    ' enter the consumer key and secret
    Dim ConsumerKey As String = &amp;quot;MyKey&amp;quot;
    Dim ConsumerSecret As String = &amp;quot;MySecret&amp;quot;

    ' get the config of dropbox
    Dim config As DropBoxConfiguration = TryCast(CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox), DropBoxConfiguration)
    Dim requestToken As DropBoxRequestToken

    Private Sub RequestButton1_Click(sender As System.Object, e As System.EventArgs) Handles RequestButton1.Click

        ' 0. set your own callback which will be called from DropBox after successful authorization
        config.AuthorizationCallBack = New Uri(&amp;quot;http://www.google.com&amp;quot;)

        ' 1. create a request token
        requestToken = DropBoxStorageProviderTools.GetDropBoxRequestToken(config, ConsumerKey, ConsumerSecret)

        ' 2. build the authorization url based on request
        Dim AuthorizationUrl As String = DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(config, requestToken)

        ' 3. Redirect the user to the website of dropbox
        Process.Start(AuthorizationUrl)

        ' 4. Exchange the request token into access token
        __Dim accessToken As ICloudStorageAccessToken = DropBoxStorageProviderTools.ExchangeDropBoxRequestTokenIntoAccessToken(config, ConsumerKey, ConsumerSecret, requestToken)__

        ' 5. Open the storage with the generated access token 
        Dim DropboxStorage As New CloudStorage()
        DropboxStorage.Open(config, accessToken)

        ' 6. write token for later use
        Dim tokenstream = DropboxStorage.SerializeSecurityToken(accessToken)
        Dim tokenfile As New FileStream(&amp;quot;c:\MyToken.txt&amp;quot;, FileMode.Create)
        tokenstream.CopyTo(tokenfile)
        tokenfile.Close()

        ' 7. close the storage
        DropboxStorage.Close()

    End Sub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>hitme</author><pubDate>Tue, 07 May 2013 21:14:05 GMT</pubDate><guid isPermaLink="false">New Post: Cant obtain Access Token. Unauthorized exception. 20130507091405P</guid></item><item><title>New Post: GetPublicObjectUrl give an 404 error</title><link>http://sharpbox.codeplex.com/discussions/442698</link><description>&lt;div style="line-height: normal;"&gt;Hello, I'm trying to make a basic program which upload a picture into dropbox(that part is fully working) and then it give that picture public url in order to download it.&lt;br /&gt;
I use the following code to get that url :&lt;br /&gt;
&lt;br /&gt;
private void GetRessourceURI()&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;{
    try
    {
        ICloudDirectoryEntry fEntry = m_DropBoxStorage.GetFolder(&amp;quot;/public&amp;quot;);
        ICloudFileSystemEntry fs = m_DropBoxStorage.GetFileSystemObject(m_RessourceFileName, fEntry);

        m_RessourceURI = DropBoxStorageProviderTools.GetPublicObjectUrl(m_AccessToken, fs);
       // m_RessourceURI = m_DropBoxStorage.GetFileSystemObjectUrl(&amp;quot;/&amp;quot; + RessourceFileName, m_DropBoxStorage.GetFolder(&amp;quot;/&amp;quot;));
        Console.WriteLine(m_RessourceURI);
    }
    catch (SharpBoxException AnyException)
    {
        throw AnyException;
    }
}
&lt;/code&gt;&lt;/pre&gt;

when the program is running i get the following link : &lt;a href="http://dl.dropboxusercontent.com/u/168609230/Lena.jpg" rel="nofollow"&gt;http://dl.dropboxusercontent.com/u/168609230/Lena.jpg&lt;/a&gt; , but when i want to use the link dropbox give a 404 error i tried to get the link with GetFileSystemObjectUrl but it give me a temporary URI that i cannot use.&lt;br /&gt;
I'd like to do the same thing as dropbox &amp;quot;share file&amp;quot; feature.&lt;br /&gt;
Can someonehelp please&lt;br /&gt;
Thank you for reading =)&lt;br /&gt;
&lt;/div&gt;</description><author>Drwhy</author><pubDate>Mon, 06 May 2013 15:37:29 GMT</pubDate><guid isPermaLink="false">New Post: GetPublicObjectUrl give an 404 error 20130506033729P</guid></item><item><title>New Post: Status SharpBox Object-Store API</title><link>http://sharpbox.codeplex.com/discussions/442689</link><description>&lt;div style="line-height: normal;"&gt;What is the status of the SharpBox Object-Store API?&lt;br /&gt;
&lt;br /&gt;
We are currently using SharpBox to connect to Dropbox and WebDav but we need to be able to add metadata via WebDav. I would rather use or extend the SharpBox API to do this so I was wondering if SharpBox will still be actively developed and if the SharpBox Object-Store API is still in scope.&lt;br /&gt;
&lt;/div&gt;</description><author>LievenJanssen</author><pubDate>Mon, 06 May 2013 14:15:42 GMT</pubDate><guid isPermaLink="false">New Post: Status SharpBox Object-Store API 20130506021542P</guid></item><item><title>New Post: Using Sharpbox to connect to dropbox from within an (Xamarin) Android app</title><link>http://sharpbox.codeplex.com/discussions/440162</link><description>&lt;div style="line-height: normal;"&gt;Hi JanJunius,&lt;br /&gt;
&lt;br /&gt;
I am unable to connect to dropbox from xamarin.Android app.&lt;br /&gt;
&lt;br /&gt;
Can you please detail on each step on how to do the same.&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
Vikram&lt;br /&gt;
&lt;/div&gt;</description><author>Vikram4ualways</author><pubDate>Thu, 02 May 2013 12:23:47 GMT</pubDate><guid isPermaLink="false">New Post: Using Sharpbox to connect to dropbox from within an (Xamarin) Android app 20130502122347P</guid></item><item><title>New Post: Google Drive integeration</title><link>http://sharpbox.codeplex.com/discussions/441827</link><description>&lt;div style="line-height: normal;"&gt;Hi&lt;br /&gt;
Are there any plans to integration Google Drive?&lt;br /&gt;
&lt;br /&gt;
Has someone done this integration?&lt;br /&gt;
&lt;br /&gt;
best regards&lt;br /&gt;
Christoph&lt;br /&gt;
&lt;/div&gt;</description><author>chmav</author><pubDate>Sun, 28 Apr 2013 08:13:14 GMT</pubDate><guid isPermaLink="false">New Post: Google Drive integeration 20130428081314A</guid></item><item><title>New Post: Couldn't retrieve child elements from the server - Dropbox error</title><link>http://sharpbox.codeplex.com/discussions/440358</link><description>&lt;div style="line-height: normal;"&gt;Hello all,&lt;br /&gt;
&lt;br /&gt;
I'm using GetFolder and DownloadFile to retrieve the contents of a folder in a Dropbox &amp;quot;Apps&amp;quot; directory. Occasionally, I'll get the following error:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Couldn't retrieve child elements from the server&amp;quot;&lt;br /&gt;
&lt;br /&gt;
However it's difficult to consistently reproduce it. My code is fairly simple &lt;br /&gt;
&lt;br /&gt;
 ICloudDirectoryEntry publicFolder = dropbox.GetFolder(cloudPath);&lt;br /&gt;
&lt;br /&gt;
 foreach (var fof in publicFolder)&lt;br /&gt;
 {&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;      if (fof is ICloudDirectoryEntry)
      {
               ICloudDirectoryEntry cde = fof as ICloudDirectoryEntry;

               string parentFolder = cloudPath + cde.Name + &amp;quot;/&amp;quot;;

               foreach (var subDirFile in cde)
               {
                    dropbox.DownloadFile(parentFolder + subDirFile.Name, localDirName);
               }
       }
       else
       {
            dropbox.DownloadFile(cloudPath + fof.Name, localFileName);
       }&lt;/code&gt;&lt;/pre&gt;

}&lt;br /&gt;
&lt;br /&gt;
Any help would be appreciated. &lt;br /&gt;
&lt;br /&gt;
Note that I am not accessing the Root directory but a directory within the &amp;quot;Apps&amp;quot; folder&lt;br /&gt;
on Dropbox (i.e. I do not have full access to the Dropbox folder). &lt;br /&gt;
&lt;/div&gt;</description><author>pdm2012</author><pubDate>Mon, 15 Apr 2013 18:47:39 GMT</pubDate><guid isPermaLink="false">New Post: Couldn't retrieve child elements from the server - Dropbox error 20130415064739P</guid></item><item><title>New Post: Using Sharpbox to connect to dropbox from within an (Xamarin) Android app</title><link>http://sharpbox.codeplex.com/discussions/440162</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
solved my problem. What I had overlooked was that exception handling in Xamarin studio was enabled for all exceptions and the debugger just stopped when some internal exceptions were thrown. After changing that my app runs fine.&lt;br /&gt;
Embarrassing... &lt;br /&gt;
Sorry for this needless post &lt;br /&gt;
Jan&lt;br /&gt;
&lt;/div&gt;</description><author>JanJunius</author><pubDate>Sun, 14 Apr 2013 11:47:18 GMT</pubDate><guid isPermaLink="false">New Post: Using Sharpbox to connect to dropbox from within an (Xamarin) Android app 20130414114718A</guid></item><item><title>New Post: Using Sharpbox to connect to dropbox from within an (Xamarin) Android app</title><link>https://sharpbox.codeplex.com/discussions/440162</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I use Sharpbox with Xamarin for iOS and Android. The iOS version works fine, but the same code doesn't work at all in the Android version :-(&lt;br /&gt;
&lt;br /&gt;
This is the code I use to get the Url the user can use to login to dropbox:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;DropBoxConfiguration config = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox) as DropBoxConfiguration;
config.AuthorizationCallBack = new Uri(callBackUrl);
requestToken = DropBoxStorageProviderTools.GetDropBoxRequestToken(config, consumerKey, consumerSecret);
DropBoxStorageProviderTools.GetDropBoxAuthorizationUrl(config, (DropBoxRequestToken)requestToken);&lt;/code&gt;&lt;/pre&gt;

My app hangs when executing the third line: DropBoxStorageProviderTools.GetDropBoxRequestToken&lt;br /&gt;
&lt;br /&gt;
I have a call stack like this one:&lt;br /&gt;
&lt;blockquote&gt;
System.Security.Cryptography.X509Certificates.X509Store.Open (flags=) in &lt;br /&gt;
System.Security.Cryptography.X509Certificates.X509Chain.get_LMRootStore (Parameters=) in &lt;br /&gt;
System.Security.Cryptography.X509Certificates.X509Chain.get_Roots (Parameters=) in &lt;br /&gt;
System.Security.Cryptography.X509Certificates.X509Chain.get_CertificateCollection (Parameters=) in &lt;br /&gt;
System.Security.Cryptography.X509Certificates.X509Chain.FindParent (Parameters=) in &lt;br /&gt;
System.Security.Cryptography.X509Certificates.X509Chain.BuildChainFrom (Parameters=) in &lt;br /&gt;
System.Security.Cryptography.X509Certificates.X509Chain.Build (Parameters=) in &lt;br /&gt;
System.Net.ServicePointManager.ChainValidationHelper.ValidateChain (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.SslClientStream.OnRemoteCertificateValidation2 (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.SslStreamBase.RaiseRemoteCertificateValidation2 (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.SslClientStream.RaiseServerCertificateValidation2 (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.validateCertificates (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.Handshake.Client.TlsServerCertificate.ProcessAsTls1 (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.Handshake.HandshakeMessage.Process (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.ClientRecordProtocol.ProcessHandshakeMessage (Parameters=) in &lt;br /&gt;
Mono.Security.Protocol.Tls.RecordProtocol.InternalReceiveRecordCallback (Parameters=) in &lt;br /&gt;
&lt;/blockquote&gt;
My app has Internet permissions, but it seems it cannot get an answer from dropbox. Where is my mistake???&lt;br /&gt;
&lt;br /&gt;
I would be very thankful for any ideas…&lt;br /&gt;
&lt;br /&gt;
Thanks,&lt;br /&gt;
Jan&lt;br /&gt;
&lt;/div&gt;</description><author>JanJunius</author><pubDate>Sat, 13 Apr 2013 12:39:33 GMT</pubDate><guid isPermaLink="false">New Post: Using Sharpbox to connect to dropbox from within an (Xamarin) Android app 20130413123933P</guid></item><item><title>New Post: Upload File into subfolders</title><link>http://sharpbox.codeplex.com/discussions/394817</link><description>&lt;div style="line-height: normal;"&gt;I was able to find a workaround. In the following method in the DropBoxStorageProviderService class:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;private string GetResourceUrlInternal(IStorageProviderSession session, ICloudFileSystemEntry fileSystemEntry)&lt;/code&gt;&lt;/pre&gt;

Remove the calls to HttpUtilityEx.UrlEncodeUTF8, so instead of HttpUtilityEx.UrlEncodeUTF8(resourcePath), just do resourcePath.&lt;br /&gt;
&lt;br /&gt;
The same needs to be done in:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;public static String GetDownloadFileUrlInternal(IStorageProviderSession session, ICloudFileSystemEntry entry)&lt;/code&gt;&lt;/pre&gt;

You need to remove the calls to HttpUtilityEx.UrlEncodeUTF8 and instead of url += HttpUtilityEx.UrlEncodeUTF8(dropboxPath), just use url += dropboxPath;&lt;br /&gt;
&lt;br /&gt;
This worked for me even if the subfolders in the path had spaces on their names.&lt;br /&gt;
&lt;/div&gt;</description><author>juantar</author><pubDate>Tue, 09 Apr 2013 12:41:57 GMT</pubDate><guid isPermaLink="false">New Post: Upload File into subfolders 20130409124157P</guid></item><item><title>New Post: List directory with WebDav over SSL not working</title><link>http://sharpbox.codeplex.com/discussions/438573</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I try to list all entries in a folder. But I get an exception SharpBoxException with message 'File not found'. I'm using a WebDav connection to LiveDrive over ssl (see following code). I have test the same WebDav connection with WebDav &lt;a href="http://webdavnet.codeplex.com/" rel="nofollow"&gt;http://webdavnet.codeplex.com/&lt;/a&gt; and works fine.&lt;br /&gt;
&lt;br /&gt;
Here my code:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;// Creating the cloudstorage object
CloudStorage cloudStorage = new CloudStorage();

var uri = new Uri(&amp;quot;https://webdav.livedrive.com:443/&amp;quot;);

var boxnetConfig = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.WebDav, uri);


// building credentials for the service
var webDavCredentials = new GenericNetworkCredentials();

// set the information you got from the enduser
webDavCredentials.UserName = &amp;quot;michael.salzig@xxx.xx&amp;quot;;
webDavCredentials.Password = &amp;quot;myPassword&amp;quot;;

var storageToken = cloudStorage.Open(boxnetConfig, webDavCredentials);

var publicFolder = cloudStorage.GetFolder(&amp;quot;/Test&amp;quot;);

foreach (var fof in publicFolder)
{
  // check if we have a directory
  bool bIsDirectory = fof is ICloudDirectoryEntry;
  // output the info
  Console.WriteLine(&amp;quot;{0}: {1}&amp;quot;, bIsDirectory ? &amp;quot;DIR&amp;quot; : &amp;quot;FIL&amp;quot;, fof.Name);
}&lt;/code&gt;&lt;/pre&gt;

I hope I can get help from anyone.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Michael&lt;br /&gt;
&lt;/div&gt;</description><author>MSalzig</author><pubDate>Sun, 31 Mar 2013 08:24:30 GMT</pubDate><guid isPermaLink="false">New Post: List directory with WebDav over SSL not working 20130331082430A</guid></item><item><title>New Post: How can i use DropBoxTokenIssuer.exe ?</title><link>http://sharpbox.codeplex.com/discussions/438532</link><description>&lt;div style="line-height: normal;"&gt;I have application key and Application secret. But i don`t understand Output-File.&lt;br /&gt;
&lt;br /&gt;
Please any one can tell me what is  Output-File and what type of file i have to put there.&lt;br /&gt;
&lt;/div&gt;</description><author>shuvo009</author><pubDate>Sat, 30 Mar 2013 18:20:08 GMT</pubDate><guid isPermaLink="false">New Post: How can i use DropBoxTokenIssuer.exe ? 20130330062008P</guid></item><item><title>New Post: DropBoxTokenGenerator Not Working</title><link>http://sharpbox.codeplex.com/discussions/437701</link><description>&lt;div style="line-height: normal;"&gt;DropBoxTokenGenerator Not Working&lt;br /&gt;
...plzz give me perfect link where Token Generate &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if not work then how to Aunticate and Generate the Token&lt;br /&gt;
&lt;/div&gt;</description><author>hiral2cool</author><pubDate>Fri, 22 Mar 2013 21:22:40 GMT</pubDate><guid isPermaLink="false">New Post: DropBoxTokenGenerator Not Working 20130322092240P</guid></item><item><title>New Post: Development in webDav</title><link>https://sharpbox.codeplex.com/discussions/435516</link><description>&lt;div style="line-height: normal;"&gt;Hi,&lt;br /&gt;
&lt;br /&gt;
I am currently trying to use ownCloud as my own cloud storage system. I am having a linux desktop and when I tried to use owncloud client in 64 -bit system. It is not working. So when I was searching for alternate - I got to Sharpbox and its great. First of all - thanks for creating a nice library.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Question:&lt;/strong&gt; I am planning to use the webdav part of the library using Mono (in linux). I am finding a couple of pieces not working &lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;When there are files in the local and not in the remote, I get a &amp;quot;Index out of Range&amp;quot;.&lt;/li&gt;
&lt;li&gt;
The RemoveMissingFiles flag seems not to work for local to remove I.e. when I delete a file from local it is not removing from remote. I did not want the other way around (Delete file in remote and remove in local).&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;
So can I make those changes and make it work only for Mono. Please let me know and I would be using only WebDav.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Shankara Narayanan.&lt;br /&gt;
&lt;/div&gt;</description><author>jshanki</author><pubDate>Wed, 06 Mar 2013 00:39:23 GMT</pubDate><guid isPermaLink="false">New Post: Development in webDav 20130306123923A</guid></item><item><title>New Post: Problems with log-in</title><link>https://sharpbox.codeplex.com/discussions/435399</link><description>&lt;div style="line-height: normal;"&gt;&lt;pre&gt;&lt;code&gt;ICloudStorageConfiguration cfg = null;
            cfg = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.DropBox);
            ICloudStorageAccessToken token = null;
            token = DropBoxStorageProviderTools.LoginWithMobileAPI(username, password, app_key, app_secret);

            
           CloudStorage cl_store = new CloudStorage();

            cl_store.Open(cfg, token);

            cl_store.CreateFile(&amp;quot;/Public/My/File.sample&amp;quot;);
            cl_store.Close();
);&lt;/code&gt;&lt;/pre&gt;

it freezes on LoginWithMobileAPI(). Does someone know how to solve this problem?&lt;br /&gt;
&lt;/div&gt;</description><author>vadimkin</author><pubDate>Tue, 05 Mar 2013 08:58:33 GMT</pubDate><guid isPermaLink="false">New Post: Problems with log-in 20130305085833A</guid></item><item><title>New Post: List all dropbox folders into TreeNode</title><link>http://sharpbox.codeplex.com/discussions/435337</link><description>&lt;div style="line-height: normal;"&gt;I am trying to list all folders (like windows 7 explorer listview) from dropbox root folder.&lt;br /&gt;
&lt;br /&gt;
I have the following code but it doesn't work properly:&lt;br /&gt;
&lt;pre&gt;&lt;code&gt; Try
            Dim y As New TreeNode
                SetWindowTheme(TreeView1.Handle, &amp;quot;explorer&amp;quot;, Nothing)
                TreeView1.Nodes.Clear()
                If DropboxUpload.DropBoxStorage.GetRoot.HasChildrens = nChildState.HasChilds Then
                For Each t In DropboxUpload.DropBoxStorage.GetRoot
                    Dim bIsDirectory As Boolean = TypeOf t Is ICloudFileSystemEntry
                    If bIsDirectory = True Then
                        y.Text = t.Name
                        y.Tag = &amp;quot;/&amp;quot; &amp;amp; t.Name
                        If DropboxUpload.DropBoxStorage.GetFolder(&amp;quot;/&amp;quot; &amp;amp; DropboxUpload.DropBoxStorage.GetRoot.Name &amp;amp; &amp;quot;/&amp;quot; &amp;amp; t.Name).HasChildrens = nChildState.HasChilds Then
                            For Each d In DropboxUpload.DropBoxStorage.GetFolder(&amp;quot;/&amp;quot; &amp;amp; DropboxUpload.DropBoxStorage.GetRoot.Name &amp;amp; &amp;quot;/&amp;quot; &amp;amp; t.Name)
                                Dim hy As Boolean = TypeOf d Is ICloudFileSystemEntry
                                If hy = True Then
                                    y.Nodes.Add(New TreeNode With {.Text = d.Name, .Tag = y.Tag &amp;amp; &amp;quot;/&amp;quot; &amp;amp; d.Name})
                                End If
                            Next
                        End If
                    End If
                Next
                End If
        Catch ex As Exception
            MsgBox(ex.Message &amp;amp; vbNewLine &amp;amp; ex.StackTrace)
        End Try&lt;/code&gt;&lt;/pre&gt;

Can anybody find a way to do this. Thank you.&lt;br /&gt;
&lt;/div&gt;</description><author>kylepantall</author><pubDate>Mon, 04 Mar 2013 20:48:44 GMT</pubDate><guid isPermaLink="false">New Post: List all dropbox folders into TreeNode 20130304084844P</guid></item><item><title>New Post: CloudStorage.Open Windows Phone 7</title><link>http://sharpbox.codeplex.com/discussions/434238</link><description>&lt;div style="line-height: normal;"&gt;Hi all!&lt;br /&gt;
&lt;br /&gt;
Here my code on Windows Phone 7.1 but the CloudStorage.Open don't work for a webdav server.&lt;br /&gt;
Any suggestions ? &lt;br /&gt;
&lt;br /&gt;
Thanks a lot!&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;CloudStorage cloud;
string name = &amp;quot;user&amp;quot;;
string password = &amp;quot;password&amp;quot;;
cloud = new CloudStorage();
ICloudStorageConfiguration conf = CloudStorage.GetCloudConfigurationEasy(nSupportedCloudConfigurations.WebDav, new Uri(&amp;quot;https://myserver.com/&amp;quot;));
GenericNetworkCredentials credentials = new GenericNetworkCredentials();
credentials.UserName = name;
credentials.Password = password;
cloud.Open(conf, credentials);&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>urza57</author><pubDate>Sat, 23 Feb 2013 16:35:34 GMT</pubDate><guid isPermaLink="false">New Post: CloudStorage.Open Windows Phone 7 20130223043534P</guid></item><item><title>New Post: Unable to connect to DropBox</title><link>http://sharpbox.codeplex.com/discussions/433965</link><description>&lt;div style="line-height: normal;"&gt;I tried to build a Windows Phone app using Sharpbox. I followed the code sample given in Nokia Developer (&lt;a href="http://www.developer.nokia.com/Community/Wiki/Dropbox_with_Windows_Phone" rel="nofollow"&gt;http://www.developer.nokia.com/Community/Wiki/Dropbox_with_Windows_Phone&lt;/a&gt;) However, I am unable to get a valid token in LoginCallback() func, token returned is null. &lt;br /&gt;
&lt;br /&gt;
From the IAsyncResult in LoginCallback(), the token and configuration member contains valid value, but I found that there is an exception in result.AsyncState.OpenResult.errorResult ---- (System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.)&lt;br /&gt;
&lt;br /&gt;
I tested my token.txt by the given TokenGenerator.exe, and it can return the root correctly.&lt;br /&gt;
&lt;br /&gt;
Can anyone give me a helping hand??&lt;br /&gt;
&lt;br /&gt;
Regards!!!&lt;br /&gt;
&lt;/div&gt;</description><author>lkachun9129</author><pubDate>Thu, 21 Feb 2013 14:33:20 GMT</pubDate><guid isPermaLink="false">New Post: Unable to connect to DropBox 20130221023320P</guid></item><item><title>New Post: Download File to Byte Array</title><link>http://sharpbox.codeplex.com/discussions/432625</link><description>&lt;div style="line-height: normal;"&gt;Excellent, that's very helpful...many thanks!&lt;br /&gt;
&lt;/div&gt;</description><author>boggey30</author><pubDate>Mon, 11 Feb 2013 18:01:16 GMT</pubDate><guid isPermaLink="false">New Post: Download File to Byte Array 20130211060116P</guid></item><item><title>New Post: Download File to Byte Array</title><link>http://sharpbox.codeplex.com/discussions/432625</link><description>&lt;div style="line-height: normal;"&gt;In case this was your next question&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;    public void UploadNewDocument(ICloudDirectoryEntry folder, string fileName, byte[] content)
    {
        Stream sourceStream = new MemoryStream(content);
        ICloudFileSystemEntry file = CloudStore.CreateFile(folder, fileName);
        ICloudFileDataTransfer tf = file.GetDataTransferAccessor();
        tf.Transfer(sourceStream, nTransferDirection.nUpload, null, null);
    }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>mp1smw</author><pubDate>Mon, 11 Feb 2013 10:52:01 GMT</pubDate><guid isPermaLink="false">New Post: Download File to Byte Array 20130211105201A</guid></item><item><title>New Post: Download File to Byte Array</title><link>http://sharpbox.codeplex.com/discussions/432625</link><description>&lt;div style="line-height: normal;"&gt;The following works well for me.        &lt;br /&gt;
&lt;pre&gt;&lt;code&gt;    public byte[] DownloadContent()
    {
        ICloudFileSystemEntry file = CloudStore.GetFile(filePath, rootFolder);

        ICloudFileDataTransfer tf = file.GetDataTransferAccessor();
        byte[] array = new byte[file.Length];
        Stream sourceStream = new MemoryStream(array);
        tf.Transfer(sourceStream, nTransferDirection.nDownload, null, null);
        return array;
    }&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;</description><author>mp1smw</author><pubDate>Mon, 11 Feb 2013 09:35:59 GMT</pubDate><guid isPermaLink="false">New Post: Download File to Byte Array 20130211093559A</guid></item></channel></rss>