This is also a fairly common scenario. You do not need an instance of the component on the Main Window, but would like to create one or more instances at run time. In this case, the project will not contain a licenses.licx file (or the file will not contain appropriate runtime license for the components) and therefore licensing will fail.
To fix this problem, add an instance of the component to the Main Window in the project. This will create the licenses.licx file and things will then work as expected. (The component can be removed from the form after the licenses.licx file has been created).
Adding an instance of the component to the Main Window, then removing that component, is just a simple way of adding a line with the component name to the licenses.licx file.
Another scenario is when licenses.licx file is not created or remains empty. In such a case, you can create a new file and add valid license entries for all the controls that you are using in the project from the below list (Delete the entries that do not apply).
Valid License Entries |
Copy Code
|
---|---|
C1.WPF.BarCode.C1BarCode, C1.WPF.BarCode.4 C1.WPF.C1Chart.C1Chart, C1.WPF.C1Chart.4 C1.WPF.C1Chart.C1ChartLegend, C1.WPF.C1Chart.4 C1.WPF.C1Chart3D.C1Chart3D, C1.WPF.C1Chart3D.4 C1.WPF.C1Chart3D.C1Chart3DLegend, C1.WPF.C1Chart3D.4 C1.WPF.C1ComboBox, C1.WPF.4 C1.WPF.C1DockPanel, C1.WPF.4 C1.WPF.C1DropDown, C1.WPF.4 C1.WPF.C1DropDownButton, C1.WPF.4 C1.WPF.C1FilePicker, C1.WPF.4 C1.WPF.C1HeaderedContentControl, C1.WPF.4 C1.WPF.C1HeaderedItemsControl, C1.WPF.4 C1.WPF.C1HyperlinkButton, C1.WPF.4 C1.WPF.C1HyperPanel, C1.WPF.4 C1.WPF.C1ItemsControl, C1.WPF.4 C1.WPF.C1ListBox, C1.WPF.4 C1.WPF.C1ListViewer, C1.WPF.4 C1.WPF.C1MaskedTextBox, C1.WPF.4 C1.WPF.C1Menu, C1.WPF.4 C1.WPF.C1MenuList, C1.WPF.4 C1.WPF.C1NumericBox, C1.WPF.4 C1.WPF.C1ProgressBar, C1.WPF.4 C1.WPF.C1ProgressIndicator, C1.WPF.4 C1.WPF.C1RadialMenu, C1.WPF.4 C1.WPF.C1RadialPanel, C1.WPF.4 C1.WPF.C1RangeSlider, C1.WPF.4 C1.WPF.C1ScrollViewer, C1.WPF.4 C1.WPF.C1SplitButton, C1.WPF.4 C1.WPF.C1TabControl, C1.WPF.4 C1.WPF.C1TextBoxBase, C1.WPF.4 C1.WPF.C1TileListBox, C1.WPF.4 C1.WPF.C1TreeView, C1.WPF.4 C1.WPF.C1Window, C1.WPF.4 C1.WPF.C1WrapPanel, C1.WPF.4 C1.WPF.Carousel.C1CarouselPanel, C1.WPF.Carousel.4 C1.WPF.Data.Entities.C1DataSource, C1.WPF.Data.Entity.4 C1.WPF.DataGrid.C1DataGrid, C1.WPF.DataGrid.4 C1.WPF.DateTimeEditors.C1DatePicker, C1.WPF.DateTimeEditors.4 C1.WPF.DateTimeEditors.C1DateTimePicker, C1.WPF.DateTimeEditors.4 C1.WPF.DateTimeEditors.C1TimeEditor, C1.WPF.DateTimeEditors.4 C1.WPF.Docking.C1DockControl, C1.WPF.Docking.4 C1.WPF.Docking.C1DockTabControl, C1.WPF.Docking.4 C1.WPF.Extended.C1Accordion, C1.WPF.Extended.4 C1.WPF.Extended.C1AccordionItem, C1.WPF.Extended.4 C1.WPF.Extended.C1Book, C1.WPF.Extended.4 C1.WPF.Extended.C1BookHalfSpan, C1.WPF.Extended.4 C1.WPF.Extended.C1ColorPicker, C1.WPF.Extended.4 C1.WPF.Extended.C1Expander, C1.WPF.Extended.4 C1.WPF.Extended.C1PropertyGrid, C1.WPF.Extended.4 C1.WPF.Extended.C1Rating, C1.WPF.Extended.4 C1.WPF.FlexGrid.C1FlexComboBox, C1.WPF.FlexGrid.4 C1.WPF.FlexGrid.C1FlexGrid, C1.WPF.FlexGrid.4 C1.WPF.FlexGrid.C1FlexGridGroupPanel, C1.WPF.FlexGrid.GroupPanel.4 C1.WPF.FlexGrid.C1FlexSheet, C1.WPF.FlexSheet.4 C1.WPF.FlexGrid.C1FormulaBar, C1.WPF.FlexSheet.4 C1.WPF.Gauge.C1Gauge, C1.WPF.Gauge.4 C1.WPF.Gauge.C1Knob, C1.WPF.Gauge.4 C1.WPF.Gauge.C1LinearGauge, C1.WPF.Gauge.4 C1.WPF.Gauge.C1RadialGauge, C1.WPF.Gauge.4 C1.WPF.Gauge.C1RegionKnob, C1.WPF.Gauge.4 C1.WPF.Gauge.C1RulerGauge, C1.WPF.Gauge.4 C1.WPF.Gauge.C1SpeedometerGauge, C1.WPF.Gauge.4 C1.WPF.Gauge.C1VolumeGauge, C1.WPF.Gauge.4 C1.WPF.Legacy.C1Cube, C1.WPF.Legacy.4 C1.WPF.Maps.C1Maps, C1.WPF.Maps.4 C1.WPF.Maps.C1MultiScaleImage, C1.WPF.Maps.4 C1.WPF.MediaPlayer.C1MediaPlayer, C1.WPF.MediaPlayer.4 C1.WPF.Olap.C1OlapChart, C1.WPF.Olap.4 C1.WPF.Olap.C1OlapGrid, C1.WPF.Olap.4 C1.WPF.Olap.C1OlapPage, C1.WPF.Olap.4 C1.WPF.Olap.C1OlapPanel, C1.WPF.Olap.4 C1.WPF.OrgChart.C1OrgChart, C1.WPF.OrgChart.4 C1.WPF.OutlookBar.C1OutlookBar, C1.WPF.OutlookBar.4 C1.WPF.PdfViewer.C1PdfViewer, C1.WPF.PdfViewer.4 C1.WPF.ReportViewer.C1ReportViewer, C1.WPF.ReportViewer.4 C1.WPF.RichTextBox.C1RichTextBox, C1.WPF.RichTextBox.4 C1.WPF.RichTextBox.C1RichTextBoxToolbar, C1.WPF.RichTextBox.Toolbar.4 C1.WPF.Schedule.C1Calendar, C1.WPF.Schedule.4 C1.WPF.Schedule.C1Scheduler, C1.WPF.Schedule.4 C1.WPF.Tile.C1SlideTile, C1.WPF.Tile.4 C1.WPF.Tile.C1Tile, C1.WPF.Tile.4 C1.WPF.Tile.C1TileBase, C1.WPF.Tile.4 C1.WPF.TileView.C1TileView, C1.WPF.TileView.4 C1.WPF.Toolbar.C1Toolbar, C1.WPF.Toolbar.4 C1.WPF.Toolbar.C1ToolbarButton, C1.WPF.Toolbar.4 C1.WPF.Toolbar.C1ToolbarDropDown, C1.WPF.Toolbar.4 C1.WPF.Toolbar.C1ToolbarGroup, C1.WPF.Toolbar.4 C1.WPF.Toolbar.C1ToolbarSplitButton, C1.WPF.Toolbar.4 C1.WPF.Toolbar.C1ToolbarStrip, C1.WPF.Toolbar.4 C1.WPF.Toolbar.C1ToolbarToggleButton, C1.WPF.Toolbar.4 |
One can also create licenses.licx file manually using a text editor or Visual Studio itself by opening the file and adding the valid license entries. When Visual Studio recreates the application resources, the component is queried and its run-time license gets added to the appropriate assembly resource.