Hi guys,
I'm facing some strange problem with twitter authentication that I've implemented into my web site with DotNetOpenAuth v4.1.0.0. From time to time I get System.ArgumentException
'gzip' is not a supported encoding name.
Parameter name: name
With the following stacktrace (my code calls excluded) :
at System.Globalization.EncodingTable.internalGetCodePageFromName(String name)
at System.Globalization.EncodingTable.GetCodePageFromName(String name)
at DotNetOpenAuth.Messaging.NetworkDirectWebResponse.GetResponseReader()
at DotNetOpenAuth.OAuth.ChannelElements.OAuthChannel.ReadFromResponseCore(IncomingWebResponse response)
at DotNetOpenAuth.Messaging.Channel.RequestCore(IDirectedProtocolMessage request)
at DotNetOpenAuth.Messaging.Channel.Request(IDirectedProtocolMessage requestMessage)
at DotNetOpenAuth.Messaging.Channel.Request[TResponse](IDirectedProtocolMessage requestMessage)
at DotNetOpenAuth.OAuth.ConsumerBase.ProcessUserAuthorization(String requestToken, String verifier)
at DotNetOpenAuth.OAuth.WebConsumer.ProcessUserAuthorization(HttpRequestBase request)
at DotNetOpenAuth.OAuth.WebConsumer.ProcessUserAuthorization()
This happens quite often but not all the time. I can get the exception, then try to log in again and succed with the login. The line that throws the exception is :
var response = TwitterSignIn.ProcessUserAuthorization();
Do you have any idea what's happening ? Maybe you could guide me where I could find more information on how to resolve it ?
Thanks,
Thomas