This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi Mindscape team, I'm here to report an issue about using TimePicker. WPF Elements Version: 7.0.122.23338 (Issue also occurred in many previous versions that I have used) Environment: Visual Studio 2010 Professional, Windows 7 64-bit Case condition: 1.A solution with two WPF projects: A is StartUp Project, B is not. 2.Both add a TimePicker control to MainWindows.xaml by dragging from the Toolbox. 3.Build the solution. 4.Now open MainWindows.xaml of project B in design window. An error bar occurs on design window: InstanceBuilderException was thrown on "TimePicker": A valid license cannot be granted for the type Mindscape.WpfElements.WpfElementsCore. Contact the manufacturer of the component for more information. Click here for detail. Here is the detail: A valid license cannot be granted for the type Mindscape.WpfElements.WpfElementsCore. Contact the manufacturer of the component for more information. at Microsoft.Expression.DesignModel.Core.InstanceBuilderOperations.InstantiateType(Type type, Boolean supportInternal, Boolean supportProtected) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.InstantiateTargetType(IInstanceBuilderContext context, ViewNode viewNode) at Microsoft.Expression.DesignModel.InstanceBuilders.ClrObjectInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode) at Microsoft.Expression.Platform.WPF.InstanceBuilders.FrameworkElementInstanceBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode) at MS.Internal.Services.DesignModeValueProviderService.DesignModeValueProviderBuilder.Instantiate(IInstanceBuilderContext context, ViewNode viewNode) at Microsoft.Expression.DesignModel.Core.ViewNodeManager.Instantiate(ViewNode viewNode) Then I won't be able to edit that file, it's blocked by this error. The solution I have tried is: 1.Set the "Copy Local" property of reference Mindscape.WpfElements of project A (StartUp Project) to false. 2.Build the solution. This will make the license error gone, at design time. But will cause an exception after Run(F5), at run time: A first chance exception of type 'System.Windows.Markup.XamlParseException' occurred in PresentationFramework.dll Additional information: 'Set connectionId threw an exception.' Line number '4' and line position '53'. Another thing: I have tried the same thing with "DateTimePicker" control, the same issue happened. But with "IntegerTextBox" control, all goes well. Could you please help me to find some solution or workaround to this issue? I have attached related screenshots and project files. Thank you so much! Best regards, Tommy |
|
|
Hi Tommy, Thanks for sending the project. It is working fine for me though. If you have copied the Mindscape.WpfElements.dll out of the install directory into your own folder, make sure to also copy the .lic file from the install directory into the same folder as the dll. -Jason Fauchelle |
|
|
Copying .lic file perfectly solved my issue! I still don't know why this thing doesn't happen to controls like IntegerTextBox, but i think it doesn't matter now. Thank you so much, Jason! Really appreciate your help! |
|
|
Oh sorry, I was meaning to mention that the IntegerTextBox and several other controls are provided for free - no licensing. Great to hear the issue was easily solved. -Jason Fauchelle |
|