Stream data = file.GetContentStream(FileAccess.Read);

May 10, 2011 at 3:00 AM

My program runs fine on one of my computer but on other computer it gives me the following exception on line ------Stream data = file.GetContentStream(FileAccess.Read);

{"Object reference not set to an instance of an object."}

Any idea what is going wrong?

here is the log

'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\WPFGallery.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.The thread 'vshost.NotifyLoad' (0x1f50) has exited with code 0 (0x0).The thread '<No Name>' (0x1f34) has exited with code 0 (0x0).The thread 'vshost.LoadReference' (0x1f28) has exited with code 0 (0x0).'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\WPFGallery.exe', Symbols loaded.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.Step into: Stepping over non-user code 'WPFGallery.App.App'Step into: Stepping over non-user code 'WPFGallery.App.InitializeComponent''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.System.Windows.Data Error: 50 : XmlDataProvider cannot load asynchronous document from Source because of load or parse error in XML stream.; Source='' XmlException:'System.Xml.XmlException: ' ', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.   at System.Xml.XmlTextReaderImpl.Throw(Exception e)   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)   at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()   at System.Xml.XmlTextReaderImpl.ParseDocumentContent()   at System.Xml.XmlTextReaderImpl.Read()   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)   at System.Xml.XmlDocument.Load(XmlReader reader)   at System.Xml.XmlDocument.Load(Stream inStream)   at System.Windows.Data.XmlDataProvider.CreateDocFromExternalSource(WebRequest request)''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\AppLimit.CloudComputing.SharpBox.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\AppLimit.CloudComputing.oAuth.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\Newtonsoft.Json.Net20.dll'The thread '<No Name>' (0x1d40) has exited with code 0 (0x0).A first chance exception of type 'System.NullReferenceException' occurred in AppLimit.CloudComputing.oAuth.dllThe program '[1768] WPFGallery.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

 

Coordinator
May 10, 2011 at 2:28 PM
Hi,

please add the call stack in a separated file (currently it's not readable). Which version do you use?

Dirk

2011/5/10 pranavmistry <notifications@codeplex.com>

From: pranavmistry

My program runs fine on one of my computer but on other computer it gives me the following exception on line ------Stream data = file.GetContentStream(FileAccess.Read);

{"Object reference not set to an instance of an object."}

Any idea what is going wrong?

here is the log

'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\WPFGallery.vshost.exe', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xaml\v4.0_4.0.0.0__b77a5c561934e089\System.Xaml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\WindowsBase\v4.0_4.0.0.0__31bf3856ad364e35\WindowsBase.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\PresentationCore\v4.0_4.0.0.0__31bf3856ad364e35\PresentationCore.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.The thread 'vshost.NotifyLoad' (0x1f50) has exited with code 0 (0x0).The thread '<No Name>' (0x1f34) has exited with code 0 (0x0).The thread 'vshost.LoadReference' (0x1f28) has exited with code 0 (0x0).'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\WPFGallery.exe', Symbols loaded.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.Step into: Stepping over non-user code 'WPFGallery.App.App'Step into: Stepping over non-user code 'WPFGallery.App.InitializeComponent''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework.Aero\v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.Aero.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.System.Windows.Data Error: 50 : XmlDataProvider cannot load asynchronous document from Source because of load or parse error in XML stream.; Source='' XmlException:'System.Xml.XmlException: ' ', hexadecimal value 0x0C, is an invalid character. Line 1, position 1. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args) at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos) at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.Load(Stream inStream) at System.Windows.Data.XmlDataProvider.CreateDocFromExternalSource(WebRequest request)''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationProvider\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationProvider.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\UIAutomationTypes\v4.0_4.0.0.0__31bf3856ad364e35\UIAutomationTypes.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.'WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\AppLimit.CloudComputing.SharpBox.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\AppLimit.CloudComputing.oAuth.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll''WPFGallery.vshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Users\PRANAV\Desktop\WPFGallery3\WPFGallery\bin\Debug\Newtonsoft.Json.Net20.dll'The thread '<No Name>' (0x1d40) has exited with code 0 (0x0).A first chance exception of type 'System.NullReferenceException' occurred in AppLimit.CloudComputing.oAuth.dllThe program '[1768] WPFGallery.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).

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


May 10, 2011 at 4:27 PM

Hi Dirk, 

I use the latest build (version 1). here is the call stack.



System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=AppLimit.CloudComputing.oAuth
  StackTrace:
       at AppLimit.CloudComputing.OAuth.OAuthService.PerformWebRequest(String url, String method, Dictionary`2 multiFormDataStream)
       at AppLimit.CloudComputing.OAuth.OAuthService.GetProtectedResource(String resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary`2 parameter)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxSession.RequestResourceStreamByUrl(String url)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxFileStream..ctor(DropBoxSession sesssion, String url, String file, FileAccess access)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxApplication.GetContentStream(DropBoxSession session, ICloudDirectoryEntry parent, String name, FileAccess access)
       at AppLimit.CloudComputing.SharpBox.DropBox.Objects.DropBoxFileSystemEntry.GetContentStream(FileAccess access)
       at WPFGallery.Window1.EnumerateFilesAndFolder() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 131
       at WPFGallery.Window1.Window_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 230
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at WPFGallery.App.Main() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Coordinator
May 10, 2011 at 8:41 PM
Hi,
oh ok you are using the lates stable version. Would it be possible for you to build our trunk from the source code of codeplex? We did so much stability work in the upcoming 1.1 and refactored the most of our oAuth code? If it crashes as well the call stack can help me.
Anyway I will recheck the 1.0.3 source wiht my eyes too :-)
Thanks
Dirk

