Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Problem with twitter integration in C#

Problem with twitter integration in C#

Scheduled Pinned Locked Moved ASP.NET
csharphelpasp-netcomsysadmin
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yadlaprasad
    wrote on last edited by
    #1

    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

    S K 2 Replies Last reply
    0
    • Y yadlaprasad

      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

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • Y yadlaprasad

        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

        K Offline
        K Offline
        kar_chak
        wrote on last edited by
        #3

        This process is no longer. Twitter changed their process to OAuth process. and I am looking for a sample code. Can anybody please send me the code of twitter OAuth process.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups