Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gna Andrew Cross 14 posts 34 karma points
    Oct 08, 2010 @ 12:30
    Gna Andrew Cross
    0

    Error 401 unauthorized

     

    I got an error, as "The remote server returned an error: (401) Unauthorized" while trying to connect with the twitter from my application, the function is written in C#.

     

    What and where will be the problem?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 08, 2010 @ 12:53
    Dirk De Grave
    0

    Please elaborate! are you using 3rd party packages? custom development? is this in umbraco context? If so, explain in further detail? 

     

    Cheers,

    /Dirk

  • Gna Andrew Cross 14 posts 34 karma points
    Oct 08, 2010 @ 13:02
    Gna Andrew Cross
    0

    It is not a 3rd party package.

    It is custom development.

    Yes, I am trying to implement in Umbraco but the error appears even in .NET IDE also.

     

  • Gna Andrew Cross 14 posts 34 karma points
    Oct 08, 2010 @ 13:11
    Gna Andrew Cross
    0

    StreamReader responseReader = null;

    The error throws in the following line

    responseReader = new StreamReader(webRequest.GetResponse().GetResponseStream());

  • Sascha Wolter 615 posts 1101 karma points
    Oct 08, 2010 @ 13:15
    Sascha Wolter
    0

    Looks like you are not authorized on the Twitter server, you need to authorize yourself before you can make any API calls. This is not an Umbraco issue though...

    Check out the Twitter package by Warren.

    Sascha

Please Sign in or register to post replies

Write your reply to:

Draft