<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум Guardant &mdash; Странная проблема с API C#]]></title>
	<link rel="self" href="https://forum.guardant.ru/feed/atom/topic/850" />
	<updated>2020-06-08T12:52:50Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.guardant.ru/topic/850/</id>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4380/#p4380" />
			<content type="html"><![CDATA[<p>Здравствуйте.</p><p>Решение опубликовано в этой же ветке.<br /></p><div class="quotebox"><cite>Антон Тихиенко пишет:</cite><blockquote><div class="quotebox"><cite>Виктор Блинов пишет:</cite><blockquote><p>Антон, есть какие идеи? В чём беда то?</p></blockquote></div><p>В 23 строке переменная <strong>CryptRD</strong> почему то складывается с <strong>ReadCode</strong>, а должна вычитаться потому что в 72 строке значения этих же переменных складываются.<br />Т.е. должно быть так:<br /></p><div class="codebox"><pre><code>static uint ReadCode = 0xXXXXXXXXu - CryptRD;</code></pre></div></blockquote></div><p>Суть в неправильной передаче кодов доступа.<br />У себя проверяли, коды указаны верно?</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2020-06-08T12:52:50Z</updated>
			<id>https://forum.guardant.ru/post/4380/#p4380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4379/#p4379" />
			<content type="html"><![CDATA[<p>Еще добавлю к последнему, что у меня Guardant хорошо отрабатывает в проектах типа Application, проблема только в class library - это c# asp net mvc проект, которому требуется записывать в автоматическом режиме ключи</p>]]></content>
			<author>
				<name><![CDATA[abc-0-4]]></name>
				<uri>https://forum.guardant.ru/user/1894/</uri>
			</author>
			<updated>2020-06-08T11:07:42Z</updated>
			<id>https://forum.guardant.ru/post/4379/#p4379</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4377/#p4377" />
			<content type="html"><![CDATA[<p>Здравствуйте, 1 в 1 проблема как у автора темы, пару месяцев назад скачивал, можно тоже на e-mail решение?</p>]]></content>
			<author>
				<name><![CDATA[abc-0-4]]></name>
				<uri>https://forum.guardant.ru/user/1894/</uri>
			</author>
			<updated>2020-06-08T10:00:40Z</updated>
			<id>https://forum.guardant.ru/post/4377/#p4377</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4124/#p4124" />
			<content type="html"><![CDATA[<p>Позор на мои седины!<br />ReadCode слишком маленький, вот к нему и прибавил.<br />Да, всё прошло.<br />Большое спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-04-08T13:39:22Z</updated>
			<id>https://forum.guardant.ru/post/4124/#p4124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4123/#p4123" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Виктор Блинов пишет:</cite><blockquote><p>Антон, есть какие идеи? В чём беда то?</p></blockquote></div><p>В 23 строке переменная <strong>CryptRD</strong> почему то складывается с <strong>ReadCode</strong>, а должна вычитаться потому что в 72 строке значения этих же переменных складываются.<br />Т.е. должно быть так:<br /></p><div class="codebox"><pre><code>static uint ReadCode = 0xXXXXXXXXu - CryptRD;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2019-04-08T12:48:07Z</updated>
			<id>https://forum.guardant.ru/post/4123/#p4123</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4122/#p4122" />
			<content type="html"><![CDATA[<p>Антон, есть какие идеи? В чём беда то?</p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-04-08T03:44:03Z</updated>
			<id>https://forum.guardant.ru/post/4122/#p4122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4114/#p4114" />
			<content type="html"><![CDATA[<p>Отправил.</p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-04-04T12:09:04Z</updated>
			<id>https://forum.guardant.ru/post/4114/#p4114</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4113/#p4113" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Виктор Блинов пишет:</cite><blockquote><p>при общении на С++ с ним всё в порядке.</p></blockquote></div><p>Значит с самим ключом проблем нет.<br />Надо перепроверить значения кодов для переменных PublicCode и ReadCode.<br />Если все правильно, то пришлите нам проект с этим примеров на hotline@guardant.ru</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2019-04-04T12:01:10Z</updated>
			<id>https://forum.guardant.ru/post/4113/#p4113</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4111/#p4111" />
			<content type="html"><![CDATA[<p>nGrdE = GrdApi.GrdSetAccessCodes(grdHandle, PublicCode + CryptPU, ReadCode + CryptRD); //, WriteCode + CryptWR);<br />Как в примере написано...<br />Писать в ключик в этом приложении никто не будет, так что только чтение...</p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-04-04T11:53:09Z</updated>
			<id>https://forum.guardant.ru/post/4111/#p4111</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4110/#p4110" />
			<content type="html"><![CDATA[<p>Покажите как передаете свои коды доступа в коде, пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2019-04-04T11:19:34Z</updated>
			<id>https://forum.guardant.ru/post/4110/#p4110</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4101/#p4101" />
			<content type="html"><![CDATA[<p>GrdApi.GrdFind говорит, что всё хорошо.</p><p><em>Initialize this copy of GrdAPI : No errors<br />Create Guardant protected container : No errors<br />Storing dongle codes in Guardant protected container : No errors<br />Setting dongle search conditions : No errors<br />Searching for all specified local dongles and print dongles info about it&#039;s<br /></em>------------------------------------------------------------------------------<br />&nbsp; Public&nbsp; HVer Net&nbsp; Type DongleID Prog Ver&nbsp; &nbsp; SN&nbsp; Mask&nbsp; &nbsp; GP NetRes&nbsp; &nbsp; Index<br />------------------------------------------------------------------------------<br />2C1D9441&nbsp; &nbsp; 20&nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;A 38E479DB&nbsp; &nbsp; 0&nbsp; &nbsp;1&nbsp; &nbsp;473&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; 0<br />------------------------------------------------------------------------------<br /><em>Dongles search is complete with: No errors<br />Set find only Guardant StealthII/Sign/Time dongle: No errors<br /><span style="color:red">The Guardant StealthII/Sign/Time dongle with this access codes not found!<br /></span></em><br />Т.е.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nGrdE = GrdApi.GrdLogin(grdHandle, GrdLM.PerStation);<br />говорит, что Guardant.GrdE.DongleNotFound</p><br /><p>Коды указывал свои. Ключик рабочий, при общении на С++ с ним всё в порядке.<br />Ключик StealthII Micro</p><br /><p><strong>Информация о системе 04.04.2019 14:23:30 </strong></p><p><strong>&nbsp; <br />Процессор Intel(R) Core(TM) i5-2300 CPU @ 2.80GHz <br />Материнская плата Gigabyte Technology Co., Ltd. H77M-D3H <br />Операционная система Microsoft Windows 7 Service Pack 1 (Build 7601) <br />Тип системы 64-разрядная операционная система <br />Версия .Net Framework v1.0.3705, v1.1.4322, v2.0.50727, v3.0, v3.5, v4.0.30319 <br />Версия драйвера Guardant 7.0.206 </strong></p><p><strong>&nbsp; <br />Поиск установленных ключей Guardant 04.04.2019 14:23:30 </strong></p><p><strong>&nbsp; <br />Модель Guardant Stealth II USB <br />Идентификационный номер 38E479DBh (954497499d) <br />Коды доступа 794P014 <br />Дата и время выпуска 04 Jul 2018 15-14-54 <br />Поддержка Windows, GSII64 </strong></p><p><strong>Номер продукта 0 Версия ключа 2.0 <br />Версия продукта 1 Тип микроконтроллера 05 <br />Серийный номер 473 Номер программы 0, 0, 0, 81 <br />Маска 0&nbsp; &nbsp;<br />Счётчик запусков 0&nbsp; &nbsp;</strong></p><p><strong>Состояние микропрограммы OK </strong></p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-04-04T07:18:35Z</updated>
			<id>https://forum.guardant.ru/post/4101/#p4101</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4090/#p4090" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Виктор Блинов пишет:</cite><blockquote><p>Пока застрял на DongleNotFind - времени нет толком заняться...</p></blockquote></div><p>Это на вызове какой функции?<br />Свои коды указали?<br />Демо-маска прошита в ключ?</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2019-03-28T05:39:39Z</updated>
			<id>https://forum.guardant.ru/post/4090/#p4090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4089/#p4089" />
			<content type="html"><![CDATA[<p>Да, Антон, всё именно так - взял изначально какой-то довольно старый сэмпл.<br />С новым всё сильно по другому. Пока застрял на DongleNotFind - времени нет толком заняться...</p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-03-27T07:42:15Z</updated>
			<id>https://forum.guardant.ru/post/4089/#p4089</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4088/#p4088" />
			<content type="html"><![CDATA[<p>Здравтствуйте.</p><p>Ответ был направлен e-mail.<br />Удалось ли собрать пример?</p>]]></content>
			<author>
				<name><![CDATA[Антон Тихиенко]]></name>
				<uri>https://forum.guardant.ru/user/31/</uri>
			</author>
			<updated>2019-03-27T07:22:50Z</updated>
			<id>https://forum.guardant.ru/post/4088/#p4088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Странная проблема с API C#]]></title>
			<link rel="alternate" href="https://forum.guardant.ru/post/4085/#p4085" />
			<content type="html"><![CDATA[<p>Давно сделал защиту на С++ - всё работает без нареканий.<br />Тут случилась новая программа - вся полностью на C#<br />Взял пример из документации - и попал в тупик...</p><p>При создании GrdHandle <br />&nbsp; &nbsp; GrdHandle = GrdApi.GrdCreateHandle(GrdCHM.SingleThread);&nbsp; &nbsp; //.MultiThread);<br />случается странная штука:</p><p><em>Необработанное исключение типа &quot;System.InvalidCastException&quot; произошло в GuardantDotNetApi.dll<br />Дополнительные сведения: Заданное приведение является недопустимым.</em></p><p>Что с SingleThread, что с MultiThread - без разницы.</p>]]></content>
			<author>
				<name><![CDATA[Виктор Блинов]]></name>
				<uri>https://forum.guardant.ru/user/16/</uri>
			</author>
			<updated>2019-03-25T08:06:12Z</updated>
			<id>https://forum.guardant.ru/post/4085/#p4085</id>
		</entry>
</feed>