2011/5/10 pranavmistry <notifications@codeplex.com>

From: pranavmistry

Hi Dirk, 

I use the latest build (version 1). here is the call stack.



System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=AppLimit.CloudComputing.oAuth
  StackTrace:
       at AppLimit.CloudComputing.OAuth.OAuthService.PerformWebRequest(String url, String method, Dictionary`2 multiFormDataStream)
       at AppLimit.CloudComputing.OAuth.OAuthService.GetProtectedResource(String resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary`2 parameter)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxSession.RequestResourceStreamByUrl(String url)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxFileStream..ctor(DropBoxSession sesssion, String url, String file, FileAccess access)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxApplication.GetContentStream(DropBoxSession session, ICloudDirectoryEntry parent, String name, FileAccess access)
       at AppLimit.CloudComputing.SharpBox.DropBox.Objects.DropBoxFileSystemEntry.GetContentStream(FileAccess access)
       at WPFGallery.Window1.EnumerateFilesAndFolder() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 131
       at WPFGallery.Window1.Window_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 230
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at WPFGallery.App.Main() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

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


Coordinator
May 10, 2011 at 8:47 PM
Hi,
I think it will happen here:

catch (WebException e)

{

// update the error code

HttpWebResponse resp = e.Response as HttpWebResponse;

retStatus = resp.StatusCode;

// reset the return stream

retStream = resp.GetResponseStream();

}

It looks like your computer does not get the content of your file from dropbox.
As I wrote in 1.1 (trunk) we added a lot of error handling code, would realy help if you can use this?
Thanks
Dirk


2011/5/10 Dirk Eisenberg <dirk.eisenberg@gmail.com>
Hi,
oh ok you are using the lates stable version. Would it be possible for you to build our trunk from the source code of codeplex? We did so much stability work in the upcoming 1.1 and refactored the most of our oAuth code? If it crashes as well the call stack can help me.
Anyway I will recheck the 1.0.3 source wiht my eyes too :-)
Thanks
Dirk

2011/5/10 pranavmistry <notifications@codeplex.com>

From: pranavmistry

Hi Dirk, 

I use the latest build (version 1). here is the call stack.



