.NET Components for Mobility

System.Net.Sockets.SocketError.AddressNotAvailable on Blackberry 9000

Last post 06-24-2009 12:26 PM by alanjmcf. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-23-2009 7:37 AM

    System.Net.Sockets.SocketError.AddressNotAvailable on Blackberry 9000

    Hi, i tryed an application to send file to BlackBerry 9000, but there was an Exception System.Net.Sockets.SocketError.AddressNotAvailable

    System.Net.Sockets.SocketException {"Indirizzo richiesto non valido nel proprio contesto 002106FEB019:0000110500001000800000805f9b34fb"} System.Net.Sockets.SocketException (Not Valid Address Family)

    Follow the code :

    ________________________________________________________________________________________________________________________

    Dim x As String = "obex://" & CType(cboDevices.SelectedItem, InTheHand.Net.Sockets.BluetoothDeviceInfo).DeviceAddress.ToString & "/" + System.IO.Path.GetFileName(arrImg(i))

    'InTheHand.Net.Sockets.AddressFamily32.Bluetooth.

    Dim theuri As New Uri("obex://" & CType(cboDevices.SelectedItem, InTheHand.Net.Sockets.BluetoothDeviceInfo).DeviceAddress.ToString & "/" + System.IO.Path.GetFileName(arrImg(i)))

    Dim request As New InTheHand.Net.ObexWebRequest(theuri)

    request.ReadFile(Application.StartupPath & "\FilesToSend\" & System.IO.Path.GetFileName(arrImg(i)))Dim s As DateTime

    s = Now

    response = CType(request.GetResponse(), InTheHand.Net.ObexWebResponse)
    _________________________________________________________________________________________________________________________

    The Exception is in request.GetResponse().

    Can you help me?Thank you very much

     

  • 06-23-2009 9:34 AM In reply to

    Re: System.Net.Sockets.SocketError.AddressNotAvailable on Blackberry 9000

    What device are you running your program on?  Win32 or Windows Mobile?  Are you sure it has the Microsoft stack?  In 2.3 and before we only support the Microsoft Bluetooth stack.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 06-23-2009 11:28 AM In reply to

    Re: System.Net.Sockets.SocketError.AddressNotAvailable on Blackberry 9000

    It's a Desktop Application (Win32)  that sends files to mobile devices.I'm installed Microsoft stack.I'm using  InTheHand.Net.Personal.dll V2.4.0.0

    I tested this Application with other  Devices and it worked very well except for BlackBerry.

    Sorry for my English ;-)

  • 06-24-2009 12:26 PM In reply to

    Re: System.Net.Sockets.SocketError.AddressNotAvailable on Blackberry 9000

    OK I got confused -- by the 'non-English' in exception message; your english was fine.

    Presumably the exception is for error code WSAEADDRNOTAVAIL 10049 (see the SocketException.SocketErrorCode/ErrorCode).  That presumably means that the OBEX service was not found on the Blackberry.  We've had that reported before, see "Blackberry detected also have the service property ObjectTransfer is available, whenever the application try to send file, it always return failed" http://32feet.net/forums/p/2272/7381.aspx#7381  I don't know if there was a solution.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
Page 1 of 1 (4 items)
Copyright © 2001-2010 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.