I have a service that uses the C1.XLS component and on one particular machine we are getting a Error Creating Window Handle message. I have made sure that the license.licx file is correct in the service so that the component wont display the trial dialog. Here is the stack trace:
System.ComponentModel.Win32Exception: Error creating window handle.
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.CreateGraphicsInternal()
at System.Windows.Forms.Control.CreateGraphics()
at C1.C1Excel.C1XLBook.set_DefaultFont(Font value)
at C1.C1Excel.C1XLBook.i()
at C1.C1Excel.C1XLBook..ctor()
at Quadrate.Common.Excel.Excel..ctor()
at Quadrate.Common.Excel.Excel..ctor(String fileName)
at Quadrate.Data.DataSources.Excel.ExcelDataSource.Open(Boolean createNewFile)
Any Ideas?
-Matt