Home › Forums › Support › KeyNotFoundException › Reply To: KeyNotFoundException
December 19, 2013 at 09:39
#1334
Anonymous
Inactive
Wow, that was easy 😛
The only place I can think that a KeyNotFoundException could be thrown, is if the symmetric pre-shared password was not in the options Dictionary at the point the exception is thrown
That helped me:
I have a general “Startup” function to initialize all Handlers and such
private void SetDelegates()
{
SetDelegates_Generic();
SetDelegates_Basic();
SetDelegates_*...
...
}
So i added connect/disconnect handlers (and my license-handler…) to “SetDelegates_Generic()”. The encryption stuff is called / set in “SetDelegates_Basic()”, so after the handler is registered.
I moved my function to “SetDelegates_Basic()” and it works as expected. Thanks a lot!
-Namikon