Json instance does not hold an int


#1

I am trying to get twitter profile picture using linqtotwitter but i am getting error like json instance does not hold an int this issue is only for new accounts


#2

Can you show some code? Do you mean this is for new Twitter accounts or new accounts that are added to your app?


#3
 Dim twitterCtx As New TwitterContext(_auth)
                                    Dim users =
                                            From tweet In twitterCtx.User
                                            Where tweet.Type = UserType.Show And
                                            tweet.ScreenName = username
                                            Select tweet
                                    Dim User = users.SingleOrDefault() Dim twitterCtx As New TwitterContext(_auth)
                                    Dim users =
                                            From tweet In twitterCtx.User
                                            Where tweet.Type = UserType.Show And
                                            tweet.ScreenName = username
                                            Select tweet
                                    **Dim User = users.SingleOrDefault()**

when users.SingleOrDefault() is executing that time i am getting error. i have an account which is created in 2010 its adding to the application.but i have created another twitter account 2days back when i am trying this to added it showing that error