Home Forums WPF controls Xceed DataGrid for WPF License Key

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #24897 |

    First of all let me state that this is an amazing program for free. I am however, still having an issue with the free license. I followed the steps in setting the license key but I am still getting the pop up window advising me how many trial days I have left. I am only using the free components. My programming language is vb.net. I set the license key in the application.vb portion of my project.

    Class

    Application

    Inherits System.Windows.Application

    ‘ Application-level events, such as Startup, Exit, and DispatcherUnhandledException

    ‘ can be handled in this file.

    Protected Overrides Sub OnStartup( ByVal e As StartupEventArgs)
    Xceed.Wpf.DataGrid.Licenser.LicenseKey =

    “DGF………….”

    MyBase.OnStartup(e)

    End Sub
    End

    Class
    Can you advise. Thanks for any help you can give

    Imported from legacy forums. Posted by Ken (had 709 views)

    Xceed Support
    Member
    Post count: 5658

    I see that you already consulted our <a href=”http://doc.xceedsoft.com/products/XceedWpfDataGrid/Licensing%20the%20Component.html”>Licensing section</a>.

    After adding your license key in the Xceed Component Licenser (“C:\Program Files\Xceed Components\Xceed Component Licenser\XceedComponentLicenser.exe”), did you remove the WPF trial key? This might resolve your issue.

    Imported from legacy forums. Posted by CharlesB (had 469 views)

    User (Old forums)
    Member
    Post count: 23064

    I added the license key as you suggested. Now, I get the following exception message:

    System.ComponentModel.LicenseException was unhandled
    Message=”Xceed DataGrid for WPF is licensed to you completely free of charge when you register with Xceed. Although it is provided for free, you must unlock the component to use and deploy it. Before any calls are made to the component, set the Licenser.LicenseKey property with the registered license key that is sent to you by email upon registration. If you have not yet registered, visit http://www.xceed.com/freegrid.&#8221;
    Source=”Xceed.Wpf.DataGrid”
    StackTrace:
    at Xceed.Utils.Exceptions.ThrowException.ThrowLicenseException(Type type, Object instance, String message)
    at Xceed.Wpf.DataGrid.DataGridLicense.ThrowNoKeyInCodeAndRegistry()
    at Xceed.Utils.Licensing.XceedLicense.Initialize(String licenseKey, Type licenserType)
    at Xceed.Wpf.DataGrid.DataGridLicense.CreateLicense(String licenseKey, Type licenserType)
    at Xceed.Wpf.DataGrid.Licenser.VerifyLicense()
    at Xceed.Wpf.DataGrid.DataGridControl.DataGridControl_Loaded(Object sender, RoutedEventArgs e)
    at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
    at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
    at System.Windows.UIElement.RaiseEventImpl(RoutedEventArgs args)
    at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
    at MS.Internal.FrameworkObject.OnLoaded(RoutedEventArgs args)
    at System.Windows.BroadcastEventHelper.BroadcastEvent(DependencyObject root, RoutedEvent routedEvent)
    at System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
    at MS.Internal.LoadedOrUnloadedOperation.DoWork()
    at System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
    at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
    at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
    at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
    at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
    at System.Windows.Interop.HwndTarget.OnResize()
    at System.Windows.Interop.HwndTarget.HandleMessage(Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
    at MS.Win32.UnsafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
    at System.Windows.Window.ShowHelper(Object booleanBox)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
    at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
    at System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
    at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
    at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
    at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
    at System.Windows.Threading.Dispatcher.Run()
    at System.Windows.Application.RunInternal(Window window)
    at System.Windows.Application.Run(Window window)
    at System.Windows.Application.Run()
    at Appointments.Application.Main() in C:\Documents and Settings\kschultz\Desktop\Appointments\Appointments\obj\Debug\Application.g.vb:line 61
    at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException:

    Thanks for your help.

    Imported from legacy forums. Posted by Ken (had 385 views)

    Xceed Support
    Member
    Post count: 5658

    In the code, are you setting your license key before the InitializeComponent()? Because you need to.

    Imported from legacy forums. Posted by CharlesB (had 195 views)

    User (Old forums)
    Member
    Post count: 23064

    It finally worked when I put the license info in the windows form load event

    Thanks

    Imported from legacy forums. Posted by Ken (had 360 views)

    User (Old forums)
    Member
    Post count: 23064

    I am having a similar problem when using the controls in Expression Blend. In design view, the Grid control does not render, saying that the trial licence has expired. It runs fine in run mode and displays correctly. Any idea how I can get this to work in Blend.

    Imported from legacy forums. Posted by Steven (had 400 views)

    Xceed Support
    Member
    Post count: 5658

    Just to be sure, did you follow all the steps from my previous <a href=”http://forums.xceed.com/forums/ShowPost.aspx?PostID=9888″>post</a&gt;?

    If yes, could you send us the complete stack trace of the exception at <a href=”mailto:support@xceedsoft.com”>support</a>? Also, could you include your license to confirm it’s a registered one.

    Imported from legacy forums. Posted by CharlesB (had 5320 views)

    markpowell
    Participant
    Post count: 1

    I am more than sure my question is in inappropriate thread however I hope you won’t be too strict to a newbie. I have a question about the compatibility of this program with Linux. I am working on the website [link removed] and would like to implement some solutions there.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.