Is there any solution?? Can somebody help me on this issue? On Oct 9, 3:13 pm, Mansi <[email protected]> wrote: > Does anybody has idea for this issue? > > On Oct 7, 4:30 pm, Mansi <[email protected]> wrote: > > > I have to post text on Twitter through my web site. > > For that I've created one application on Twitter. And have done all > > the related changes in site source code. > > > I am using .net Framework 2.0. > > > But having issue while redirecting to Twitter > > (oAuth.AuthorizationLinkGet()). > > It throws bug The remote server returned an error: (401) Unauthorized > > in below code. (oAuthTwitter.cs file) > > public string WebResponseGet(HttpWebRequest webRequest) > > { > > StreamReader responseReader = null; > > string responseData = ""; > > > try > > { > > responseReader = new > > StreamReader(webRequest.GetResponse().GetResponseStream()); //HERE IT > > THROWS EXCEPTION. > > responseData = responseReader.ReadToEnd(); > > } > > catch > > { > > throw; > > } > > finally > > { > > webRequest.GetResponse().GetResponseStream().Close(); > > responseReader.Close(); > > responseReader = null; > > } > > > return responseData; > > } > > > What causes this bug? And what is the solution?
-- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
