Thank you for your reply.
when i tired to connect using c # application it fails so no transfer possible. And when i connnect it with using machine and paired it, I can able to transfer file using c# application.
I also notice that the key I am passing using application & the key which prompts on device are different. Might be it should be the problem.
I read that i should use "BluetoothWin32Authentication". But i don't understand how to use it, because all my attempts don't work.
This is how i try :
//I retrieve a device from discovery
BluetoothAddress deviceAddress = BluetoothDeviceInfo device;
//Before sending datas i create a BluetoothWin32Authentication instance
BluetoothWin32Authentication auth = new BluetoothWin32Authentication(deviceAddress, "0000");
//Then i send file datas
Uri uri = new Uri("obex://" +deviceAddress+ "/fileTest.txt");
Uri uri = new Uri("obex-push" + "://" + deviceAddress+ "/fileTest.txt");
ObexWebRequest request = new ObexWebRequest(uri);
request.Timeout = 10000;
Stream requestStream = request.GetRequestStream();
//Then, when i get response
ObexWebResponse response = (ObexWebResponse)request.GetResponse();
//I didnt get any InputBox on device to input instead one messagebox comes which showing "Match Passkey?" and the key shown on device is not 0000, its different number (random number, automatically changes on every pass), when I clicked on yes "WebException" is thrown, and said : "Connect failed."
Inner Exception: A socket operation was attempted to an unreachable network 8C77126410C6:0000110500001000800000805f9b34fb
but it works fine with nokia / HTC devices but fails with samsung /LG / blackberry . Is this device specific?
Also, i tried to create an instance from : "BluetoothWin32Authentication(EventHandler<BluetoothWin32AuthenticationEventArgs> handler)"
But i don't know well how to write this sort of handler method and manage it. I didn't find clear example.