G
Guest
Hi there,
I am trying to implement my own certificate verification process in my app
(as we use in-house certificates for our web server). I am using .NET CF SP2
on my device and emulator.
I am getting a "A blocking operation is currently executing" exception when
I try to connect to the server using WebRequest.GetRequestStream()
Does anybody know what's wrong with the way I am doing it.
A step by step descritption of my code: (.NET CF SP2)
1. On App Start I register my custom "ICertificatePolicy" implementation
with the Service Point Manager's Certificate policy. Currently I accept all
certificates blindly (return true in "CheckValidationResult" function)
2. On a button click I Create a WebRequest object from the URL (with
https://), and assign the data and data length to it. Additional properties I
set are KeepAlive=False, and Method="POST".
I get an exception of "A blocking operation is currently executing" when I
do a WebRequest.GetRequestStream(). If I click the button over a couple of
times, the exception thrown changes to a TimeOut exception.
Can anybody lead me to pointers as to why this is happening?
TIA
PB.
I am trying to implement my own certificate verification process in my app
(as we use in-house certificates for our web server). I am using .NET CF SP2
on my device and emulator.
I am getting a "A blocking operation is currently executing" exception when
I try to connect to the server using WebRequest.GetRequestStream()
Does anybody know what's wrong with the way I am doing it.
A step by step descritption of my code: (.NET CF SP2)
1. On App Start I register my custom "ICertificatePolicy" implementation
with the Service Point Manager's Certificate policy. Currently I accept all
certificates blindly (return true in "CheckValidationResult" function)
2. On a button click I Create a WebRequest object from the URL (with
https://), and assign the data and data length to it. Additional properties I
set are KeepAlive=False, and Method="POST".
I get an exception of "A blocking operation is currently executing" when I
do a WebRequest.GetRequestStream(). If I click the button over a couple of
times, the exception thrown changes to a TimeOut exception.
Can anybody lead me to pointers as to why this is happening?
TIA
PB.