Bug reports Found a bug? Post it here please.
Version 5.x > Bug reports > external API treeHelper.GetDocuments View modes: 
User avatar
Member
Member
d.farina-reply - 5/27/2011 5:36:08 AM
   
external API treeHelper.GetDocuments
I retrieve the article from an alias path using treeHelper.GetDocuments method; this method works fine except for one case:
In my page i use a standard login user control; when i log in correctly and my user control reloads the page, the call to the external API raises the following exception : "{Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}

in all other cases it works fine.
Do you have any idea how to resolve it?

thanks
Regards.

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 5/31/2011 9:07:24 AM
   
RE:external API treeHelper.GetDocuments
Hi,

We haven't come across this issue before, however some posts over the web suggest a possible problem in usage of response.redirect inside ajax call and maybe a connection with Ext.js usage - e.g. in this stackoverflow.com post.
It could be related to redirection and wrong usage of try/catch.

We would need to know what's the external API and what exactly is called there in order to help you with this. Any further info would be appreciated.

Regards,
Zdenek