Thanks for answering and for your work !!!
I use now the last version (InTheHand.Net.Personal 2.5.0.0 and Widcomm 2.5.0.0) and I now got this error {"Connection closed whilst reading an OBEX packet."} in InTheHand.Net.ObexWebRequest.GetResponse()
Stack :
à InTheHand.Net.ObexWebRequest.StreamReadBlockMust(Stream stream, Byte[ buffer, Int32 offset, Int32 size)
à InTheHand.Net.ObexWebRequest.CheckResponse(ObexStatusCode& status, Boolean isConnectResponse)
à InTheHand.Net.ObexWebRequest.DoPut()
à InTheHand.Net.ObexWebRequest.GetResponse()
à TestInTheHand.Form1.button1_Click(Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
à System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
à Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
à System.Windows.Forms.Application.Run(Form fm)
à TestInTheHand.Program.Main()
The message is "Operation failed." and the Status is System.Net.WebExceptionStatus.Success
In Output, I got this trace :
'TestInTheHand.exe' (Managed): Loaded 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\mscorlib.dll'
'TestInTheHand.exe' (Managed): Loaded 'd:\dvlp\wmobile\testinthehand\testinthehand\bin\debug\TestInTheHand.exe', Symbols loaded.
'TestInTheHand.exe' (Managed): Loaded 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\System.Windows.Forms.dll'
'TestInTheHand.exe' (Managed): Loaded 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\System.dll'
'TestInTheHand.exe' (Managed): Loaded 'C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\Debugger\BCL\System.Drawing.dll'
'TestInTheHand.exe' (Managed): Loaded 'c:\apps\32feet.net installer\assemblies\ce2\InTheHand.Net.Personal.dll'
A first chance exception of type 'System.PlatformNotSupportedException' occurred in InTheHand.Net.Personal.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
The thread 0xa3d61f72 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
A first chance exception of type 'System.NotSupportedException' occurred in InTheHand.Net.Personal.dll
The thread 0xe4670e12 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
The thread 0xe4670e12 has exited with code 0 (0x0).
and with the 32feet.config :
Échec d'assertion
Exception creating factory 'InTheHand.Net.Bluetooth.SocketsBluetoothFactory, ex: System.PlatformNotSupportedException: Microsoft Bluetooth stack not supported (radio).
à InTheHand.Net.Bluetooth.SocketsBluetoothFactory..ctor()
à System.Reflection.RuntimeConstructorInfo.InternalInvoke(RuntimeConstructorInfo rtci, BindingFlags invokeAttr, Binder binder, Object parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess, StackCrawlMark& stackMark)
à System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[ parameters, CultureInfo culture)
à System.Reflection.ConstructorInfo.Invoke(Object[ parameters)
à System.Activator.CreateInstance(Type type, Boolean nonPublic)
à InTheHand.Net.Bluetooth.Factory.BluetoothFactory.GetStacks_inLock()
à InTheHand.Net.Bluetooth.Factory.BluetoothFactory.get_Factories()
à InTheHand.Net.Sockets.BluetoothClient..ctor()
à InTheHand.Net.ObexWebRequest.Connect()
à InTheHand.Net.ObexWebRequest.GetResponse()
à TestInTheHand.Form1.button1_Click(Object sender, EventArgs e)
à System.Windows.Forms.Control.OnClick(EventArgs e)
à System.Windows.Forms.Button.OnClick(EventArgs e)
à System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
à System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
à Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
à System.Windows.Forms.Application.Run(Form fm)
à TestInTheHand.Program.Main()
à DefaultTraceListener.AssertFailure(String File, Int32 Line, String Expr)
à DefaultTraceListener.Fail(String message, String detailMessage)
à DefaultTraceListener.Fail(String message)
à TraceInternal.Fail(String message)
à TraceInternal.Assert(Boolean condition, String message)
à BluetoothFactory.GetStacks_inLock()
à BluetoothFactory.get_Factories()
à BluetoothClient..ctor()
à ObexWebRequest.Connect()
à ObexWebRequest.GetResponse()
à Form1.button1_Click(Object sender, EventArgs e)
à Control.OnClick(EventArgs e)
à Button.OnClick(EventArgs e)
à ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
à Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
à EVL.EnterMainLoop(IntPtr hwnMain)
à Application.Run(Form fm)
à Program.Main()
I got exactly the same error with ObjectPushApplication sample !
Thanks !