We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Exception Stack Empty in LINQ Reporting


we are experiencing the exception “Stack Empty” when executing the BuildReport method
of the LINQ ReportEngine over a docx report template.

What does this error mean?
What can we do to resolve this?

Thank you

Massimo Ventura


I finally found where the problem was.
There was a <> without a corresponding opening <<foreach… in the template.
Maybe due to a wrong cut&paste.

Please try by yourself to use a wrong template as described.

Once more you provide very unuseful messages. What a developer can do when it receives “Stack empty”?
Please pay attention in messaging to avoid developers to make wrong assumptions and waste time.

Thank You


Thanks for your inquiry. It is nice to hear from you that your problem has been solved. We have already logged a feature request as WORDSNET-16048 (Add more useful exception message when LINQ Reporting syntax is incorrect) in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

A post was split to a new topic: Add useful exception message for LINQ Reporting