I'd download asp.net sample, I go to web.config and put my twitterconsumerkey and twitterconsumersecret.
I have an application in twitter acount with read and write access.
It make me 401 error when I exectute the sample and I read in discussions that it could be that credentials not have the accesstoken and oauthtoken values, and that they have to be the same.
I put the value to this credentials.accesstoken = xxxx and credentials.oauthtoken = xxxx
The 401 error dissapear, and when all is ok, I received the error "error while querying twitter" in the line of var accounttotals = accounttotalsresults.tolist().
In the detail of this error I can see in httperror value "401 Unauthorized"
How can I do? I think all is correct
Sorry my English