<pre>Hi Again,<br><br>  I saw the code between the versions (5.1.4, 5.1.5 and 5.2) for  the call to <br><i><i><i><i>HashAlgorithmType property </i></i></i></i>in the method <b><a class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://MySql.Web:5.1.5.0:c5687fc88969c44d/MySql.Web.Security.MySQLMembershipProvider/EncodePassword%28String,String,System.Web.Security.MembershipPasswordFormat%29:String">EncodePasswor<span style="font-family: monospace;">d</span></a><br>
</b><a class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://MySql.Web:5.1.5.0:c5687fc88969c44d/MySql.Web.Security.MySQLMembershipProvider/EncodePassword%28String,String,System.Web.Security.MembershipPasswordFormat%29:String"><span style="font-family: monospace;"><span style="text-decoration: underline;"></span></span></a><a class="bold" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://MySql.Web:5.1.5.0:c5687fc88969c44d/MySql.Web.Security.MySQLMembershipProvider/EncodePassword%28String,String,System.Web.Security.MembershipPasswordFormat%29:String"><span style="font-family: monospace;"></span></a>was changed. <br>
<br>Method EncodePasswod (version 5.1.5 of Mysql.Web of assembly):<br><br>   <font color="#1000a0">Return</font> <a title="System.Convert" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Convert">Convert</a>.<a title="System.Convert.ToBase64String(ByVal Byte())" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Convert/ToBase64String%28Byte%5b%5d%29:String">ToBase64String</a>(<a title="System.Security.Cryptography.HashAlgorithm" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Security.Cryptography.HashAlgorithm">HashAlgorithm</a>.<a title="System.Security.Cryptography.HashAlgorithm.Create(ByVal String)" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Security.Cryptography.HashAlgorithm/Create%28String%29:System.Security.Cryptography.HashAlgorithm">Create</a>(<a title="System.Web.Security.Membership" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Web:2.0.0.0:b03f5f7f11d50a3a/System.Web.Security.Membership">Membership</a>.<a title="System.Web.Security.Membership.get_HashAlgorithmType()" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://System.Web:2.0.0.0:b03f5f7f11d50a3a/System.Web.Security.Membership/get_HashAlgorithmType%28%29:String">get_HashAlgorithmType</a>).<a title="System.Security.Cryptography.HashAlgorithm.ComputeHash(ByVal Byte())" href="http://www.aisto.com/roeder/dotnet/Default.aspx?Target=code://mscorlib:2.0.0.0:b77a5c561934e089/System.Security.Cryptography.HashAlgorithm/ComputeHash%28Byte%5b%5d%29:Byte%5b%5d">ComputeHash</a>(<a title="Dim destinationArray As Byte() &#39;&#39; Local Variable">destinationArray</a>))<br>
 <br>And Method EncodePasswod (version 5.2 of Mysql.Web of assembly):<br>&nbsp;private string EncodePassword(string password, string passwordKey,<br>            MembershipPasswordFormat format)<br>        {<br>            if (password == null)<br>
                return null;<br>            if (format == MembershipPasswordFormat.Clear)<br>                return password;<br><br>            byte[] passwordBytes = Encoding.Unicode.GetBytes(password);<br>            byte[] keyBytes = Convert.FromBase64String(passwordKey);<br>
            byte[] keyedBytes = new byte[passwordBytes.Length + keyBytes.Length];<br>            Array.Copy(keyBytes, keyedBytes, keyBytes.Length);<br>            Array.Copy(passwordBytes, 0, keyedBytes, keyBytes.Length, passwordBytes.Length);<br>
<br>            if (format == MembershipPasswordFormat.Encrypted)<br>            {<br>                byte[] encryptedBytes = EncryptPassword(keyedBytes);<br>                return Convert.ToBase64String(encryptedBytes);<br>
            }<br>            else if (format == MembershipPasswordFormat.Hashed)<br>            {<br>                HashAlgorithm hash = HashAlgorithm.Create(Membership.HashAlgorithmType);<br>                return Convert.ToBase64String(hash.ComputeHash(keyedBytes));<br>
            }<br>            else<br>            {<br>                throw new ProviderException(&quot;Unsupported password format.&quot;);<br>            }<br>        }<br><br><br>As you can see the code for this method was change and with the last version of MySql Conector you could be ok.<br>
