This project is read-only.

Use VB.net 2008

Jul 25, 2011 at 7:12 PM
Edited Jul 25, 2011 at 7:13 PM

Hello,

I saw a post where someone was using vb.net.

This was his code;

Imports System.Linq
Imports System.Text
Imports AppLimit.CloudComputing.SharpBox
Imports AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox

 

 

Dim storage As AppLimit.CloudComputing.SharpBox.CloudStorage
        Dim token As ICloudStorageAccessToken

        Dim dropBoxConfiguratuon As ICloudStorageConfiguration
        Dim dropBoxCredentals As AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxCredentials

        dropBoxConfiguratuon = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration()
        dropBoxCredentals = New AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxCredentials()
        dropBoxCredentals = New DropBoxCredentials()
        dropBoxCredentals.ConsumerKey = ""
        dropBoxCredentals.ConsumerSecret = ""
        dropBoxCredentals.UserName = ""
        dropBoxCredentals.Password = ""

        storage = New CloudStorage()

        token = storage.Open(dropBoxConfiguratuon, dropBoxCredentals)
        If (IsDBNull(storage)) Then
            Console.WriteLine("open failed")
        End If

 

If i try to run this i get an error on "dropBoxConfiguratuon = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration()"

How can i fix this,

Or does anyone have a sample script in vb.net 2008?

 

EDIT:

I used the WP7 dll

Jul 25, 2011 at 7:14 PM
What kind of error? Do you have a stack trace?

Thanks
Dirk


2011/7/25 hardbassbv <notifications@codeplex.com>

From: hardbassbv

Hello,

I saw a post where someone was using vb.net.

This was his code;

Imports System.Linq
Imports System.Text
Imports AppLimit.CloudComputing.SharpBox
Imports AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox

Dim storage As AppLimit.CloudComputing.SharpBox.CloudStorage
        Dim token As ICloudStorageAccessToken

        Dim dropBoxConfiguratuon As ICloudStorageConfiguration
        Dim dropBoxCredentals As AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxCredentials

        dropBoxConfiguratuon = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration()
        dropBoxCredentals = New AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxCredentials()
        dropBoxCredentals = New DropBoxCredentials()
        dropBoxCredentals.ConsumerKey = ""
        dropBoxCredentals.ConsumerSecret = ""
        dropBoxCredentals.UserName = ""
        dropBoxCredentals.Password = ""

        storage = New CloudStorage()

        token = storage.Open(dropBoxConfiguratuon, dropBoxCredentals)
        If (IsDBNull(storage)) Then
            Console.WriteLine("open failed")
        End If

If i try to run this i get an error on "dropBoxConfiguratuon = AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration()"

How can i fix this,

Or does anyone have a sample script in vb.net 2008?

Read the full discussion online.

To add a post to this discussion, reply to this email (sharpbox@discussions.codeplex.com)

To start a new discussion for this project, email sharpbox@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jul 25, 2011 at 7:21 PM

 

System.TypeInitializationException was unhandled
  Message="De type-initialisatiefunctie voor AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration heeft een uitzondering veroorzaakt."
  Source="AppLimit.CloudComputing.SharpBox.WP7"
  TypeName="AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration"
  StackTrace:
       bij AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration.GetStandardConfiguration()
       bij Dropbox_picture_manager.Form1.connect() in C:\Users\bas\My Dropbox\bas mar zooi\Game maker\2e game\Map creator\VB map creator\Dropbox picture manager\Dropbox picture manager\Form1.vb:regel 23
       bij Dropbox_picture_manager.Form1.Button1_Click(Object sender, EventArgs e) in C:\Users\bas\My Dropbox\bas mar zooi\Game maker\2e game\Map creator\VB map creator\Dropbox picture manager\Dropbox picture manager\Form1.vb:regel 42
       bij System.Windows.Forms.Control.OnClick(EventArgs e)
       bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       bij System.Windows.Forms.Control.WndProc(Message& m)
       bij System.Windows.Forms.ButtonBase.WndProc(Message& m)
       bij System.Windows.Forms.Button.WndProc(Message& m)
       bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       bij System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       bij System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       bij System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       bij System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
       bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
       bij Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
       bij Dropbox_picture_manager.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:regel 81
       bij System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       bij Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       bij System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       bij System.Threading.ThreadHelper.ThreadStart()
  InnerException: System.IO.FileNotFoundException
       FileName="System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e"
       FusionLog="=== Statusinformatie voorafgaand aan binding === LOG: gebruiker = bas-Desktop\bas LOG: DisplayName = System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e  (Fully-specified) LOG: Appbase = file:///C:/Users/bas/My Dropbox/bas mar zooi/Game maker/2e game/Map creator/VB map creator/Dropbox picture manager/Dropbox picture manager/bin/Debug/ LOG: oorspronkelijk PrivatePath = NULL Aanroep-assembly : AppLimit.CloudComputing.SharpBox.WP7, Version=1.1.0.440, Culture=neutral, PublicKeyToken=null. === LOG: deze binding begint in default-laadcontext. LOG: geen toepassingsconfiguratiebestand gevonden. LOG: computerconfiguratiebestand van C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config wordt gebruikt. LOG: verwijzing na beleid: System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e LOG: er wordt geprobeerd URL file:///C:/Users/bas/My Dropbox/bas mar zooi/Game maker/2e game/Map creator/VB map creator/Dropbox picture manager/Dropbox picture manager/bin/Debug/System.DLL te downloaden. LOG: er wordt geprobeerd URL file:///C:/Users/bas/My Dropbox/bas mar zooi/Game maker/2e game/Map creator/VB map creator/Dropbox picture manager/Dropbox picture manager/bin/Debug/System/System.DLL te downloaden. LOG: er wordt geprobeerd URL file:///C:/Users/bas/My Dropbox/bas mar zooi/Game maker/2e game/Map creator/VB map creator/Dropbox picture manager/Dropbox picture manager/bin/Debug/System.EXE te downloaden. LOG: er wordt geprobeerd URL file:///C:/Users/bas/My Dropbox/bas mar zooi/Game maker/2e game/Map creator/VB map creator/Dropbox picture manager/Dropbox picture manager/bin/Debug/System/System.EXE te downloaden. "
       Message="Kan bestand of assembly System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden."
       Source="AppLimit.CloudComputing.SharpBox.WP7"
       StackTrace:
            bij AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration..cctor()
       InnerException: 

So in english it says,

AppLimit.CloudComputing.SharpBox.StorageProvider.DropBox.DropBoxConfiguration has occured an exception

 

Jul 27, 2011 at 6:12 PM

Hello,

I found the problem, I had the wrong version of the dll.

So, that explains it.

 

Thanks