Error in Sending Direct Message in .net CF 3.5

Dec 28, 2009 at 2:16 PM

Hi Friends,

im using NTwitter for my mobile twitter client. im trying to send direct message using following code

mytwitter = new Twitter(accusername, accpass);

mytwitter.SendMessage(uname, textmessage);

im using windows mobile 5 ppc emulator . im getting 403 error


im getting exception in the function

public static string GetResponseText(HttpWebRequest request)

in the file URLConnectionHttpClient.cs

Exception details:

Stack trace:

{System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.finishGetResponse()
   at System.Net.HttpWebRequest.GetResponse()
   at NTwitter.URLConnectionHttpClient.GetResponseText(HttpWebRequest request)
   at NTwitter.URLConnectionHttpClient.Post(Uri uri, IDictionary`2 vars, Boolean authenticate)
   at NTwitter.Twitter.Post(Uri uri, IDictionary`2 vars, Boolean authenticate)
   at NTwitter.Twitter.SendMessage(String recipient, String text)
   at TwitterClient.PopUp.button1_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
   at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
   at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
   at System.Windows.Forms.Application.Run(Form fm)
   at TwitterClient.Program.Main()


Headers = {Date: Mon, 28 Dec 2009 14:09:56 GMT
Server: hi
X-Transaction: 1262009396-79216-11047
Status: 403 Forbidden
Last-Modified: Mon, 28 Dec 2009 14:09:56 GMT
X-Runtime: 0.01846
Content-Type: application/json; charset=utf-8
Pragma: no-cache

AbsoluteUri = ""



please help me

Thanks in Advance