<br><br>Actually, I another problem with the installation of the mysqlmembership class, I think that I&#39;ll send a case to msyql-list.<br><br>Best Regards,<br>Rolando<br>-------------------------<br>Hi guys,<br>Actually, I have the same problem. What is the suggestion about of this?<br>
Change the call to <i><i><i><i>get_HashAlgorithmType </i></i></i></i>in provider of mysql or wait for the implementation of <br><i><i>System.Web.Security.Membership.get_HashAlgorithmType </i></i>?<br><br><br>Best Regards,<br>
Rolando.<br><br>I didn&#39;t compile anything, I&#39;m just starting xsp2 from the command line...<br><br><br><br>On 10/30/07, Vasili Sviridov &lt;<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a>&gt; wrote:<br>
<br><br>&gt;<i><br></i>&gt;<i> According to reflector there&#39;s only 1 place in MySql.Web.dll where that<br></i>&gt;<i> method (get_HashAlgorithmType) is called.<br></i>&gt;<i> And if password format is set to encrypted - it should never get there.<br>
<br><br></i>&gt;<i> I&#39;m not sure you can fix it otherwise.<br></i>&gt;<i><br></i>&gt;<i> Btw, is this a compile-time error or runtime error?<br></i>&gt;<i><br></i>&gt;<i> V.<br></i>&gt;<i><br></i>&gt;<i> J.S. Martin wrote:<br>
<br><br></i>&gt;<i> &gt; I changed that information, but it still throws the error...<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt; On 10/30/07, *Vasili Sviridov* &lt;<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a><br>
<br><br></i>&gt;<i> &gt; &lt;mailto:<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a>&gt;&gt; wrote:<br></i>&gt;<i> &gt;<br>
<br></i>&gt;<i> &gt;     Yes<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;     V.<br><br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;     J.S. Martin wrote:<br></i>&gt;<i> &gt;&gt;     Do you mean like setting the passwordFormat to &quot;Encrypted&quot;<br>
<br></i>&gt;<i> &gt;&gt;     instead of &quot;Hashed&quot;?<br><br></i>&gt;<i> &gt;&gt;<br></i>&gt;<i> &gt;&gt;     On 10/30/07, *Vasili Sviridov* &lt; <a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a><br>
<br></i>&gt;<i> &gt;&gt;     &lt;mailto:<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a>&gt;&gt; wrote:<br><br>
</i>&gt;<i> &gt;&gt;<br><br></i>&gt;<i> &gt;&gt;         If you can override the membership setting to have the password<br></i>&gt;<i> &gt;&gt;         Encrypted and not hashed - it should bypass that exception.<br></i>&gt;<i> &gt;&gt;<br>
<br></i>&gt;<i> &gt;&gt;         J.S. Martin wrote:<br><br></i>&gt;<i> &gt;&gt;         &gt; Well, it throws this error when I try to create a user with<br></i>&gt;<i> &gt;&gt;         a &quot;just<br></i>&gt;<i> &gt;&gt;         &gt; plain&quot; normal create user wizard.<br>
<br><br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt; On 10/30/07, *Vasili Sviridov* &lt;<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a><br>
<br><br></i>&gt;<i> &gt;&gt;         &lt;mailto:<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a>&gt;<br></i>&gt;<i> &gt;&gt;         &gt; &lt;mailto:<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a><br>
<br><br></i>&gt;<i> &gt;&gt;         &lt;mailto:<a href="http://lists.ximian.com/mailman/listinfo/mono-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">vsviridov at exceede.com</a>&gt;&gt;&gt; wrote:<br>
<br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;     J.S. Martin wrote:<br><br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;     What membership method are you using when it throws this<br>
<br></i>&gt;<i> &gt;&gt;         exception?<br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;     That method is still not implemented in mono, but that<br><br></i>&gt;<i> &gt;&gt;         could be<br>
<br></i>&gt;<i> &gt;&gt;         &gt;     bypassed.<br></i>&gt;<i> &gt;&gt;         &gt;<br></i>&gt;<i> &gt;&gt;         &gt;     V.<br></i>&gt;<i> &gt;&gt;         &gt;     &gt; I&#39;ve switched over to the MySQL Connector/Net<br>
<br><br></i>&gt;<i> membership<br></i>&gt;<i> &gt;&gt;         &gt;     provider - it<br></i>&gt;<i> &gt;&gt;         &gt;     &gt; works on .NET, but on Mono I&#39;m getting this error...<br></i>&gt;<i> &gt;&gt;         &gt;     &gt;<br>
<br><br></i>&gt;<i> &gt;&gt;         &gt;     &gt;<br></i>&gt;<i> &gt;&gt;         &gt;     &gt;     //Method not found:<br></i>&gt;<i> &gt;&gt;         &gt;     &gt;<br></i>&gt;<i> &gt;&gt;         &#39;System.Web.Security.Membership.get_HashAlgorithmType &#39;./<br>
<br><br></i>&gt;<i> &gt;&gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt; --<br></i>&gt;<i> &gt; _________________________________<br></i>&gt;<i> &gt;<br></i>&gt;<i> &gt; Joshua S. Martin<br>
<br></i>&gt;<i><br><br></i>&gt;</pre>