This project has moved and is read-only. For the latest updates, please go here.

Uri BeginAuthorize()

Sep 7, 2010 at 1:25 PM
Edited Sep 7, 2010 at 1:26 PM

I have managed to use OAuthorization for the desktop application via DesktopOAuthorization.cs using Linq to twitter. It works well on the PC I developed.

If I install it on a different PC, in Uri BeginAuthorize() function of DesktopOAuthorization.cs it throws an exception saying "Error occured while sending a direct message or getting a response".


I am unable to get through this. Please let me know if anyone could help me!



Sep 8, 2010 at 4:55 AM

Hi Gourav,

   Since it works in your development machine, i suspect this could be the "System Time" issue. I have faced these kind of problems with OAuth earlier.

OAuth will silently fail if your system date/time is not set properly. So please check the system date and time (Timestamp).

From the above article, "This is important because your OAuth call might silently fail if the timestamp is far enough away from universal coordinated time that it appears as if it has expired."

Note:- I have faced this issue while i was devoloping WebOAuth. But this is seems to be a general OAuth specification. So hopefully, this is the problem in your case also.

Hope this helps.


Thanks & Regards