WebSocketClient Error

Aug 21, 2014 at 12:07 AM
I am using websocketclient and its work very good for 1 minutes more or less. After that time I start to receive the error at the end of the post.

Any ideas?

thanks in Advance,

Exception System.Security.Cryptography.CryptographicException - CLR_E_FAIL (1)

#### Message: 
#### Microsoft.SPOT.Cryptoki.Session::InitSession [IP: 0000] ####
#### Microsoft.SPOT.Cryptoki.Session::.ctor [IP: 001f] ####
#### System.Security.Cryptography.RNGCryptoServiceProvider::.ctor [IP: 0009] ####
#### JDI.Common.Security.CryptoUtils::GetRandomBytes [IP: 000c] ####
#### JDI.WebSocket.Client.WSFrame::CreateFrame [IP: 002d] ####
#### JDI.WebSocket.Client.WSFrame::CreateFrame [IP: 000d] ####
#### JDI.WebSocket.Client.WebSocketClient::EnqueueMessage [IP: 0007] ####
#### JDI.WebSocket.Client.WebSocketClient::SendText [IP: 001e] ####
#### websocketNETMF.websocketManager::bitNet_Tick [IP: 000b] ####
#### Gadgeteer.Timer::dt_Tick [IP: 0018] ####
#### Microsoft.SPOT.DispatcherTimer::FireTick [IP: 0010] ####
#### Microsoft.SPOT.Dispatcher::PushFrameImpl [IP: 0054] ####
#### Microsoft.SPOT.Dispatcher::PushFrame [IP: 001a] ####
#### Microsoft.SPOT.Dispatcher::Run [IP: 0006] ####
#### Gadgeteer.Program::Run [IP: 0020] ####
#### CryptoException ErrorCode = 177
#### CryptoException ErrorCode = 177
A first chance exception of type 'System.Security.Cryptography.CryptographicException' occurred in Microsoft.SPOT.Security.PKCS11.dll
#### CryptoException ErrorCode = 177
#### CryptoException ErrorCode = 177
Coordinator
Aug 22, 2014 at 6:30 AM
Hi liargo.
Thank you for trying my websocket library.
I tested it for long periods of time, and never saw the error you are encountering.
Which version of NETMF are you using, and what board are you running it on?
Regards,
Jim
Aug 22, 2014 at 7:55 PM
Hi Jim,

I am using Gadgeteer FEZ Spider 1.0,
Loader (TinyBooter) version information: 4.2.10.0 on this device.
Firmware (TinyCLR) version information: 4.2.11.2 on this device.
JuanPablo
Coordinator
Aug 22, 2014 at 9:40 PM
Hi Juan,

I don't own any Gadgeteer boards, so I'm not that familiar with them.
Is your application a Gadgeteer application, or is it a pure NETMF application?
That may have something to do with it.
Please go over to the GHI forum at https://www.ghielectronics.com/community/forum and post your question there.
There are a lot of Gadgeteer experts on that forum that may be able to help.
Regards,
Jim