.NET Components for Mobility

PDA to PDA file transfer: bluetooth, C#

Last post 12-26-2006 8:27 AM by faltumk. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 12-18-2006 11:14 AM

    PDA to PDA file transfer: bluetooth, C#

    Hi,

    I am bluetooth novice.  Objective is to transfer files from one PDA to another PDA using bluetooth.

    My C# application should have full control over source files & location (source PDA) and target location(destination PDA).

    Please guide how to start.

    thanks,

    mk 

     

     

    MK
    Filed under: , , ,
  • 12-22-2006 8:35 AM In reply to

    Re: PDA to PDA file transfer: bluetooth, C#

    I tried using the ObexPushVB sample application, but when i selected the device, followed by the file to be transfered, i get messagebox saying:

    "Bad Request".

    Still at times it gives an error message:

     ------------- Error Message -----------------

    ObjectPushVB.exe

    InvalidOperationException

    An error message cannot be displayed because an optional resource assembly containing it cannot be found

     

    at System.IO.Stream.set_ReadTimeout()

    at InTheHand.Net.ObexWebRequest.Connect()

    at InTheHand.Net.ObexWebRequest.GetResponse()

    at ThirtyTwoFeet.Form1.btnBeam_Click()

    at System.Windows.Forms.Control.OnClick()

    at System.Windows.Forms.Button.OnClick()

    at System.Windows.Forms.ButtonBase.WnProc()

    at System.Windows.Forms.Control._InternalWnProc()

    at Microsoft.AGL.Forms.EVL.EnterMainLoop()

    at System.Windows.Forms.Application.Run()

    at ThirtyTwoFeet.Form1.Main()

     ------------- Error Message -----------------

    MK
    Filed under: , , ,
  • 12-22-2006 10:53 AM In reply to

    Re: PDA to PDA file transfer: bluetooth, C#

    desription of the error:

    "Timeouts are not supported on this stream"

    MK
  • 12-24-2006 4:26 PM In reply to

    Re: PDA to PDA file transfer: bluetooth, C#

    This error has been addressed in the latest update of the source. Although .NETCF 2.0 supports the ReadTimeout and WriteTimeout properties they generate an exception when accessed. The source has been updated to exclude this from the .NETCF 2.0 builds and so Timeout is only implemented in the desktop version of the library.

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 12-26-2006 4:21 AM In reply to

    Re: PDA to PDA file transfer: bluetooth, C#

    Thanks peter,

    where can i get latest working source code of the sample application

    mk 

     

    MK
  • 12-26-2006 8:27 AM In reply to

    Re: PDA to PDA file transfer: bluetooth, C#

    After downloading the code from CodePlex, i was able to successfully transfer the files.

    Thanks!

    MK
Page 1 of 1 (6 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.