Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect auth throws system.io.IOException #50

Closed
deepakverma opened this issue May 30, 2014 · 2 comments
Closed

incorrect auth throws system.io.IOException #50

deepakverma opened this issue May 30, 2014 · 2 comments

Comments

@deepakverma
Copy link
Collaborator

After updating to the latest NuGet package 1.0.297 in case of an incorrect authentication, I have started seeing the following exception been thrown, instead of the unabletoconnect exception "It was not possible to connect to the redis server(s)"
An unhandled exception of type 'System.IO.IOException' occurred in System.dll

Additional information: Unable to read data from the transport connection: Cannot access a disposed object.

Object name: 'System.Net.Sockets.Socket'..

mgravell added a commit that referenced this issue Aug 1, 2014
Cannot access a disposed object when auth fails Issue #50 and connection fails to reconnect with retry when cache is under load #65
@ppanyukov
Copy link

I've tested this fix with our setup of: Asp.net, Azure Redis Cache, SSL, wrong key (password);

  • Nuget package 1.0.322 (prior to this fix) -> crashes w3wp.exe process, eventually leading to 503 Service Unavailable;
  • Nuget package 1.0.333 (with this fix) -> resolves the problem, cannot reproduce any more. Correctly reports "Unable to connect", no more crashes.

So this works :)

@worldspawn
Copy link

I get this using 1.0.371

A first chance exception of type 'System.ObjectDisposedException' occurred in System.dll
Additional information: Cannot access a disposed object.

Connection string is just "host,password=password". I can't get past the Connect call. I'm also Azure Redis Cache... I am using the primary key provided as the password... though I can't find any documentation that explicitly states the primary key is the password (thanks MS).

Edit - password was wrong, was missing a bit of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants