Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
лицензирование контрола
|
|||
|---|---|---|---|
|
#18+
есть отдельная сборка, в ней есть 2 класса: namespace Web { [LicenseProviderAttribute(typeof(MyLicenceProvider))] public class testcontrol : TextBox { private License license = null; public override void Dispose() { if (license != null) { license.Dispose(); license = null; } base.Dispose(); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); license = LicenseManager.Validate(typeof(testcontrol), this); } } internal class MyLicenceProvider : LicFileLicenseProvider { public MyLicenceProvider() { } protected override bool IsKeyValid(string key, Type type) { return true; } protected override string GetKey(Type type) { return base.GetKey(type); } public override License GetLicense(LicenseContext context, Type type, object instance, bool allowExceptions) { return base.GetLicense(context, type, instance, allowExceptions); } } } кидаю этот контрол на странице и в каталоге bin проекта размещаю Web.testcontrol.lic в ответ получаю ошибку (на выделенной строчке): An instance of type 'Web.testcontrol' was being created, and a valid license could not be granted for the type 'Web.testcontrol'. Please, contact the manufacturer of the component for more information. в чем я не прав? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.08.2006, 15:37 |
|
||
|
|

start [/forum/search_topic.php?author=helpa_...&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
8ms |
get forum list: |
15ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
79ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
39ms |
get tp. blocked users: |
2ms |
| others: | 1152ms |
| total: | 1344ms |

| 0 / 0 |
