License.licx problem with dll called from Reporting Services
Posted: Fri Aug 11, 2006 3:11 pm
I have a dll created using VS.Net 2003 which I call from Microsoft Reporting Services (2000). My dll uses a Steema.TeeChart.Chart object, after I upgraded to the latest version 2.0.2306.26231 it no longer works correctly. I believe this is due to the licensing which didn't exist in the previous version of TeeChart that I was using. The errors in the log file below:
I have followed the recommendations in Tutorial 17 but I can not get it to work. I have one question though, the tutorial says
Any help appreciated.
Code: Select all
aspnet_wp!processing!d34!11/08/2006-16:00:15:: e ERROR: Failed to load expression host assembly. Details: Attempt to access the method failed.
System.MethodAccessException: Attempt to access the method failed.
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture)
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 Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at RSWebTrending.Chart..ctor()
How is this possible when the dll is used by a final application like Reporting Services ?it is necessary to add the TeeChart license lines to the Licenses.licx file of the final application
Any help appreciated.