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

New Post: Unauthorized

$
0
0
Hi linvi: I was using Tweetinvi to publish tweets. I was working fine,but yesterday i encapsulated code in a Service (svc project) and run it in another PC. Now i get 401 Unauthorized error. My code is very basic:

// Initializing a Token with Twitter Credentials contained in the App.config
        IToken token = new Token(
            ConfigurationManager.AppSettings["token_AccessToken"],
            ConfigurationManager.AppSettings["token_AccessTokenSecret"],
            ConfigurationManager.AppSettings["token_ConsumerKey"],
            ConfigurationManager.AppSettings["token_ConsumerSecret"]);

        ITweet t = new Tweet("From " + device_Name + ":" + tweet_Tex + "." + follow_link);
        return t.Publish(token);
I´m missing something?? In the previus machine the service run ok. I checked the network configuration and is the same.

Regards

Viewing all articles
Browse latest Browse all 4126

Trending Articles



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