We use .NET Aspose.Words.17.9 in Production in my workplace.
At present when the Dictionary miss the Keyword, Aspose.Words throw KeyNotFoundException, which is fantastic to show the user the issue to not generate the document was that they they’ve potentially misspelled a variable name.
However the challenge comes when there were much changes to a template. And when user doesn’t know which one was wrong. It becomes a tedious and time consuming task to go through one by one, removing and adding back, to see which one caused the issue.
Is there a smarter way to program the Aspose.Words use, through the .NET product, that can tell the user which exact keyword was missing? ie: The root-cause of the KeyNotfoundException?
At present I find the InnerException is null. So there is no way for me to grab that information.
This is a stopper for us to move forward.
If the library needs to change, can you let us know how much forward can I go with my current license without purchasing another license?