Service.GetRequestToken Tweetsharp not working


OAuthRequestToken requestToken = service.GetRequestToken(“”);

the method always returns

An exception of type ‘System.UriFormatException’ occurred in System.dll but was not handled in user code

Additional information: Invalid URI: The hostname could not be parsed.


Not sure why this might be happening and I’m not very familiar with the Tweetsharp library. I had a quick look at the issue tracker but I don’t see anyone reporting anything similar. I wonder if it might be objecting to the hyphens of the port number in your URL. Unfortunately it looks like the author isn’t maintaining or updating the package any more.


Even when I use OAuthRequestToken requestToken = service.GetRequestToken() ; I remove entire url , still getting same error. I am hosting my application in a window server that has proxy, Could the proxy be the issue, and if it is how should I fix it please


I am using a virtual machine


Still waiting for any help


Have you contacted the TweetSharp developers at all? this looks like a .NET issue rather than a Twitter API issue.