System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=AppLimit.CloudComputing.oAuth
  StackTrace:
       at AppLimit.CloudComputing.OAuth.OAuthService.PerformWebRequest(String url, String method, Dictionary`2 multiFormDataStream)
       at AppLimit.CloudComputing.OAuth.OAuthService.GetProtectedResource(String resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary`2 parameter)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxSession.RequestResourceStreamByUrl(String url)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxFileStream..ctor(DropBoxSession sesssion, String url, String file, FileAccess access)
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxApplication.GetContentStream(DropBoxSession session, ICloudDirectoryEntry parent, String name, FileAccess access)
       at AppLimit.CloudComputing.SharpBox.DropBox.Objects.DropBoxFileSystemEntry.GetContentStream(FileAccess access)
       at WPFGallery.Window1.EnumerateFilesAndFolder() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 131
       at WPFGallery.Window1.Window_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 230
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.CrackMouseButtonEventAndReRaiseEvent(DependencyObject sender, MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
       at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at WPFGallery.App.Main() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

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



May 10, 2011 at 8:55 PM

Hi Dirk,

 

Thanks for the reply. I compiled form trunk and this is what i get now.

on 

retStatus = resp.StatusCode; 

 

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=AppLimit.CloudComputing.oAuth.Net40
  StackTrace:
       at AppLimit.CloudComputing.OAuth.OAuthService.PerformWebRequest(String url, String method, Dictionary`2 multiFormDataStream) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.oAuth\OAuthService.cs:line 128
       at AppLimit.CloudComputing.OAuth.OAuthService.GetProtectedResource(String resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary`2 parameter) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.oAuth\OAuthService.cs:line 50
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxSession.RequestResourceStreamByUrl(String url) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Logic\DropBoxSession.cs:line 33
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxFileStream..ctor(DropBoxSession sesssion, String url, String file, FileAccess access) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Logic\DropBoxFileStream.cs:line 28
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxApplication.GetContentStream(DropBoxSession session, ICloudDirectoryEntry parent, String name, FileAccess access) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Logic\DropBoxApplication.cs:line 469
       at AppLimit.CloudComputing.SharpBox.DropBox.Objects.DropBoxFileSystemEntry.GetContentStream(FileAccess access) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Objects\DropBoxFileSystemEntry.cs:line 112
       at WPFGallery.Window1.EnumerateFilesAndFolder() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 131
       at WPFGallery.Window1.Window_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 230
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at WPFGallery.App.Main() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Coordinator
May 10, 2011 at 9:00 PM
Hi,
ok this confirms my ideas. I can do a short hotfix in the library but then you have to build it again. The more better solutions would be to check out the code from trunk folder and compile the upcoming 1.1? I think this will be handled in that version?
Dirk

2011/5/10 pranavmistry <notifications@codeplex.com>

From: pranavmistry

Hi Dirk,

Thanks for the reply. I compiled form trunk and this is what i get now.

on

retStatus = resp.StatusCode;

System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=AppLimit.CloudComputing.oAuth.Net40
  StackTrace:
       at AppLimit.CloudComputing.OAuth.OAuthService.PerformWebRequest(String url, String method, Dictionary`2 multiFormDataStream) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.oAuth\OAuthService.cs:line 128
       at AppLimit.CloudComputing.OAuth.OAuthService.GetProtectedResource(String resourceUrl, OAuthConsumerContext conContext, OAuthToken accessToken, Dictionary`2 parameter) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.oAuth\OAuthService.cs:line 50
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxSession.RequestResourceStreamByUrl(String url) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Logic\DropBoxSession.cs:line 33
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxFileStream..ctor(DropBoxSession sesssion, String url, String file, FileAccess access) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Logic\DropBoxFileStream.cs:line 28
       at AppLimit.CloudComputing.SharpBox.DropBox.Logic.DropBoxApplication.GetContentStream(DropBoxSession session, ICloudDirectoryEntry parent, String name, FileAccess access) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Logic\DropBoxApplication.cs:line 469
       at AppLimit.CloudComputing.SharpBox.DropBox.Objects.DropBoxFileSystemEntry.GetContentStream(FileAccess access) in C:\Users\PRANAV\Desktop\sharpbox-72587\branches\1.0.3.261\AppLimit.CloudComputing.SharpBox\DropBox\Objects\DropBoxFileSystemEntry.cs:line 112
       at WPFGallery.Window1.EnumerateFilesAndFolder() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 131
       at WPFGallery.Window1.Window_MouseLeftButtonDown(Object sender, MouseButtonEventArgs e) in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\Window1.xaml.cs:line 230
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseDownThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.Run()
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at WPFGallery.App.Main() in E:\SPARSH\sparsh_code\WPFGallery3\WPFGallery\obj\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

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


May 10, 2011 at 9:02 PM

Hi Dirk, 

where can i find the code for the version you mentioned. Thanks a lot for help. Is it sharpbox-72587.zip? 

-Pranav

Coordinator
May 10, 2011 at 9:05 PM
Hi,
it's in the zip as well.
You opened the branches\1.0.3 folder, you should use the trunk folder.
Dirk

2011/5/10 pranavmistry <notifications@codeplex.com>

From: pranavmistry

Hi Dirk,

where can i find the code for the version you mentioned. Thanks a lot for help. Is it sharpbox-72587.zip?

-Pranav

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


May 10, 2011 at 9:18 PM

Hi Dirk, 

 

the trunk folder does not have the oAuth directory. That is why i used the 1.0.3

 

Pranav

Coordinator
May 10, 2011 at 9:44 PM
SharpBox 1.1 does contain only one assembly, everything is included. So just link against the sharpbox library dll and change the build erros (we did 2 or 3 breaking changes).
Dirk

2011/5/10 pranavmistry <notifications@codeplex.com>

From: pranavmistry

Hi Dirk,

the trunk folder does not have the oAuth directory. That is why i used the 1.0.3

Pranav

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


May 25, 2011 at 9:44 AM

Hello Dirk,

I am also getting "Object reference not set to an instance of an object" error when I tried to download a file specifying the file path (for e.g /Getting Started.pdf). Based on your recommendation above I tried to use

Sharpbox 1.1 by building the source in the TRUNK folder. But DropBoxCredentialsToken is missing from Sharpbox 1.1. Have you renamed DropBoxCredentialsToken class to something else or has token support been removed from Sharpbox?

Please advice if I need to use some other classes.

Regards,

Saju

Coordinator
May 25, 2011 at 2:09 PM
Hi,

no the class as self is no more public because we offer the interface
ICloudStorageAccessToken

and you are able to use the StoreToken and LoadToken methods of the cloud storage class

Cheers
Dirk

2011/5/25 saju_paul <notifications@codeplex.com>

From: saju_paul

Hello Dirk,

I am also getting "Object reference not set to an instance of an object" error when I tried to download a file specifying the file path (for e.g /Getting Started.pdf). Based on your recommendation above I tried to use

Sharpbox 1.1 by building the source in the TRUNK folder. But DropBoxCredentialsToken is missing from Sharpbox 1.1. Have you renamed DropBoxCredentialsToken class to something else or has token support been removed from Sharpbox?

Please advice if I need to use some other classes.

Regards,

Saju

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


May 26, 2011 at 5:41 AM

Thanks Dirk.  I have used the DeserializeSecurityToken method which internally uses LoadToken method and then passed it to the CloudStorage.Open overload method. It works great!

Thanks,

Saju