﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Auditor - Error - ConvertValueToBinary</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 16:41:41 GMT</lastBuildDate><ttl>20</ttl><item><title>Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25817.aspx</link><description>Hello...&lt;/P&gt;&lt;P&gt;Field 'logradouro' is a 'int' datatype.&lt;/P&gt;&lt;P&gt;Link image: &lt;A href="http://www.licitec.com.br/download/ErroSF2.jpg"&gt;http://www.licitec.com.br/download/ErroSF2.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/2d9b21a4-b15a-444e-966e-fafc.jpg"&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.licitec.com.br/download/ErroSF2.jpg"&gt;&lt;/A&gt;&amp;nbsp;</description><pubDate>Fri, 12 Feb 2010 14:27:56 GMT</pubDate><dc:creator>Rogerio Mauri</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25997.aspx</link><description>Ivan... Obrigado pela sua atenção, mas, reforçando, o problema não está na classe "Auditor" e poderá, portanto, ter reflexo em outros pontos do SF.&lt;/P&gt;&lt;P&gt;Att&lt;/P&gt;&lt;P&gt;Rogério</description><pubDate>Fri, 12 Feb 2010 14:27:56 GMT</pubDate><dc:creator>Rogerio Mauri</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25958.aspx</link><description>Oi Rogério.&lt;/P&gt;&lt;P&gt;Vou passar isto para o pessoal, não sei se estarão dando ênfase ao Auditing neste momento, por isto te sugeri que trabalhasse com a auditoria inserindo código no seu BO base. Neste instante, acredito ser o melhor caminho para todos nós. Eu tenho feito desta maneira. Eles têm feito desta maneira na aplicação médica deles. Mas vou passar adiante o seu post.&lt;/P&gt;&lt;P&gt;Abraços.</description><pubDate>Fri, 12 Feb 2010 09:16:12 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25956.aspx</link><description>Ivan... Help me please in the translation.&lt;P&gt;Econtrei a causa do erro na classe Auditor. Para isso, reconstrui a classe em C# a partir do código fonte que está no projeto "&lt;STRONG&gt;MicroFour.StrataFrame.Base.Security&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;Após, identifiquei que o problema, na verdade, está no método&amp;nbsp;"&lt;STRONG&gt;MicroFour.StrataFrame.Data.DataBasics.ConvertTypeToDbType(Type TypeToMap)&lt;/STRONG&gt;" da classe "&lt;STRONG&gt;DataBasics&lt;/STRONG&gt;" (Namespace Data).&lt;/P&gt;&lt;P&gt;Observe a imagem no link: &lt;A href="http://www.licitec.com.br/download/erroSF3.jpg"&gt;http://www.licitec.com.br/download/erroSF3.jpg&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Passando um "&lt;FONT color=#bb1111&gt;&lt;STRONG&gt;System.Int32&lt;/STRONG&gt;&lt;/FONT&gt;" para &lt;STRONG&gt;ConvertTypeToDbType()&lt;/STRONG&gt; o retorno está sendo um "&lt;FONT color=#dd1111&gt;&lt;STRONG&gt;AnsiString&lt;/STRONG&gt;&lt;/FONT&gt;" e é exatamente isso que provoca o erro no método de conversão de tipos da classe Auditor (método &lt;STRONG&gt;ConverValueToBinary&lt;/STRONG&gt;). Ou seja, o problema não é a classe Auditor com erro, mas sim o método de conversão de tipos que está em &lt;STRONG&gt;DataBasics&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Você poderia fazer esses testes?&lt;/P&gt;&lt;P&gt;Aguardo um retorno.</description><pubDate>Fri, 12 Feb 2010 07:39:59 GMT</pubDate><dc:creator>Rogerio Mauri</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25873.aspx</link><description>Not in a widespread area.  The reason we provided this class is so that you, the developer, could customize it to your needs.  This control and logic will continue to grow, but for now, Ivan's suggestions are really the best to go with.</description><pubDate>Tue, 09 Feb 2010 13:57:07 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25864.aspx</link><description>Hi Trent...&lt;/P&gt;&lt;P&gt;Help me, please.&lt;/P&gt;&lt;P&gt;I would like to use the 'Auditor' without code. &lt;/P&gt;&lt;P&gt;This is possible?</description><pubDate>Tue, 09 Feb 2010 11:03:21 GMT</pubDate><dc:creator>Rogerio Mauri</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25846.aspx</link><description>We haven't chimed in because we have been watching and Ivan's questions have been very good.&amp;nbsp; What answer are you looking for here?</description><pubDate>Mon, 08 Feb 2010 21:07:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25840.aspx</link><description>&lt;DIV style="PADDING-BOTTOM: 0.6em; PADDING-LEFT: 0.6em; PADDING-RIGHT: 0.6em; PADDING-TOP: 0.6em"&gt;Ok...&lt;/DIV&gt;&lt;P&gt;But what the staff of the developmente says?</description><pubDate>Mon, 08 Feb 2010 16:05:41 GMT</pubDate><dc:creator>Rogerio Mauri</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25833.aspx</link><description>Hi Rogério.&lt;/P&gt;&lt;P&gt;I think you would be better off using the Auditing programatically.&lt;/P&gt;&lt;P&gt;I do it this way, dealing with most of it on my BaseBO. Follow this post and get the idea of where to put it:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost12173.aspx"&gt;http://forum.strataframe.net/FindPost12173.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You coud do the same before saving a record, when creating a new one and so on. This way, you can make sure you are passing the right data type.&lt;/P&gt;&lt;P&gt;Boa segunda-feira para você! :cool:</description><pubDate>Mon, 08 Feb 2010 07:24:44 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25829.aspx</link><description>Hi Ivan...&lt;br&gt;
&lt;br&gt;
I am using the configurations standards. Without programming code.&lt;br&gt;
&lt;br&gt;
[b]a) On InitApplication void:[/b]&lt;br&gt;
&lt;br&gt;
[codesnippet]private static void InitApplication(InitializingApplicationEventArgs e)&lt;br&gt;
{&lt;br&gt;
...&lt;br&gt;
SecurityBasics.AllowAuditDataChanges = true;&lt;br&gt;
...&lt;br&gt;
 }[/codesnippet]&lt;br&gt;
&lt;br&gt;
[b]b) On BO Properties:[/b]&lt;br&gt;
&lt;br&gt;
AuditDataChanges = true&lt;br&gt;
&lt;br&gt;
[b]c) On User Properties (Security):[/b]&lt;br&gt;
&lt;br&gt;
[x] Sempre auditar eventos de dados para este usuário.&lt;br&gt;
&lt;br&gt;
If the user modifies only values of the 'string' fields, the event is registered correctly. (SFSAuditDataActions and SFSAuditDataFields tables).&lt;br&gt;
&lt;br&gt;
Abraços...&lt;br&gt;</description><pubDate>Sun, 07 Feb 2010 17:46:55 GMT</pubDate><dc:creator>Rogerio Mauri</dc:creator></item><item><title>RE: Auditor - Error - ConvertValueToBinary</title><link>http://forum.strataframe.net/FindPost25822.aspx</link><description>Hi Rogério!&lt;/P&gt;&lt;P&gt;You are adding auditing programatically, right?&lt;/P&gt;&lt;P&gt;Have a look at this post and check the data type you are passing:&lt;/P&gt;&lt;P&gt;&lt;A href="http://forum.strataframe.net/FindPost16202.aspx"&gt;http://forum.strataframe.net/FindPost16202.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Abraços.</description><pubDate>Sun, 07 Feb 2010 09:10:13 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>