32feet
32feet copied to clipboard
System.Net.WebException "GET failed with code: NotFound, Final"
OS
Edition Windows 10 Pro Version 21H2 OS build 19044.1889 Experience Windows Feature Experience Pack 120.2212.4180.0
Project type
Console App (.Net framework)
Code, where is happening
var response = request.GetResponse();
Where request is ObexWebRequest.
Error
System.Net.WebException
HResult=0x80131509
Message=GET failed with code: NotFound, Final
Source=InTheHand.Net.Obex
StackTrace:
at InTheHand.Net.ObexWebRequest.DoGet(MemoryStream ms, WebHeaderCollection headers)
at InTheHand.Net.ObexWebRequest.GetResponse()
at // MY CODE HERE
Note
About two years ago we also used ObexWebRequest from InTheHand.Net.Personal. The code from this library now works successfully.
Assumption
Our device issues a status code to Obex requests: 0x20 | 0x80 That is Ok + Final Perhaps this is related to the error.