I am having a similar problem from the code taken from the "ObexPushVB" sample project.
I am using it in a desktop application, rather than for a mobile device. I am also using the library in C#
However, at the respective line of code:
ObexWebResponse response = (ObexWebResponse)request.GetResponse();
The application hangs, the device being sent a file just rejects the attempt also. Any suggestions as to why this is happening?
My code:
Uri uri = new Uri("obex-push://" + deviceAddr + "/" + file);
ObexWebRequest request = new ObexWebRequest(uri);
request.ReadFile(file);
ObexWebResponse response = (ObexWebResponse)request.GetResponse();
response.Close();