Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

New Post: TwitterCredentials.CreateCredentials initialisation exception

$
0
0
Hi,

Code that was working in 0.9.0.2 is now not working 0.9.0.7:
TwitterCredentials.Credentials = TwitterCredentials.CreateCredentials(twitter_AccessToken, twitter_AccessSecret, twitter_ConsumerKey, twitter_ConsumerSecret);
It generates this error:
An unhandled exception of type 'System.TypeInitializationException' occurred
Additional information: The type initializer for 'Tweetinvi.TwitterCredentials' threw an exception.
I've ensured all the variables have values, and I've tried with two different sets of twitter credentials. Both sets of credentials worked before, as did the code. This line is also the first real bit of code run in my app.

Should I be doing this a different way in the new version?

Thanks,
Craig

Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>