[Mono-list] Getting Method Not Found
Cristian Saavedra
cristians at gmail.com
Tue Sep 9 18:45:16 EDT 2008
I found 2 differents workarounds for this issue:
1.- A MySql patch, you can check here http://lists.mysql.com/commits/53396.
But this make not posible use hashed passwords.
2.- My own workaround consisted in replace the Membership.HashAlgorithmType
with an string of the hashed algorithm you want to use:
Replace this line: HashAlgorithm hash =
HashAlgorithm.Create(Membership.HashAlgorithmType);
With this: HashAlgorithm hash = HashAlgorithm.Create("SHA1");
I include my compiled version of Mysql.Web 5.1.7. I have this working with
mono 2.0 rc1 right now.
Joshua Martin-2 wrote:
>
> I didn't compile anything, I'm just starting xsp2 from the command line...
>
>
>
> On 10/30/07, Vasili Sviridov wrote:
>>
>> According to reflector there's only 1 place in MySql.Web.dll where that
>> method (get_HashAlgorithmType) is called.
>> And if password format is set to encrypted - it should never get there.
>> I'm not sure you can fix it otherwise.
>>
>> Btw, is this a compile-time error or runtime error?
>>
>> V.
>>
>> J.S. Martin wrote:
>> > I changed that information, but it still throws the error...
>> >
>> >
>> >
>> > On 10/30/07, *Vasili Sviridov* > > wrote:
>> >
>> > Yes
>> >
>> > V.
>> >
>> >
>> > J.S. Martin wrote:
>> >> Do you mean like setting the passwordFormat to "Encrypted"
>> >> instead of "Hashed"?
>> >>
>> >> On 10/30/07, *Vasili Sviridov* < vsviridov at exceede.com
>> >> > wrote:
>> >>
>> >> If you can override the membership setting to have the
>> password
>> >> Encrypted and not hashed - it should bypass that exception.
>> >>
>> >> J.S. Martin wrote:
>> >> > Well, it throws this error when I try to create a user with
>> >> a "just
>> >> > plain" normal create user wizard.
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On 10/30/07, *Vasili Sviridov* >>
>> >> > >> >> wrote:
>> >> >
>> >> > J.S. Martin wrote:
>> >> >
>> >> > What membership method are you using when it throws this
>> >> exception?
>> >> >
>> >> > That method is still not implemented in mono, but that
>> >> could be
>> >> > bypassed.
>> >> >
>> >> > V.
>> >> > > I've switched over to the MySQL Connector/Net
>> membership
>> >> > provider - it
>> >> > > works on .NET, but on Mono I'm getting this error...
>> >> > >
>> >> > >
>> >> > > //Method not found:
>> >> > >
>> >> 'System.Web.Security.Membership.get_HashAlgorithmType './
>> >>
>> >
>> >
>> >
>> > --
>> > _________________________________
>> >
>> > Joshua S. Martin
>>
>>
>
>
> --
> _________________________________
>
> Joshua S. Martin
>
> _______________________________________________
> Mono-list maillist - Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
http://www.nabble.com/file/p19399987/MySql.Web.dll MySql.Web.dll
--
View this message in context: http://www.nabble.com/Getting-Method-Not-Found-tp13500856p19399987.html
Sent from the Mono - General mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080909/e38bca87/attachment.html
More information about the Mono-list
mailing list