Received : 2007/08/29 00:08:08 Message : I am using a PPT template file and create an instance of it using ASPOSE.slides and then fill data into this instance and save it to a destination folder. This whole stuff is working fine in Development and staging servers but i get a runtime error "Font '?' cannot be found error" in production server . The only fonts iam using are "Arial" and "Verdana" with varying sizes in the slides. Also,no font properties are being changed in code behind file.
iam not able to attach 2 files error stack trace is as below
Font '?' cannot be found. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: Font '?' cannot be found.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
-------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Let me know how to get the full stack trace. I have put try catch block in all the functions, this is all the stack trace i get at run time. Today i tried one more thing, i just created an instance of the template and saved it to the destination folder without writing any data to any of the slides. Still i get the same error :(.
The most simple will be delete try catch blocks , recompile project with debug info and run. Most probably you will see full stack trace on the web page in case it’s not disabled. Also you can check Exception.InnerException property.
It would be great if you can provide also source code of ICap.Itd.AdminTool.ITDMetrics.imgbtnGenerate_click method.
I have tried compliling the project in the debug mode, but this is the stack trace i could get. Anyways i am attaching the complete code behind file.
FYI, In the front end file i have 2 dropdowns (year and quarter) and an image button. On click of the image button the PPT file is supposed to come in the pop up.
One more thing, we installed all the fonts in production server same as in other servers. Still the run time error haunts.
At first, please delete or comment all this lines from the code and run application again. Exceptions should be visible after that.
catch (Exception objExp) { throw new Exception(objExp.Message); }
How it is possible to debug application if you hide all exceptions in each method? I’d suggest reading some articles or books about right exceptions handling.
tried with new Aspose components.But still same error.
I figure it out, it may be due to cloning of slides. Can i create extra slides within the PPT template and then remove unwanted slides from PPT just before saving? i just thougt of doing this as an alternative to cloning.