I am getting an invalid username or password error when trying to upload to twitpic. I am positive these are correct.
I am using Twitpic.net
Twitpic tp = new Twitpic(data, ConfigurationManager.AppSettings["TwitterUsername"], ConfigurationManager.AppSettings["TwitterPassword"]);
TwitpicResponse resp = tp.UploadAndPost("The Message");
Any help would be greatly appreciated.
Have you verified that you can actually read the settings from the application configuration? I.e. for example assign the values read from ConfigurationManager to temporary variables and debug/display/print them instead? If the read fails, the returned value will be null.
Then, when you can verify that you are indeed sending correct credentials - verify that you have authorized the Twitpic application on your Twitter account?
Additionally, hard-coding the configuration keys is not best practice - use constants or similar approach instead.