Jul 22, 2013, 3:30 PM
[CLOSED] Exporting Attachment from DirectMethod
I have a *DirectEvent* that exports an XML representation of a data grid as an attachment (on the HTTP response) and works perfectly.
I've tried to create a *DirectMethod* that does the same thing, but it does not export the data. At the end, it throws an
"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack"
exception which is caught in ResourceManager.cs when the directMethod is invoked on Raising the postback event.
Is this because I am doing a Response.Write in a DirectMethod, which is an Ajax call? And if so, do you recommend that I not use DirectMethods when exporting an attachment?
Thanks!
I've tried to create a *DirectMethod* that does the same thing, but it does not export the data. At the end, it throws an
"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack"
exception which is caught in ResourceManager.cs when the directMethod is invoked on Raising the postback event.
Is this because I am doing a Response.Write in a DirectMethod, which is an Ajax call? And if so, do you recommend that I not use DirectMethods when exporting an attachment?
Thanks!
Last edited by Baidaly; Jul 22, 2013 at 6:59 PM.
Reason: [CLOSED]