|
I'm using DesignSurface to create a designer for users to customize layout
of each form in system, for example size and location of a control. My
forms have used some thired party controls from Infragistics. The
DesignSurface run fine on developer computer, but not on user side. It
throws the following exception at this line:
Control clone =
_host.CreateComponent(original.GetType(), original.Name)
as Control;
_host is a IDesignerHost original is control on form,
such as grid, text editor, label...
Unable to locate license
assembly. at
Infragistics.Shared.UltraLicenseProvider.GetDesignTimeLicense(Type type,
Object instance, Boolean allowExceptions,
UltraLicenseBaseAttribute licenseAttribute) at
Infragistics.Shared.UltraLicenseProvider.GetLicense(LicenseContext context,
Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context,
Type type, Object instance, Boolean allowExceptions, License& license,
String& licenseKey) at
System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object
instance, Boolean allowExceptions, License& license) at
System.ComponentModel.LicenseManager.Validate(Type type,
Object instance) at
Infragistics.Win.UltraWinGrid.UltraGrid..ctor()
I've
asked Infragistics support, the control checks for design time license
when I add it to DesignSurface, which is only available on a system
which has their product installed. However, they said that it might be
possible to create a licensecontext and set it on the license manager.
Does anyone know how to do so?
Thank you very much!!! | | Barry Kwok Thursday, March 02, 2006 4:23 PM | Even though this thread is a bit old, I wanted to reply just so future lurkers can find a solution.
I ran into the same problem, and contacted Infragistics about the problem. The problem stems from the IDesignerHost instance that the DesignSurface uses. It checks the LicenseContext of the controls that are being used and, since the design-time components require a developer's license, the process fails.
We got around this by writing our own DesignSurface class that instantiated a custom IDesignerHost. This is pretty difficult, because not only do you have to write your own DesignSurface and IDesignerHost implementation, but it also involves writing an IDesignerLoaderHost, ISelectionService, IComponentChangeService, and possibly some other services depending on your needs. See the documentation on the DesignSurface for a full list of services that are provided that you may need to create custom versions of.
This turned out to be somewhat painless for us since we had already bit the bullet in creating these classes for our product in the .NET 1.1 framework.
Some additional resources to help you along this path:
A good introduction to the various services and how they interact. Requires multiple readings. http://www.divil.co.uk/net/articles/designers/hosting.asp
An example app from Microsoft. http://download.microsoft.com/download/f/d/9/fd986a23-d3d6-44c3-8fa0-75e21b0094bf/designerhost.exe
| | JeffSeifert Thursday, October 12, 2006 4:01 PM | No one have ideas about this issue?
| | Barry Kwok Thursday, May 04, 2006 7:01 PM | Even though this thread is a bit old, I wanted to reply just so future lurkers can find a solution.
I ran into the same problem, and contacted Infragistics about the problem. The problem stems from the IDesignerHost instance that the DesignSurface uses. It checks the LicenseContext of the controls that are being used and, since the design-time components require a developer's license, the process fails.
We got around this by writing our own DesignSurface class that instantiated a custom IDesignerHost. This is pretty difficult, because not only do you have to write your own DesignSurface and IDesignerHost implementation, but it also involves writing an IDesignerLoaderHost, ISelectionService, IComponentChangeService, and possibly some other services depending on your needs. See the documentation on the DesignSurface for a full list of services that are provided that you may need to create custom versions of.
This turned out to be somewhat painless for us since we had already bit the bullet in creating these classes for our product in the .NET 1.1 framework.
Some additional resources to help you along this path:
A good introduction to the various services and how they interact. Requires multiple readings. http://www.divil.co.uk/net/articles/designers/hosting.asp
An example app from Microsoft. http://download.microsoft.com/download/f/d/9/fd986a23-d3d6-44c3-8fa0-75e21b0094bf/designerhost.exe
| | JeffSeifert Thursday, October 12, 2006 4:01 PM | Hi I experienced similar problems.
I had installed Infragistics through a differerent user id and got this licensing error when I tried using a Infragistics control in my user id .
So I tried installing the Infragistics again on my id and that got me rid of this error.
You may try the same. | | sangee Thursday, July 05, 2007 11:08 AM | it's easy , Reinstall oh,3 years ago :) - Edited bygoga.cn Thursday, June 18, 2009 9:44 AM
-
| | goga.cn Thursday, June 18, 2009 9:43 AM |
|