NTLM authentication fails with HTTP 500 internal server error