Sunday, February 10, 2008

Workaround to the mySQL Connector/NET bug.

As I reported here, the mySQL Connector/NET 5.2 breaks the Membership Provider if installed on a machine without the mySQL installed.

To workaround this problem (while they don't fix this issue) you can do the following setps.

Let's say that you wat to use the SqlMembershipProvider on your website.

At the web.config file locate or create the membership element and inside the providers element add a clear element.

So your new web.config will look something like this:

<membership defaultProvider="myProvider">
<clear />
... />

This way you can use your desired provider without any grief from mySQL Connector/NET.


Post a Comment