Can you replicate the error without 1,000 lines code?
In reply to Re^3: Server authentication by Marshall in thread Server authentication by brayk1990