Twitter Authentication Error


#1

Hi am using Twiiter Authentication in my asp.net website .
In that if i am authenticating with another account it gives follwoung error
System.Exception: 'An error occured while parsing the Twitter response.'
Please Help me


#2

Are you able to provide any code snippet or example?


#3

TwitterConnect twitter = new TwitterConnect();

                    //LoggedIn User Twitter Profile Details
                    DataTable dt = twitter.FetchProfile();  **(getting error on this line)**

                    Session["TwitterName"] = dt.Rows[0]["name"].ToString();

#4

I assume you’re using this tutorial? I’m not familiar with the TwitterConnect() method you’re describing, unfortunately. I found a similar issue on StackOverflow. Have you considered using a library like Tweetinvi instead?


#5

yes but same issue come


#6

If you provide the Exception returned by Tweetinvi I will be able to investigate and help you further.

You can read more on Exception Handling here : https://github.com/linvi/tweetinvi/wiki/Exception-Handling