Indrajeet B

Indrajeet B

  • NA
  • 6
  • 9.4k

Unable to evaluate expression because the code is optimized

Aug 26 2013 2:27 AM
Hello,


Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. 

I'm getting this error, when i try to post on twitter from my asp.net website. The error occurs at "response.redirect" and i also referred "http://support.microsoft.com/kb/312629/en-us" this article. I cant append false, I need to redirect to the twitter authorization page and get back.

 OAuthTokenResponse reqToken = OAuthUtility.GetRequestToken(
                            oauth_consumer_key,
                            oauth_consumer_secret,
                            Request.Url.AbsoluteUri);
                        Response.Redirect(string.Format("http://twitter.com/oauth/authorize?oauth_token={0}", reqToken.Token)); // error occurs here
                       

Pls help me out! 

Thanks
In advance

Answers (1)