TweetSharp SendTweet给出StackOverflow异常

时间:2014-03-27 03:35:41

标签: c# .net twitter stack-overflow tweetsharp

我正在尝试在现有项目中实现tweetsharp。我在我的tweeter帐户中创建了一个新的应用程序,并且我已经生成了发布推文所需的所有令牌。但是在调用SendTweet方法时,我得到 Stackoverflow异常。你能告诉我我做错了吗?

异常:mscorlib.dll中发生了未处理的“System.StackOverflowException”类型异常 service.SendTweet(options);

发生异常
   static string _consumerKey = "key here";
    static string _consumerSecret = "secret";
    static string _accessToken = "token";
    static string _accessTokenSecret = "secret token";

    public static void Tweet(string tweet)
    {
        var service = new TwitterService(_consumerKey, _consumerSecret);
        service.AuthenticateWith(_accessToken, _accessTokenSecret);

        SendTweetOptions options = new SendTweetOptions();
        options.Status = tweet;

        service.SendTweet(options);
    }

提前致谢......

0 个答案:

没有答案