Problem with twitter integration in C#
-
Hi, I am trying to post a message to twitter from my ASP.NET Application.so downlaoded the Twitterizer.Framework.dll and try the below code. but i am getting error message like "{Twitterizer.Framework.TwitterizerException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 128.242.240.116:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)"
Twitter twitter = new Twitter(TwitterUserName, TwitterPassword);
string TwitterMsg = message.Text; if (message.Text.Length > 120) { TwitterMsg = TwitterMsg.Substring(0, 130) + "... For more update logon to DailyFreeCode.com"; } else { TwitterMsg = TwitterMsg + "... For more update logon to DailyFreeCode.com"; } twitter.Status.Update(TwitterMsg); lblTwitMsg.InnerText = "Your have shout successfully on http://twitter.com/" + TwitterUserName;
fttyhtrhyfytrytrysetyetytesystryrty
-
Hi, I am trying to post a message to twitter from my ASP.NET Application.so downlaoded the Twitterizer.Framework.dll and try the below code. but i am getting error message like "{Twitterizer.Framework.TwitterizerException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 128.242.240.116:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)"
Twitter twitter = new Twitter(TwitterUserName, TwitterPassword);
string TwitterMsg = message.Text; if (message.Text.Length > 120) { TwitterMsg = TwitterMsg.Substring(0, 130) + "... For more update logon to DailyFreeCode.com"; } else { TwitterMsg = TwitterMsg + "... For more update logon to DailyFreeCode.com"; } twitter.Status.Update(TwitterMsg); lblTwitMsg.InnerText = "Your have shout successfully on http://twitter.com/" + TwitterUserName;
fttyhtrhyfytrytrysetyetytesystryrty
Hi, I don't know the twitter framework, but it seems that the twitter host is not reachable. A quick ping and telnet test showed me, that I can connect to this host. Did you checked that you can reach the host (ping and telnet at port 80)? Maybe your firewall does not allow the connection? Regards Sebastian
It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.
-
Hi, I am trying to post a message to twitter from my ASP.NET Application.so downlaoded the Twitterizer.Framework.dll and try the below code. but i am getting error message like "{Twitterizer.Framework.TwitterizerException: Unable to connect to the remote server ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 128.242.240.116:80 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)"
Twitter twitter = new Twitter(TwitterUserName, TwitterPassword);
string TwitterMsg = message.Text; if (message.Text.Length > 120) { TwitterMsg = TwitterMsg.Substring(0, 130) + "... For more update logon to DailyFreeCode.com"; } else { TwitterMsg = TwitterMsg + "... For more update logon to DailyFreeCode.com"; } twitter.Status.Update(TwitterMsg); lblTwitMsg.InnerText = "Your have shout successfully on http://twitter.com/" + TwitterUserName;
fttyhtrhyfytrytrysetyetytesystryrty