1
Answer

Unable to evaluate expression because the code is optimized

Indrajeet B

Indrajeet B

11y
1.1k
1
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)