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