views:

28

answers:

0

Hello,

I started using the .NET licenseProvider to add licensing for my net user control that can be used in a web page.

In my user control's constructor I check if the control is being used in DesignMode or RunTimeMode :

bool designMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);

As soon as I start using the [LicenseProvider(typeof(LicFileLicenseProvider))], when run inside a webpage, the DesignMode is always set to true. If I do not use the [LicenseProvider(typeof(LicFileLicenseProvider))] the DesignMode is correctly set to false when I load my web page in a browser.

Does anyone out there have any idea why ?

Thanks