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, I have created a WPF user control with the property grid and am trying to use the control in another WPF exe application. I reviewed your licensing faq and copied the licenses.licx file from the dll (hosting the property grid) to the exe that will host the user control (containing the property grid). I also referenced Mindscape.WpfPropertyGrid in the hosting exe application but when I try to build the exe I get the following error: Error 1 Exception occurred creating type 'Mindscape.WpfPropertyGrid.PropertyGrid, Mindscape.WpfPropertyGrid, Version=2.0.571.9838, Culture=neutral, PublicKeyToken=0f2f2e3bf9b0527c' System.ComponentModel.LicenseException: An instance of type 'Mindscape.WpfPropertyGrid.PropertyGrid' was being created, and a valid license could not be granted for the type 'Mindscape.WpfPropertyGrid.PropertyGrid'. Please, contact the manufacturer of the component We have a site license - any insight is appreciated. Thanks, Mike |
|
|
Hi Mike, Can you check that the Build Action for licenses.licx in the EXE project is Embedded Resource? Also that the location where the Property Grid control is referenced contains the .lic file? (This may not be the case if, for example, you have copied the Property Grid library to a project /Libraries folder.) If neither of these things fix the problem then could you send us a stripped down version of your two projects -- just the minimal user control and hosting EXE project so we can try to reproduce the problem. Thanks!
|
|
|
Hi Ivan, Copying the .lic file to where the referenced .ddl is located did the trick! Thanks for your timely response, Mike |
|
|
One other question. Moving foward, is there a non-file way we can handle this when we package the application such as embedding the license within our binaries (so we do not have a loose .licx file with our application binaries)?
|
|
|
You should never need to ship the .licx file with your binaries. Visual Studio compiles the .lic and the .licx together into a runtime licence resource which it embeds in your binaries. The only thing you should need to ship with your binaries is the Mindscape.WpfPropertyGrid.dll itself. If you're seeing something different, please let us know! |
|